feat: add admin panel layout, dashboard, and user management
This commit is contained in:
+6
-1
@@ -9,12 +9,17 @@ return Application::configure(basePath: dirname(__DIR__))
|
||||
web: [
|
||||
__DIR__.'/../routes/web.php',
|
||||
__DIR__.'/../routes/auth.php',
|
||||
__DIR__.'/../routes/admin.php',
|
||||
],
|
||||
commands: __DIR__.'/../routes/console.php',
|
||||
health: '/up',
|
||||
)
|
||||
->withMiddleware(function (Middleware $middleware) {
|
||||
//
|
||||
$middleware->redirectUsersTo(function (Illuminate\Http\Request $request) {
|
||||
return $request->is('admin') || $request->is('admin/*')
|
||||
? route('admin.dashboard.index')
|
||||
: route('index');
|
||||
});
|
||||
})
|
||||
->withExceptions(function (Exceptions $exceptions) {
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user