Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
Route::get('/{link}/{id}', [\App\Http\Controllers\TeamController::class, 'add'])->name('add')->middleware('auth');
Route::middleware(['role:admin|moderator'])->prefix('admin_panel')->group(function () { Route::get('/', [\App\Http\Controllers\Admin\HomeController::class, 'index'])->name('admin'); // Route::get('/users',[\App\Http\Controllers\Admin\HomeController::class, 'usersView']); Route::get('/users', [\App\Http\Controllers\Admin\HomeController::class, 'usersView'])->name('users'); Route::get('/allusers', [\App\Http\Controllers\Admin\HomeController::class, 'allUsers'])->name('allusers'); Route::get('/teams', [\App\Http\Controllers\Admin\HomeController::class, 'teamsView'])->name('teams'); Route::get('/orders', [\App\Http\Controllers\Admin\HomeController::class, 'orders'])->name('orders'); });