feature: add error pages

This commit is contained in:
antv
2026-06-30 15:31:40 +07:00
parent 96eac88f36
commit 8cbdd93e56
21 changed files with 435 additions and 1 deletions
+11
View File
@@ -9,6 +9,17 @@ Route::get('/', function () {
return redirect()->route('login');
});
if (config('app.debug')) {
Route::prefix('errors')->group(function () {
Route::get('{code}', function ($code) {
if (view()->exists("errors.{$code}")) {
return view("errors.{$code}");
}
abort(404);
});
});
}
Route::get('/test-modal', function() {
return view('admin.users.index', [
'users' => [],