group(function () { Route::resource('test', 'TestResourceController'); }); // Public routes for test Route::get('tests/', 'TestPublicController@index'); Route::get('test/{slug?}', 'TestPublicController@show');