- Make sure the PHP version is compatible (recommended version 8.1)
If the issue persists
Set APP_DEBUG value as true in the .env file
Reload and check the error in the browser.
If the error is related to the database, please check the database credentials in the .env file. If the details are correct and still the error persists, please reset your database password and update the .env file with the new password.
If the fix is successful, revert the APP_DEBUG to false
General Queries
Set APP_DEBUG value as true in the .env file
Reload and check the error in the browser.
If the error is ErrorException symlink() has been disabled for security reasons. This is not an issue with the application.
This is a restriction from the server.
symlink() needs to be enabled for a Laravel application to work. Without symlink() uploads won't work on a Laravel application.
We suggest contacting the server team or support and asking them to enable symlink() on the server.
Fix - Try following steps to resolve the upload file issue :
- Give 775 permission to the storage folder
- Delete the public/storage folder from your application
- Go to your-domain/execute_create_storage_link (Your APP_ENV should be set to production for this)