Thursday, February 2, 2017

How to fix Laravel 5.2 command php artisan make:auth was errored

How to fix Laravel 5.2 command php artisan make:auth was errored, so let's read below.


While I am learning the tutorial, I struggled with this problem. I spent it 2 days to find out about it.




In Laravel 5.2 after we use the command "php artisan make:auth" -> it will download some package from the internet and we can also open the page like this normally :


but after I click the link for login, it always errors like this:



we can fix by these step:


    1. at kernel.php [ app/Http/Kernal.php ]
    2. Move StartSession::class and ShareErrorsFromSession::class to protected
Ex:

  protected $middleware = [ 

       \Illuminate\Session\Middleware\StartSession::class,          
       \Illuminate\View\Middleware\ShareErrorsFromSession::class, 

  ];
 Secondly: we do like this



No comments:

Post a Comment