new design

This commit is contained in:
Mark Gregory
2026-11-19 17:55:57 +00:00
parent 3aaba4c827
commit 61be51659a
36 changed files with 2932 additions and 529 deletions
+7
View File
@@ -0,0 +1,7 @@
<?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']; }
}
+7
View File
@@ -0,0 +1,7 @@
<?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']; }
}
+4
View File
@@ -0,0 +1,4 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class SiteSetting extends Model { protected $fillable = ['key','value']; }
+2 -1
View File
@@ -10,7 +10,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
#[Fillable(['name', 'email', 'password'])]
#[Fillable(['name', 'email', 'password', 'is_admin'])]
#[Hidden(['password', 'remember_token'])]
class User extends Authenticatable
{
@@ -27,6 +27,7 @@ class User extends Authenticatable
return [
'email_verified_at' => 'datetime',
'password' => 'hashed',
'is_admin' => 'boolean',
];
}
}