This is student.php and my function for admin:
public function admin(Request $request){
if($request->isMethod(\'get\')){
retu
Laravel has an authentication skeleton generator which might have been previously used prior to your current state in your project. I had this error and I was coming from a git clone that had Laravel extra's omitted from sharing good practices.
By reissuing the command
php artisan make:auth
https://laravel.com/docs/5.6/authentication#introduction