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

Laravel 12 : The database= option doesn't seem to work as expected #404

Open
happytodev opened this issue Feb 27, 2025 · 1 comment
Open

Comments

@happytodev
Copy link

Installer Version

5.12.0

Description

When I launch the following :

laravel new l12pgsql --database=pgsql --livewire

or the following

laravel new l12mysql --database=mysql --livewire

The Laravel installer installs sqlite.

DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel
# DB_USERNAME=root
# DB_PASSWORD=

Maybe I'm wrong, but it sounds like a bug for me.

Steps To Reproduce

Just install a new laravel app with following command :

laravel new l12pgsql --database=pgsql --livewire

or the following

laravel new l12mysql --database=mysql --livewire

@happytodev happytodev changed the title The database= option doesn't seem to work as expected Laravel 12 : The database= option doesn't seem to work as expected Feb 27, 2025
@MrYamous
Copy link

Looks like this is on purpose

if ($this->usingStarterKit($input)) {
// Starter kits will already be migrated in post composer create-project command...
$migrate = false;
$input->setOption('database', 'sqlite');
}

But this is quite unexpected behaviour

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

No branches or pull requests

2 participants