From 198c279abb242aaabe3e97c44f271fd9193e5112 Mon Sep 17 00:00:00 2001 From: "Harry (hjbdev)" Date: Mon, 31 Mar 2025 16:20:14 +0000 Subject: [PATCH] no guard --- app/Models/Deployment.php | 2 ++ app/Models/Slice.php | 2 ++ app/Models/Step.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/Models/Deployment.php b/app/Models/Deployment.php index 19a187f..66929a9 100644 --- a/app/Models/Deployment.php +++ b/app/Models/Deployment.php @@ -8,6 +8,8 @@ use Illuminate\Database\Eloquent\Relations\MorphTo; class Deployment extends Model { + protected $guarded = []; + protected function casts(): array { return [ diff --git a/app/Models/Slice.php b/app/Models/Slice.php index 89f1ac4..cb6a83b 100644 --- a/app/Models/Slice.php +++ b/app/Models/Slice.php @@ -7,6 +7,8 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; class Slice extends Model { + protected $guarded = []; + public function service(): BelongsTo { return $this->belongsTo(Service::class); diff --git a/app/Models/Step.php b/app/Models/Step.php index 878ac9b..6781ef8 100644 --- a/app/Models/Step.php +++ b/app/Models/Step.php @@ -8,6 +8,8 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; class Step extends Model { + protected $guarded = []; + protected function casts(): array { return [