Beispiel #1
0
 public function getIndex()
 {
     $campaigns = Campaign::orderBy('updated_at', 'desc')->take(5)->get();
     $leads = Lead::latest()->take(5)->get();
     return view('admin.index', compact('leads', 'campaigns'));
 }