Files
alrahma_sunday_school_api/app/Models/PasswordReset.php
T
root e13df69885
API CI/CD / Validate (composer + pint) (push) Successful in 3m6s
API CI/CD / Test (PHPUnit) (push) Failing after 4m53s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 59s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
fix unittests issues
2026-07-07 20:56:32 -04:00

43 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Models;
class PasswordReset extends BaseModel
{
protected $table = 'password_resets';
/**
* In legacy you used:
* - createdField = created_at
* - updatedField = expires_at (non-standard)
*
* In Laravel, we can:
* - enable timestamps
* - map UPDATED_AT to expires_at
*
* This will auto-set expires_at whenever you call save()/update().
* (Only do this if thats truly what you want.)
*/
public $timestamps = false;
const CREATED_AT = 'created_at';
const UPDATED_AT = 'expires_at';
protected $fillable = ['email', 'token', 'created_at', 'expires_at'];
protected $casts = [
'created_at' => 'datetime',
'expires_at' => 'datetime',
];
/**
* Optional: if your password_resets table does NOT have an auto-increment id
* (Laravel default table usually uses email as primary and no id),
* uncomment below and set the correct primary key settings:
*/
// protected $primaryKey = 'id';
// public $incrementing = true;
// protected $keyType = 'int';
}