'admin/attendance'], function () { Route::resource('attendance', 'AttendanceAdminController'); }); // User routes for attendance Route::group(['prefix' => 'user/attendance'], function () { Route::resource('attendance', 'AttendanceUserController'); }); // Public routes for attendance Route::group(['prefix' => 'attendances'], function () { Route::get('/', 'AttendancePublicController@index'); Route::get('/{slug?}', 'AttendancePublicController@show'); });