Esempio n. 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroy($id)
 {
     $staff = Staff::get_staff($id);
     $deleted_message = 'Staff "' . $staff->name . '" has been deleted successfully.';
     Staff::destroy_staff($id);
     return redirect('staffs')->withSuccess($deleted_message);
     //return redirect('staffs');
 }