33 lines
595 B
PHP
33 lines
595 B
PHP
<?php
|
|||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
|
||
|
|
class Funnel extends Model
|
||
|
|
{
|
||
|
|
use HasFactory;
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'website_id',
|
||
|
|
'name',
|
||
|
|
'steps',
|
||
|
|
'is_active',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected function casts(): array
|
||
|
|
{
|
||
|
|
return [
|
||
|
|
'steps' => 'array',
|
||
|
|
'is_active' => 'boolean',
|
||
|
|
];
|
||
|
|
}
|
||
|
|
|
||
|
|
public function website(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Website::class);
|
||
|
|
}
|
||
|
|
}
|