group(function () { Route::get('search_log/form/{element}', 'SearchLogAPIController@form'); Route::resource('search_log', 'SearchLogAPIController'); }); // Public routes for search_log Route::get('search_logs/', 'SearchLogPublicController@index'); Route::get('search_logs/{slug?}', 'SearchLogPublicController@show'); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for search_logs Route::prefix('{guard}/search_log')->group(function () { Route::get('search_log/form/{element}', 'SearchLogAPIController@form'); Route::apiResource('search_log', 'SearchLogAPIController'); }); // Public routes for search_logs Route::get('search_log/SearchLog', 'SearchLogPublicController@getSearchLog'); } ); }