PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, January 5, 2022

[FIXED] Laravel say that Auth guard [] is not defined

 January 05, 2022     authentication, laravel, laravel-5.1, php, routes     No comments   

Issue

I'm beginer and I start learn and code with laravel... To enable user login nad registration I write this (as I see on one tutorilal):

at routes.php

 Route::controllers([
     'auth'=>'Auth\AuthController',
     'password'=>'Auth\PasswordController', ]);

and now when I type: http://localhost:8888/auth/login I get error:

InvalidArgumentException in AuthManager.php line 71: Auth guard [] is not defined.

enter image description here

Also in view folder there is no auth directory and login.blade.php files and other.


Solution

Make sure that your config/auth.php is updated if you've upgraded from 5.1.x to 5.2.

https://github.com/laravel/laravel/blob/v5.2.0/config/auth.php



Answered By - Matt
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing