'admin/salary'], function () { Route::resource('salary', 'SalaryAdminController'); }); // User routes for salary Route::group(['prefix' => 'user/salary'], function () { Route::resource('salary', 'SalaryUserController'); }); // Public routes for salary Route::group(['prefix' => 'salaries'], function () { Route::get('/', 'SalaryPublicController@index'); Route::get('/{slug?}', 'SalaryPublicController@show'); });