Exemple #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $jobs = Job::take(6)->get();
     $posts = Post::published()->orderBy('created_at', 'desc')->where('category_id', '1')->get()->take(3);
     $vignettes = Post::published()->orderBy('created_at', 'desc')->where('category_id', '1' and 'is_sticky', '0')->skip(3)->take(6)->get();
     return view('pages.home.index', compact('jobs', 'posts', 'vignettes'));
 }
Exemple #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $jobs = Job::take(6)->get();
     return view('pages.jobs.index', compact('jobs'));
 }
Exemple #3
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $fiches = Job::take(6)->get();
     return view('admin.jobs.index', compact('fiches'));
 }
Exemple #4
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function sub()
 {
     $this->middleware('auth');
     $jobs = Job::take(6)->get();
     return view('pages.subscribe.sub', compact('jobs'));
 }