I have a Laravel application that makes use of the Scheduler. I define schedules in the kernel and some of these schedules are defined by settings in my settings table.
Settings table
id | code | value
1 | signout | 18:00
Kernal
$schedule->command('appname:signout')->dailyAt(\App\Setting::where('code','signout')->first()->value);
I get the following error when deploying my app.
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select * from
settingswherecode= signout limit 1)
I'm confused as I have yet to add my .env file which would contain my username and password but it appears as though when the deployment happens it tries to initialize the kernel.php file?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire