Beispiel #1
0
 public function index()
 {
     $blogs = Blog::with('user')->orderBy('created_at', 'desc')->paginate(15);
     $downloads = Download::with('user')->orderBy('created_at', 'desc')->paginate(15);
     $samples = Sample::with('user')->orderBy('created_at', 'desc')->paginate(15);
     $lastusers = User::orderBy('created_at', 'desc')->paginate(15);
     $sample_cats = Samplecategories::all();
     $guests = Online::guests()->count();
     return view('index', compact('blogs', 'downloads', 'samples', 'sample_cats', 'lastusers', 'guests'));
 }
Beispiel #2
0
 public function create()
 {
     $categories = Samplecategories::lists('title', 'id');
     return view('user.samples.create', compact('categories'));
 }