Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class 'Laravel\Dusk\DuskServiceProvider' not found

I updated composer using

composer update

having error

enter image description here

To resolve this i tried to do composer require --dev laravel/dusk

This is throwing

enter image description here

Any thing which i am missing ?

Please assist.

like image 878
Abdul Qadir R. Avatar asked Apr 09 '18 10:04

Abdul Qadir R.


1 Answers

As you are using Laravel 5.4 version you need to install ^2.0 of laravel dusk version.

Try this command to install it:

composer require --dev laravel/dusk:^2.0

Then add

Laravel\Dusk\DuskServiceProvider::class,

in providers array in config/app.php file.

This might be fixed your issue!

like image 173
Hiren Gohel Avatar answered Oct 25 '22 01:10

Hiren Gohel