예제 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function indexFront()
 {
     $posts = $this->blog_gestion->indexFront($this->nbrPages);
     //dd($posts);
     $links = $posts->setPath('')->render();
     return view('front.blog.index', compact('posts', 'links'));
 }
예제 #2
0
 /**
  * Display the home page.
  *
  * @return Response
  */
 public function index()
 {
     $posts = $this->blog_gestion->indexFront($this->nbrPages);
     $links = $posts->render();
     return view('front.index', compact('posts', 'links'));
     // return view('front.index');
 }
예제 #3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index(Request $request)
 {
     $posts = $this->blog_gestion->indexFront($this->nbrPages);
     //$links = $posts->setPath('')->render();
     //$messages = $food_gestion->index();
     //dd($messages);
     //$foods = $this->food_gestion->index();
     $foods = $this->food_gestion->indexFront($this->nbrPages);
     $additives = $this->food_gestion->index();
     $links = $foods->setPath('')->render();
     //dd($additives);
     //dd($foods);
     //return view('back.messages.index', compact('messages'));
     if ($request->ajax()) {
         return response()->json(['view' => 'OK all', 'links' => 'LINKS ok']);
     }
     return view('front.food.index', compact('foods', 'links', 'additives'));
 }
예제 #4
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function indexFront()
 {
     $posts = $this->blog_gestion->indexFront($this->nbrPages);
     $links = str_replace('/?', '?', $posts->render());
     return view('front.blog.index', compact('posts', 'links'));
 }