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

Method Illuminate\Auth\SessionGuard::getDefaultDriver does not exist #1000

Closed
fylzero opened this issue Mar 15, 2022 · 5 comments
Closed

Method Illuminate\Auth\SessionGuard::getDefaultDriver does not exist #1000

fylzero opened this issue Mar 15, 2022 · 5 comments

Comments

@fylzero
Copy link

fylzero commented Mar 15, 2022

  • Jetstream Version: 2.6.7
  • Jetstream Stack: Inertia
  • Uses Teams: no
  • Laravel Version: 9.5.0
  • PHP Version: 8.1.3
  • Database Driver & Version: 8.0.28

Description:

After installing a fresh copy of Laravel 9 and Jetstream w/ Inertia and trying to register or login a user I am receiving the following error:

BadMethodCallException
Method Illuminate\Auth\SessionGuard::getDefaultDriver does not exist.

Steps To Reproduce:

  • laravel new app-issue
  • cd app-issue
  • composer install
  • npm install
  • touch database/database.sqlite
  • Set DB_CONNECTION=sqlite and comment out DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, and DB_PASSWORD in .env file
  • php artisan migrate:fresh --seed
  • composer require laravel/jetstream
  • php artisan jetstream:install inertia
  • npm install
  • npm run dev
  • php artisan migrate
  • Visit http://app-issue.test/register and register new user
  • Receive the error Method Illuminate\Auth\SessionGuard::getDefaultDriver does not exist
@fylzero
Copy link
Author

fylzero commented Mar 15, 2022

@driesvints Ran into another issue while trying to create a repo for #997

Not sure if this is just me or what. I've tried installing multiple times.

@driesvints
Copy link
Member

If you revert the changes from laravel/framework#41447, does that fix things for you?

@taylorotwell
Copy link
Member

Tagged 9.5.1.

@driesvints
Copy link
Member

@fylzero can you verify Laravel v9.5.1 fixes your issue?

@fylzero
Copy link
Author

fylzero commented Mar 15, 2022

You guys are FAST! Yes, that resolved it. Thanks!

@fylzero fylzero closed this as completed Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants