set_route_guard('web').'/object'], function () { Route::resource('ship', 'ShipResourceController'); }); // Public routes for ship Route::get('ship/popular/{period?}', 'ShipPublicController@popular'); Route::get('objects/', 'ShipPublicController@index'); Route::get('objects/{slug?}', 'ShipPublicController@show'); // Resource routes for hotel Route::group(['prefix' => set_route_guard('web').'/object'], function () { Route::resource('hotel', 'HotelResourceController'); }); // Public routes for hotel Route::get('hotel/popular/{period?}', 'HotelPublicController@popular'); Route::get('objects/', 'HotelPublicController@index'); Route::get('objects/{slug?}', 'HotelPublicController@show'); // Resource routes for club Route::group(['prefix' => set_route_guard('web').'/object'], function () { Route::resource('club', 'ClubResourceController'); }); // Public routes for club Route::get('club/popular/{period?}', 'ClubPublicController@popular'); Route::get('objects/', 'ClubPublicController@index'); Route::get('objects/{slug?}', 'ClubPublicController@show');