Пример #1
0
 /**
  * Remove the specified Staff from storage.
  *
  * @param  int  $id
  * @return Response
  */
 public function destroyImage(Request $request, StaffRepo $repo)
 {
     $image_id = $request->input('image_id');
     $delete = $repo->removeImage($image_id);
     return json_encode('true');
 }
Пример #2
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(StaffRepo $staff_repo)
 {
     Session::put('current_page', 'network');
     $all_staff = $staff_repo->getAllByType();
     return view('staff.index', compact('all_staff'));
 }