Esempio n. 1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index(ActivitiesRepo $activities_repo, TextRepo $text_repo)
 {
     Session::put('current_page', 'home');
     $activities = $activities_repo->getAllFront(15);
     $featured = $activities_repo->getFeatured();
     $texts = $text_repo->getAll();
     // return $activities;
     return view('home.index', compact('activities', 'featured', 'texts'));
 }
Esempio n. 2
0
 /**
  * Display a listing of the activities.
  *
  * @return Response
  */
 public function index(TextRepo $repo)
 {
     $texts = $repo->getAll();
     return view('admin.texts.index', compact('texts'));
 }