<?php
namespace App;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface
{
}
运行php artisan db:seed后,在laravel中找不到类'App \ Eloquent'
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- dongye1912 2017-07-04 10:09关注
Your model should extend the
Model
class:use Illuminate\Database\Eloquent\Model; class User extends Model
If you want to use Laravel authentication system, it should extend
Illuminate\Foundation\Auth\User
:use Illuminate\Foundation\Auth\User as Authenticatable; class User extends Authenticatable
解决 无用评论 打赏 举报