Exemplo n.º 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'));
 }
Exemplo n.º 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'));
 }
Exemplo n.º 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'));
 }
Exemplo n.º 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'));
 }