- Added standard Laravel directory structure and configuration. - Included Svelte and Tailwind configuration for the admin interface. - Added core PHPUnit and testing scripts.
27 lines
429 B
PHP
27 lines
429 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Form extends Model
|
|
{
|
|
protected $fillable = [
|
|
'name',
|
|
'slug',
|
|
'fields',
|
|
'success_message',
|
|
'redirect_url',
|
|
'notification_email',
|
|
];
|
|
|
|
protected $casts = [
|
|
'fields' => 'array',
|
|
];
|
|
|
|
public function submissions()
|
|
{
|
|
return $this->hasMany(FormSubmission::class);
|
|
}
|
|
}
|