'admin/appointment'], function () { Route::resource('appointment', 'AppointmentAdminController'); }); // User routes for appointment Route::group(['prefix' => 'user/appointment'], function () { Route::resource('appointment', 'AppointmentUserController'); }); // Public routes for appointment Route::group(['prefix' => 'appointments'], function () { Route::get('/', 'AppointmentPublicController@index'); Route::get('/{slug?}', 'AppointmentPublicController@show'); });