相关疑难解决方法(0)

Laravel:找不到特质'Illuminate \ Foundation \ Auth \ AuthenticatesAndRegistersUsers'

我正在更新到Laravel 5.4,并在尝试显示登录屏幕时收到以下错误消息。

我收到以下错误消息:

找不到特征'Illuminate \ Foundation \ Auth \ AuthenticatesAndRegistersUsers'

这是AuthController类:

<?php

namespace App\Http\Controllers\Auth;

use App\User;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;

class AuthController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Registration & Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles the registration of new users, as well as the
    | authentication of existing users. By default, this controller uses
    | a simple trait to add these behaviors. Why don't you explore it?
    |
    */

use AuthenticatesAndRegistersUsers, ThrottlesLogins;

/** …
Run Code Online (Sandbox Code Playgroud)

php laravel composer-php

7
推荐指数
2
解决办法
6889
查看次数

标签 统计

composer-php ×1

laravel ×1

php ×1