colorful
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled

This commit is contained in:
2026-05-01 12:54:12 +00:00
parent 6ef2e9fe4e
commit 7c5055075b
12 changed files with 128 additions and 26 deletions

View File

@@ -10,6 +10,15 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
#[Fillable(['product_id', 'customer_id', 'type', 'start_date', 'end_date', 'status', 'printed_at', 'signed_status'])]
class Contract extends Model
{
protected function casts(): array
{
return [
'start_date' => 'date',
'end_date' => 'date',
'printed_at' => 'date',
];
}
public function product(): BelongsTo
{
return $this->belongsTo(Product::class);

View File

@@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
#[Fillable(['name', 'slug', 'icon', 'is_active'])]
#[Fillable(['name', 'slug', 'icon', 'color', 'is_active'])]
class FeedbackChannel extends Model
{
protected function casts(): array