When i run composer require laravel/dusk, get a error
[InvalidArgumentException]
Could not find package laravel/dusk at any version for your minimum-stability (stable). Check the package spelling
or your minimum-stability
@godruoyi You need the --dev flag as it hasn't been released yet.
composer require laravel/dusk --dev
Once Laravel 5.4 and Dusk are released you won't need that flag.
Ok, Thanks, But when I run composer require laravel/dusk --dev on centos or window10, and I try recreated a new folder run this command, This error is still here
[InvalidArgumentException]
Could not find package laravel/dusk at any version for your minimum-stability (stable). Check the package spelling
or your minimum-stability
@godruoyi apologies, the message is referring to your composer.json file. Ensure that your minimum stability is set to "dev" like so "minimum-stability": "dev".
{
"name": "YourProjectName",
"minimum-stability": "dev",
"require": {
"laravel/dusk": "dev"
}
}
Thanks, it's working
just update you composer.json require or require-dev and add
"require": {
"laravel/dusk": "@dev"
}
don't composer require laravel/dusk --dev,
Maybe Taylor has since removed the --dev flag then but it was necessary a few days ago. Glad I could help.
On Laravel 5.3, can confirm that --dev flag no longer works. Just wait for 5.4 now which is anytime soon.
Most helpful comment
Maybe Taylor has since removed the --dev flag then but it was necessary a few days ago. Glad I could help.