'admin'], function () { Route::resource('/demo/demo', 'Demo\Demo\Http\Controllers\DemoAdminController'); }); // User routes for demo Route::group(['prefix' => 'user'], function () { Route::resource('/demo/demo', 'Demo\Demo\Http\Controllers\DemoUserController'); }); // Public routes for demo Route::get('demo/demo', 'Demo\Demo\Http\Controllers\DemoPublicController@index'); Route::get('demo/demo/{slug?}', 'Demo\Demo\Http\Controllers\DemoPublicController@show');