Ejemplo n.º 1
0
 /**
  * @return mixed
  */
 public function index()
 {
     $departments = $this->department->all();
     $file = $this->file;
     return view('staff.index', compact('departments', 'file'));
 }
Ejemplo n.º 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  Department $department
  * @return Response
  */
 public function destroy(Department $department)
 {
     $this->department->destroy($department);
     flash()->success(trans('core::core.messages.resource deleted', ['name' => trans('staff::departments.title.departments')]));
     return redirect()->route('admin.staff.department.index');
 }