Split Layout, menu define
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
2023-12-31 22:08:22 +01:00
parent 0a9205ea8b
commit 9bbd65eaaf
5 changed files with 108 additions and 37 deletions

View File

@@ -21,8 +21,9 @@ use App\Http\Controllers\ProductsCompareController;
*/
Route::get('/', function () {
return Inertia::render('IkeaRoot');
return Inertia::render('IkeaRoot')->with('menu', (new App\Http\Controllers\Superuser\UserMenuController)->get() );
})->name('root');
Route::get('/menu/get', [App\Http\Controllers\Superuser\UserMenuController::class, 'get'])->name('menu.user');
Route::get('/ccountry/', [CountryCodeController::class, 'index'])->name('ccountry.index');
Route::get('/ccountry/codes/', [CountryCodeController::class, 'codes'])->name('ccountry.codes');