new design with nice layout
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
class ContactEnquiry extends Model {
|
||||
protected $fillable = ['name','email','company','service','message','is_read'];
|
||||
protected function casts(): array { return ['is_read'=>'boolean']; }
|
||||
|
||||
class ContactEnquiry extends Model
|
||||
{
|
||||
protected $fillable = ['name', 'email', 'company', 'service', 'message', 'is_read'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['is_read' => 'boolean'];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
class SiteSection extends Model {
|
||||
protected $fillable = ['key','eyebrow','title','body','button_label','button_url','is_visible','sort_order'];
|
||||
protected function casts(): array { return ['is_visible'=>'boolean','sort_order'=>'integer']; }
|
||||
|
||||
class SiteSection extends Model
|
||||
{
|
||||
protected $fillable = ['key', 'eyebrow', 'title', 'body', 'button_label', 'button_url', 'is_visible', 'sort_order'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['is_visible' => 'boolean', 'sort_order' => 'integer'];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
class SiteSetting extends Model { protected $fillable = ['key','value']; }
|
||||
|
||||
class SiteSetting extends Model
|
||||
{
|
||||
protected $fillable = ['key', 'value'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user