有没有谁搞过multiauth,多表验证的?
按 https://github.com/ollieread/multiauth 结果遇到错误
Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Auth\UserInterface, instance of Company given, called in D:\www\10000jobs\vendor\laravel\framework\src\Illuminate\Auth\Guard.php on line 371 and defined
我不知道是不是model写错了.还是这个东西用错了.有没有用过的,指导一下...感激不尽
Argument 1 passed to Illuminate\Auth\EloquentUserProvider::validateCredentials() must be an instance of Illuminate\Auth\UserInterface, instance of Company given, called in D:\www\10000jobs\vendor\laravel\framework\src\Illuminate\Auth\Guard.php on line 371 and defined
我不知道是不是model写错了.还是这个东西用错了.有没有用过的,指导一下...感激不尽
2 个回复
FiveSay - 成武
赞同来自:
风涧澈司
赞同来自:
use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
class Customer extends Eloquent implements UserInterface {
use UserTrait;
protected $table = 'customer';
public $timestamps = true;
}
然后o了... Thks for the same.