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

Don't load DuskServiceProvider if dusk doesn't exist #2366

Merged
merged 12 commits into from
Jan 18, 2024
3 changes: 3 additions & 0 deletions src/DuskServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class DuskServiceProvider extends ServiceProvider
{
public function boot(): void
{
if (!class_exists(Laravel\Dusk\Browser::class)) {
Tofandel marked this conversation as resolved.
Show resolved Hide resolved
return;
}
Browser::macro('setBrowserLocationToParis', function () {
$this->setLocationToLatLon(48.864716, 2.349014, 'Europe/Paris');
});
Expand Down
Loading