feat: extend event toolkit and polish guest pwa
This commit is contained in:
38
app/Models/InviteLayout.php
Normal file
38
app/Models/InviteLayout.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user