Open mikebronner opened 5 years ago
I got this same error when my APP_ENV was set to production
and APP_DEBUG set to true. It works when I have APP_ENV
set to local
My setting is:
APP_ENV="development"
Might be related to https://github.com/facade/ignition-code-editor/blob/60cc80c98d88c7a88c669319dd014eac24559fd0/src/CodeEditorServiceProvider.php#L30 Would it be better to write
if ($this->app->environment('production')) {
I often like to keep error handling in place in staging environments, but perhaps not the editor. I can see both sides of the argument.
Getting this error when deploying to a Staging server through Vapor...(APP_DEBUG set to true
)
Same problem here +1 to @mikebronner s suggestion
+1
php artisan cache:clear && php artisan route:clear
and you are good to go (eventually).
Im running into this error when running unit tests.
I had to chmod 777 -R storage
to solve this
Edit :
and set .env APP_ENV=local first, refresh the page and re set APP_ENV=production
if your are using Centos operationg system sudo nano /etc/apache2/apache2.conf // ubunto sudo nano /etc/httpd/conf/httpd.conf
Find the following code inside the editor:
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted
Change to:
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted After that restart the Apache server or httpd
sudo systemctl restart httpd or sudo systemctl restart apache2
I was getting this because I didn't have APP_KEY set in .env.testing
I just installed the package and received this error:
The underlying exception that triggered this is: