示例#1
0
 /**
  * sdasd
  * @param  ActivitiesRepo $activities_repo wew
  * @param  StaffRepo      $staff_repo      weq
  * @param  TextRepo       $text_repo       sdadas
  * @return qwe                          weqw
  */
 public function index(ActivitiesRepo $activities_repo, StaffRepo $staff_repo)
 {
     $featured = $activities_repo->getFeatured();
     $activities = $activities_repo->getAll(10);
     $staff = $staff_repo->getAll();
     return view('home.index', compact('featured', 'activities', 'staff'));
 }
示例#2
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');
 }