/** * 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')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $jobs = Job::take(6)->get(); return view('pages.jobs.index', compact('jobs')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $fiches = Job::take(6)->get(); return view('admin.jobs.index', compact('fiches')); }
/** * 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')); }