I'm having this error on cpanel...
$products = products::inRandomOrder()->take(3)->get();
Caused by the above line of code.
I've tried to tried editing my .env file and everything there is as it should be..
I even tried to edit the config/database.php file which I didn't have to edit on my local host.
I also tried running this commands php artisan route:cache php artisan view:cache and php artisan config:cache
Please assist with a different solution
Thank you in advance!!!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire