Relative Content

Tag Archive for laravel

Laravel sometimes error 500, SQLSTATE[HY000] [1045]

Laravel sometimes error 500, SQLSTATE[HY000] [1045]
I’m trying to make application settings from the database, otherwise load from .env
How to make a request to the database in the service provider?
Sometimes there is no error, sometimes there is error 500 and there is no connection to the database.

Laravel sometimes error 500, SQLSTATE[HY000] [1045]

Laravel sometimes error 500, SQLSTATE[HY000] [1045]
I’m trying to make application settings from the database, otherwise load from .env
How to make a request to the database in the service provider?
Sometimes there is no error, sometimes there is error 500 and there is no connection to the database.

Laravel in debian

My laravel project is not working. I tested the php file whether it works or not, which works but laravel or project or my pages is not loading or work and i dont have any error
And in the end my system is debian and I installed php and php curl and composer and laravel pack and just my artisan is not working in git and his error is "php fetal error :uncaugth error: class illuminate/foundation/application;not found in var/www/html/arsia/bootstarp/app.php:14" Stack trace: #0 /var/www/html/arsia/artisan(20) : require_once() #1 {main} Thrown in /var/www/html/arsia/bootstrap/app.php on line 14

Laravel in debian

My laravel project is not working. I tested the php file whether it works or not, which works but laravel or project or my pages is not loading or work and i dont have any error
And in the end my system is debian and I installed php and php curl and composer and laravel pack and just my artisan is not working in git and his error is "php fetal error :uncaugth error: class illuminate/foundation/application;not found in var/www/html/arsia/bootstarp/app.php:14" Stack trace: #0 /var/www/html/arsia/artisan(20) : require_once() #1 {main} Thrown in /var/www/html/arsia/bootstrap/app.php on line 14

How to Auto resize images in laravel website gallery

Hello World!,
I have a website in Laravel. I have a gallery in it to display the images posted by users . I want a code to enable auto force certain height and width for images that are not upto required size of height and width ?

I am not able to redirect index file

I have installed laravel on my lamp server, but I am not able to access index.php directly, if I run url/public in that case it works, how to fix this?

I can’t run a LARAVEL project

so I downloaded this project from github to get inspired and learn how things are working, since I’m new to LARAVEL and somehow it wouldn’t SERV