mergeFillable(['used_at']); $this->setVisible(array_merge($this->getVisible(), ['used_at'])); $this->mergeCasts(['used_at' => 'datetime']); } /** * Get the user record associated with the key. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\User, $this> */ public function user(): BelongsTo { return $this->belongsTo(User::class); } }