Trait ‘Illuminate\Auth\UserTrait’ not found
laravel小白,laravel5.7
<?php
namespace App;
use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;
use Illuminate\Database\Eloquent\Model;
class Badmin extends Model implements UserInterface, RemindableInterface {
use UserTrait, RemindableTrait;
protected $table = 'badmin';
protected $hidden = array('password');
public static $rules = [
'nickname' => 'required|alpha_num|min:2',
'username' => 'required',
'email'=>'required|email|unique:badmin',
'password'=>'required|alpha_num|between:6,12|confirmed',
];
}
一直提示找不見這個類,用了 php artisan make:auth
還是不起作用
本作品採用《CC 協議》,轉載必須註明作者和本文連結