Route::resource('lead', 'LeadController'); Route::post('lead/update_information', ['as' => 'lead_update', 'uses' => 'LeadController@updateLeadInformation']); Route::bind('callback', function ($id) { return App\Callback::whereId($id)->first(); }); Route::resource('callback', 'CallbackController', ['only' => ['store', 'index', 'show', 'update']]); Route::bind('disposition', function ($id) { return App\Disposition::whereId($id)->first(); }); Route::resource('disposition', 'DispositionController', ['only' => ['store']]); Route::bind('note', function ($id) { return App\Note::whereId($id)->first(); }); Route::resource('note', 'NoteController', ['only' => 'store']); Route::bind('doctor', function ($id) { return App\Doctor::whereId($id)->first(); }); Route::resource('doctor', 'DoctorController'); Route::bind('user', function ($id) { return App\User::whereId($id)->first(); }); Route::resource('user', 'UserController'); Route::bind('location', function ($id) { return App\Location::whereId($id)->first(); }); Route::resource('location', 'LocationController'); Route::bind('timeslot', function ($id) { return App\Timeslot::whereId($id)->first(); }); Route::resource('timeslot', 'TimeslotController'); Route::get('{lead_id}/retrieve_notes', ['as' => 'retrieve_notes_by_lead', 'uses' => 'NoteController@retrieveNote']);