hasOne('App\Shop', 'shop_id', 'shop_id'); } /** * The attributes excluded from the model's JSON form. * * @var array */ protected $hidden = [ 'password', ]; public function getJWTIdentifier() { return $this->getKey(); } public function getJWTCustomClaims() { return []; } }