I have created a Laravel Task using artisan with the aim of running a cron script. I was able to create the task and perform input / output etc via the CLI.
I would also like to access the DB layer within the fire() of the task. When I specify something like:
Client::where('active','=',1)->get();
I receive an error "call to undefined method client::where()".
Would like to know how I could run database related commands via the Task
Regards,