*/ use HasFactory; /** * The attributes that are mass assignable. * * @var list */ protected $fillable = [ 'user_id', 'token', ]; /** * The attributes that should be hidden for serialization. * * @var list */ protected $hidden = [ 'token', ]; public function getToken(): int { return 0; } }