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', ]);

现在当我输入:http://localhost:8888/auth/login时,我得到错误:

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.

推荐答案

确保您的config/auth.如果从5.1升级,php将更新.x到5.2.

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

Laravel相关问答推荐

未将Laravel Blade属性传递给组件或类

如何在Laravel中从多行中获取合并数组?

如何使用 Laravel 进行继承

Laravel Eloquent:组合列(或自定义属性)上的 Where 子句

在 laravel 中查询此类数据的最佳做法是什么?

如何使用 Laravel 查询生成器在 WHERE 条件周围添加括号

Laravel 不验证是否不需要字段

如何使用 ajax 请求删除 laravel 5.3 中的记录?

Laravel Eloquent Pluck 不丢失密钥

Laravel vagrant up 不工作 - Errno::EADDRNOTAVAIL

错误:您的要求无法解析为一组可安装的软件包.

Array_unique 上一个 laravel Eloquent的集合

使用 laravel eloquent 关系检索除 NULL 之外的所有记录

WhereNotExists Laravel Eloquent

在 Eloquent 中按自定义顺序对集合进行排序

Laravel 更新语法 - 使用数组更新记录

Laravel 的 toSql() 方法是否会屏蔽 id? (列值被问号替换)

Laravel:在另一个控制器中加载方法而不更改 url

laravel 队列 - 同步驱动程序如何工作?它是在单独的进程/线程还是主执行线程中执行?

如何在 Laravel 5 中验证 RESTful API?