'admin/allowance'], function () { Route::resource('allowance', 'AllowanceAdminController'); }); // User routes for allowance Route::group(['prefix' => 'user/allowance'], function () { Route::resource('allowance', 'AllowanceUserController'); }); // Public routes for allowance Route::group(['prefix' => 'allowances'], function () { Route::get('/', 'AllowancePublicController@index'); Route::get('/{slug?}', 'AllowancePublicController@show'); });