style updates
This commit is contained in:
@@ -1,10 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Sites\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
final class SiteDomain extends Model
|
||||
{
|
||||
protected $fillable = ['site_id','domain','is_primary','redirect_to_primary','force_https','is_active'];
|
||||
protected function casts(): array { return ['is_primary'=>'boolean','redirect_to_primary'=>'boolean','force_https'=>'boolean','is_active'=>'boolean']; }
|
||||
public function site(): BelongsTo { return $this->belongsTo(Site::class); }
|
||||
protected $fillable = ['site_id', 'domain', 'is_primary', 'redirect_to_primary', 'force_https', 'is_active'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['is_primary' => 'boolean', 'redirect_to_primary' => 'boolean', 'force_https' => 'boolean', 'is_active' => 'boolean'];
|
||||
}
|
||||
|
||||
public function site(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Site::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user