🆙 Add fixed cms 🆙
This commit is contained in:
1 parent
b1a2cab62d
commit
b67e0ec2b9
3982 files changed
+193682
No files matched your search
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class PasswordResetToken extends Model
|
||||
{
|
||||
protected $primaryKey = 'token';
|
||||
|
||||
protected $fillable = ['email', 'token', 'created_at'];
|
||||
|
||||
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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user