39 lines
780 B
PHP
39 lines
780 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class InviteLayout extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = [
|
|
'slug',
|
|
'name',
|
|
'subtitle',
|
|
'description',
|
|
'paper',
|
|
'orientation',
|
|
'preview',
|
|
'layout_options',
|
|
'instructions',
|
|
'is_active',
|
|
'created_by',
|
|
];
|
|
|
|
protected $casts = [
|
|
'preview' => 'array',
|
|
'layout_options' => 'array',
|
|
'instructions' => 'array',
|
|
'is_active' => 'bool',
|
|
];
|
|
|
|
public function creator(): BelongsTo
|
|
{
|
|
return $this->belongsTo(User::class, 'created_by');
|
|
}
|
|
}
|