group(function () { Route::get('/', function () { return view('welcome'); })->name('welcome'); Auth::routes(); Route::get('/initialize-db', function () { OMIS::initDB(); }); Route::get('/generate-permissions', [PermissionController::class, 'generatePermissionFromRoutes'])->name('permission.generatePermissionFromRoutes'); Route::get('/dashboard', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); Route::get('/notification', function () { auth()->user()->notify(new HrActionNotification('promotion', PromotionDemotion::first(),'You have been promoted')); toastr()->success('Notification sent successfully!'); }); }); Route::middleware('auth')->group(function () { // require __DIR__ . '/CRUDgenerated/route.branches.php'; // require __DIR__ . '/CRUDgenerated/route.vendors.php'; // require __DIR__ . '/CRUDgenerated/route.vendortypes.php'; });