Header layout rather than sidebar layout
This commit is contained in:
@@ -12,7 +12,11 @@ use Illuminate\Support\Facades\Route;
|
||||
Route::inertia('/', 'Welcome')->name('home');
|
||||
|
||||
Route::middleware(['auth', 'verified'])->group(function () {
|
||||
Route::inertia('dashboard', 'Dashboard')->name('dashboard');
|
||||
Route::get('/dashboard', function () {
|
||||
return inertia('Dashboard', [
|
||||
'organisations' => auth()->user()->organisations,
|
||||
]);
|
||||
})->name('dashboard');
|
||||
|
||||
Route::prefix('organisations/{organisation}')->group(function () {
|
||||
Route::get('/', [OrganisationController::class, 'show'])->name('organisations.show');
|
||||
|
||||
Reference in New Issue
Block a user