Skip to content
Severino edited this page May 21, 2024 · 3 revisions

Q: I changed the configuration inside the .env but it's not using the correct values!
A: When changing the config you need to flush the laravel cache: php artisan cache:clear

Q: I try to access some constants that I have in another file/namespace but I get a "Undefined constant" error"
A: Constants are loaded using the composer auto-loader. Therefore you need to add those files to the composer.jsonand then autoload those files by calling composer dump-autoload

Clone this wiki locally