优化单页错误信息

This commit is contained in:
Edward Yang 2022-08-19 19:16:51 +08:00
parent d7d6028974
commit 2eda2bc745
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ class PageRepo
{
$builder = Page::query()->with([
'description'
])->orderByDesc('created_at');
])->orderByDesc('updated_at');
return $builder->paginate();
}

View File

@ -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">