|PasswordResetToken create($attributes = []) * @method static \Illuminate\Database\Eloquent\Builder|PasswordResetToken select($columns = ['*']) * @method static \Illuminate\Database\Eloquent\Builder|PasswordResetToken where($column, $operator = null, $value = null) * @method static \Illuminate\Database\Eloquent\Builder|PasswordResetToken first() */ class PasswordResetToken extends Model { #[\Override] protected $primaryKey = 'token'; #[\Override] protected $fillable = ['email', 'token', 'created_at']; /** @var array */ #[\Override] protected $casts = [ 'created_at' => 'date', ]; // timestamps = true, but we don't have "UPDATED_AT". To prevent an error, we set the default value to `null`. public const UPDATED_AT = null; public function user(): BelongsTo { return $this->belongsTo(User::class, 'email', 'mail'); } }