mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
- Added Discord alert webhook URL to .env.example - Created ContactCategory enum with humanReadable method - Implemented ContactSubmissionRequest form request - Added ContactSubmission model with fillable and casts properties - Included configurations for Discord alerts and honeypot protection
24 lines
404 B
PHP
24 lines
404 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use App\Enums\ContactCategory;
|
|
|
|
class ContactSubmission extends Model
|
|
{
|
|
protected $fillable
|
|
= [
|
|
'name',
|
|
'email',
|
|
'discord',
|
|
'category',
|
|
'subject',
|
|
'message',
|
|
];
|
|
|
|
protected $casts = [
|
|
'category' => ContactCategory::class,
|
|
];
|
|
}
|