Big changes added events for decisions

This commit is contained in:
Simon Pocrnjič
2025-10-22 23:20:04 +02:00
parent 872b76b012
commit 67ebe4b225
36 changed files with 2240 additions and 189 deletions
+12
View File
@@ -11,6 +11,18 @@ class Event extends Model
/** @use HasFactory<\Database\Factories\EventFactory> */
use HasFactory;
protected $fillable = [
'name', 'key', 'description', 'active', 'config',
];
protected function casts(): array
{
return [
'active' => 'boolean',
'config' => 'array',
];
}
public function decisions(): BelongsToMany
{
return $this->belongsToMany(\App\Models\Decision::class);