laravel
laravel copied to clipboard
Building with `APP_NAME=Laravel` cause error
What happened?
The executable generated by php artisan native:build linux only renders the generic "500 SERVER ERROR" page.
php artisan native:serve renders the page correctly.
Changing APP_NAME in .env to anything other than "Laravel" bypasses the issue and the page renders correctly.
How to reproduce the bug
Fresh install of Laravel.
Fresh install of NativePHP.
Leave APP_NAME=Laravel in .env file.
Run php artisan native:build linux.
Run the executable.
Package Version
0.3.3
PHP Version
8.2.8
Laravel Version
10.17.1
Node Version
20.4.0
Which operating systems does with happen with?
Linux
Notes
Changing debug to true in config/app.php makes the executable generated by php artisan native:build linux work even with APP_NAME=Laravel, and it doesn't show any errors.
@IvanSerpa I've not been able to reproduce this. Does it still occur for you?
@simonhamp I've actually encountered that hot reloading doesn't work if the App name is Laravel. So there might be something to this. Reproduction:
- make a new project
- add tailwind and add
@viteto welcome.blade.php npm run devphp artisan native:serve- add any text or something to try hot reloading
With blade changes (html content) you must restart the dev server and css/js doesn't actually change unless you run npm run build.
If you change the app name suddenly everything works as intended.