Changes 0228092025 Laptop

This commit is contained in:
2025-09-28 14:51:02 +02:00
parent 765beb78b7
commit b40ee9dcde
36 changed files with 2099 additions and 65 deletions
+13
View File
@@ -11,6 +11,19 @@ class Segment extends Model
/** @use HasFactory<\Database\Factories\SegmentFactory> */
use HasFactory;
protected $fillable = [
'name',
'description',
'active',
];
protected function casts(): array
{
return [
'active' => 'boolean',
];
}
public function contracts(): BelongsToMany {
return $this->belongsToMany(\App\Models\Contract::class);
}