reconstruction of the project

This commit is contained in:
root
2026-03-08 16:33:24 -04:00
parent 23b7db1107
commit c8de5f7edc
9157 changed files with 77877 additions and 1073823 deletions
+32 -5
View File
@@ -1,5 +1,4 @@
<?php
// app/Models/PasswordReset.php
namespace App\Models;
@@ -8,14 +7,42 @@ use App\Models\BaseModel;
class PasswordReset extends BaseModel
{
protected $table = 'password_resets';
protected $primaryKey = 'id';
/**
* In CI 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',
];
public $timestamps = false;
const CREATED_AT = 'created_at';
const UPDATED_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';
}