I'm upgrading my app to laravel 5.1 following the upgrade guide in the official docs. It says for authentication
you no longer need to pass the Guard and Registrar instances to the base constructor. You can remove these dependencies entirely from your controller's constructor.
But after removing this from base constructor in AuthController when i try to visit the login page below error is shown
ErrorException in AuthController.php line 41:
Undefined variable: auth
what i'm doing wrong??
Your constructor probably still mentions the following:
//$this->auth = $auth;
//$this->registrar = $registrar;
Just comment these two lines.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.