set_route_guard('web').'/vote'], function () { Route::resource('vote_item', 'VoteItemResourceController'); }); // Public routes for vote_item Route::get('vote_item/popular/{period?}', 'VoteItemPublicController@popular'); Route::get('votes/', 'VoteItemPublicController@index'); Route::get('votes/{slug?}', 'VoteItemPublicController@show'); // Resource routes for vote_topic Route::group(['prefix' => set_route_guard('web').'/vote'], function () { Route::resource('vote_topic', 'VoteTopicResourceController'); }); // Public routes for vote_topic Route::get('vote_topic/popular/{period?}', 'VoteTopicPublicController@popular'); Route::get('votes/', 'VoteTopicPublicController@index'); Route::get('votes/{slug?}', 'VoteTopicPublicController@show'); // Resource routes for vote_voter Route::group(['prefix' => set_route_guard('web').'/vote'], function () { Route::resource('vote_voter', 'VoteVoterResourceController'); }); // Public routes for vote_voter Route::get('vote_voter/popular/{period?}', 'VoteVoterPublicController@popular'); Route::get('votes/', 'VoteVoterPublicController@index'); Route::get('votes/{slug?}', 'VoteVoterPublicController@show');