feat(auth): complete registration anti-spam and quota hardening
This commit is contained in:
31
app/Models/EmailSendEvent.php
Normal file
31
app/Models/EmailSendEvent.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EmailSendEvent extends Model
|
||||
{
|
||||
protected $table = 'email_send_events';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $fillable = [
|
||||
'type',
|
||||
'email',
|
||||
'ip',
|
||||
'user_id',
|
||||
'status',
|
||||
'reason',
|
||||
'created_at',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'created_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user