标签: php laravel
我想让类User同时扩展Authenticatable和Model:
User
class User extends Authenticatable class User extends Model
这样做的正确方法是什么?
答案 0 :(得分:3)
默认情况下,User类扩展Illuminate\Foundation\Auth\User as Authenticable。这个类已经扩展了Model类。
Illuminate\Foundation\Auth\User as Authenticable
Check the API for more information