/**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     //$this->info('will run a job here to do the work through the queue');
     //get list of all users
     $users = User::all();
     //for each user
     foreach ($users as $user) {
         //check if user wants emails
         if ($user->notifyDueActions || $user->notifyDueRisks) {
             $job = new SendUserOverdueEmails($user);
             $this->dispatch($job);
         }
     }
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $users = User::all();
     return view('Users.index', compact('users'));
 }