mitnet's avatar

lumen database path good practice?

A lumen project. The phpunit is all pass. The .env set DB_DATABASE=database/db.sqlite. And then start the server in the root directory: php -S localhost:82 -t public. The browser shows an Error: database/db.sqlite is not found. But then I copy db.sqlite to public directory or change .env set DB_DATABASE=../database/db.sqlite. NO error. BUT is there any good practice? Thank you!

0 likes
2 replies
mitnet's avatar

Copy to public directory may be dangrous. But put in database directory is alse dangrous? I use .env as my config, not edit database.php file. Thank you!

Please or to participate in this conversation.