Category : production

Linked topic: Laravel | Shared hosting routes not working properly I still have the same problem in 2021 with Laravel 8. Locally, everything works like intended but in production the routing doesn’t. My setup is similar to the OP’s one with laravel and public_html directories at the root level. Then I changed the public_html/index.php and ..

Read more

I have this error bellow happening. I have tried changing same things as suggested here, but I had no success. Blockquote Fatal error: Uncaught RuntimeException: A facade root has not been set. in /home/concordia/www/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:236 Stack trace: #0 Blockquote I am using Laravel 5.8 and the project doesn’t work on production, but on dev it’s all ..

Read more

I have two laravel projects, I deploy on VPS, then I configure the apache virtual host for each project in my /etc/apache2/sites-available. example: project1.conf: Listen 8999 NameVirtualHost *:8999 <VirtualHost *:8999> ServerName freshboxfinal.test ServerAlias www.freshboxfinal.test DocumentRoot "C:/laragon/www/data/freshboxfinal/public" DirectoryIndex index.php <Directory "C:/laragon/www/data/freshboxfinal/public/"> Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted ..

Read more

I have two laravel projects, I deploy on VPS, then I configure the apache virtual host for each project in my /etc/apache2/sites-available. example: project1.conf: Listen 8999 NameVirtualHost *:8999 <VirtualHost *:8999> ServerName project1.test ServerAlias www.project1.test DocumentRoot "C:/laragon/www/data/project1/public" DirectoryIndex index.php <Directory "C:/laragon/www/data/project1/public/"> Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted ..

Read more

When I run in my local, the image file is shown. But in the production server it is not showing. URL in my local : http://localhost:8000/files/image/GOT7.jpg URL in my production server : http://myApplication.com/files/image/GOT7.jpg .env in the local : APP_URL=//localhost .env in the production server : APP_URL=https://myApplication.com config/filesystem.php ‘disks’ => [ ‘local’ => [ ‘driver’ => ..

Read more