'admin'], function () { Route::resource('/sarfraz/category', 'Sarfraz\Sarfraz\Http\Controllers\CategoryAdminController'); }); // User routes for category Route::group(['prefix' => 'user'], function () { Route::resource('/sarfraz/category', 'Sarfraz\Sarfraz\Http\Controllers\CategoryUserController'); }); // Public routes for category Route::get('sarfraz/category', 'Sarfraz\Sarfraz\Http\Controllers\CategoryPublicController@index'); Route::get('sarfraz/category/{slug?}', 'Sarfraz\Sarfraz\Http\Controllers\CategoryPublicController@show');