Esempio n. 1
0
 public function index($method = "Daily")
 {
     $users = Visitor::latest()->{$method}()->paginate(20);
     return view('admin.visitors.index', compact('users'))->with(['title' => 'visitors List']);
 }