(1/1) FatalThrowableError
Type error: Argument 1 passed to Illuminate\Auth\SessionGuard::login() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Http\Model\User given, called in D:\wamp64\www\blog\vendor\laravel\framework\src\Illuminate\Foundation\Auth\RegistersUsers.php on line 34
ErrorException in Guard.php line 430:
Argument 1 passed to Illuminate\Auth\Guard::login() must be an instance of Illuminate\Contracts\Auth\Authenticatable, instance of App\Geo\Model\Users given
博主。你有没有试过将表中的name字段换成其他的。我下的最新的laravel5.1,users表中的事username字段。 我把register表中的name置成username,提交注册时候显示验证错误:“the name field is required”。
但是我把users中的字段修改成name,register中也用name就没有问题了。我搞不清楚是为什么
QueryException in Connection.php line 636: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'unimates_db.users' doesn't exist (SQL: selectcount(*) as aggregate from`users`where`email` = docker@transwarp.io)
为什么我的create页面总报错,无法将数据存入数据库,我是laravel 5.4,报错是:
Whoops, looks like something went wrong.
(2/2) ReflectionException
Class App\Http\Requests\CreateArticleRequest does not exist
in RouteSignatureParameters.php (line 25)
at ReflectionParameter->getClass()
in RouteSignatureParameters.php (line 25)