badboybigbill
2 years ago

Method [guest] does not exist on Redirect.

Posted 2 years ago by badboybigbill

I have been searching and debugging for hours, but could not find an answer to this error.

This is Membercontroller:

  public function __construct()
  {
      $this->middleware('auth');
  }

  public function index()
  {
      return view('member.home');
  }

This is SessionController

  public function __construct()
  {
      $this->middleware('guest', ['except' => 'destroy']);
  }

  public function create()
  {
      return view('session.create');
  }

This is my routes/web.php:

Route::get('/member', '[email protected]');

Route::get('/login', '[email protected]')->name('login');

When I try to access 127.0.0.1/member, the above error pops up.

Any idea?

Please sign in or create an account to participate in this conversation.