Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support relative paths to SQLite databases #54480

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

LukeTowers
Copy link
Contributor

Related: #45626, wintercms/storm#191.

This makes it so that .env files can define the path to the sqlite database file as relative to the project root rather than only supporting absolute paths.

Copy link

@Sekaiichi Sekaiichi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some advice)

@taylorotwell taylorotwell merged commit d637b4a into laravel:11.x Feb 6, 2025
38 checks passed
@LukeTowers LukeTowers deleted the patch-1 branch February 7, 2025 20:59
LukeTowers added a commit to LukeTowers/framework that referenced this pull request Feb 7, 2025
Applies the suggestion from @Sekaiichi in laravel#54480.

realpath() returns false if the file doesn't exist, so the previous code would have been file_exists(false), which technically doesn't match the file_exists signature.
taylorotwell pushed a commit that referenced this pull request Feb 10, 2025
Applies the suggestion from @Sekaiichi in #54480.

realpath() returns false if the file doesn't exist, so the previous code would have been file_exists(false), which technically doesn't match the file_exists signature.
taylorotwell pushed a commit to illuminate/database that referenced this pull request Feb 10, 2025
Applies the suggestion from @Sekaiichi in laravel/framework#54480.

realpath() returns false if the file doesn't exist, so the previous code would have been file_exists(false), which technically doesn't match the file_exists signature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants