/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { Receptionist::destroy($id); return Response::json(array('success' => 'Receptionist has been deleted!')); }
public function handleDeleteReceptionist() { // Handle the delete confirmation. $id = Input::get('receptionist'); $receptionist = Receptionist::findOrFail($id); $receptionist->delete(); return Redirect::action('CommonController@receptionists'); }