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