[英]Class 'App\Eloquent' not found in laravel after running php artisan db:seed
<?php
namespace App;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface
{
}
Your model should extend the Model
class: 您的模型应扩展
Model
类:
use Illuminate\Database\Eloquent\Model;
class User extends Model
If you want to use Laravel authentication system, it should extend Illuminate\\Foundation\\Auth\\User
: 如果要使用Laravel身份验证系统,则应扩展
Illuminate\\Foundation\\Auth\\User
:
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.