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!
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!