New CPM with Laravel 12 and React
This commit is contained in:
19
routes/web.php
Normal file
19
routes/web.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
||||
Route::get('/', function () {
|
||||
return Inertia::render('welcome');
|
||||
})->name('home');
|
||||
|
||||
Route::middleware(['auth', 'verified'])->group(function () {
|
||||
Route::get('dashboard', function () {
|
||||
return Inertia::render('dashboard');
|
||||
})->name('dashboard');
|
||||
});
|
||||
|
||||
require __DIR__.'/users.php';
|
||||
require __DIR__.'/roles.php';
|
||||
require __DIR__.'/settings.php';
|
||||
require __DIR__.'/auth.php';
|
Reference in New Issue
Block a user