add email signup flow
This commit is contained in:
parent
9945163a2f
commit
3dc9204979
27 changed files with 629 additions and 24 deletions
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace App\Email\EmailConfirmationToken;
|
||||
|
||||
use DateTimeImmutable;
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
* @property int $user_id
|
||||
* @property string $token
|
||||
* @property DateTimeImmutable $available_to
|
||||
*
|
||||
* @method static Builder<static>|EmailConfirmationTokenModel newModelQuery()
|
||||
* @method static Builder<static>|EmailConfirmationTokenModel newQuery()
|
||||
* @method static Builder<static>|EmailConfirmationTokenModel query()
|
||||
*
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
#[Fillable([
|
||||
'user_id',
|
||||
'token',
|
||||
'available_to',
|
||||
])]
|
||||
class EmailConfirmationTokenModel extends Model
|
||||
{
|
||||
protected $table = 'email_confirmation_tokens';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
/**
|
||||
* @return array<string, string>
|
||||
*/
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'available_to' => 'immutable_datetime',
|
||||
];
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue