优化单页错误信息
This commit is contained in:
parent
d7d6028974
commit
2eda2bc745
|
|
@ -26,7 +26,7 @@ class PageRepo
|
|||
{
|
||||
$builder = Page::query()->with([
|
||||
'description'
|
||||
])->orderByDesc('created_at');
|
||||
])->orderByDesc('updated_at');
|
||||
|
||||
return $builder->paginate();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
@section('content')
|
||||
|
||||
@if ($errors->has('error'))
|
||||
<x-admin-alert type="danger" msg="{{ $errors->has('error') }}" class="mt-4" />
|
||||
<x-admin-alert type="danger" msg="{{ $errors->first('error') }}" class="mt-4" />
|
||||
@endif
|
||||
|
||||
<div class="card">
|
||||
|
|
|
|||
Loading…
Reference in New Issue