group(function () { Route::resource('advertisement', 'AdvertisementResourceController'); }); // Public routes for category Route::get('categories/', 'CategoryPublicController@index'); Route::get('category/{slug?}', 'CategoryPublicController@show');