changes to sms packages and option to create user

This commit is contained in:
Simon Pocrnjič
2025-11-06 21:54:07 +01:00
parent ad8e0d5cee
commit 1395b72ae8
102 changed files with 1386 additions and 319 deletions
+6 -4
View File
@@ -15,22 +15,24 @@ class Segment extends Model
'name',
'description',
'active',
'exclude'
'exclude',
];
protected function casts(): array
{
return [
'active' => 'boolean',
'exclude' => 'boolean'
'exclude' => 'boolean',
];
}
public function contracts(): BelongsToMany {
public function contracts(): BelongsToMany
{
return $this->belongsToMany(\App\Models\Contract::class);
}
public function clientCase(): BelongsToMany {
public function clientCase(): BelongsToMany
{
return $this->belongsToMany(\App\Models\ClientCase::class)->withTimestamps();
}
}