Add generic api schema and scripts model

This commit is contained in:
2025-08-30 18:20:24 +02:00
parent 774d1cf45f
commit f6993d463d
18 changed files with 493 additions and 192 deletions

View File

@@ -31,9 +31,17 @@ class Bot extends Model
);
}
public function cronToHuman(): Attribute
public function cronToHuman(): Attribute
{
return Attribute::make(
get: fn () => CronTranslator::translate($this->schedule));
get: fn() => CronTranslator::translate($this->schedule)
);
}
public function className(): Attribute
{
return Attribute::make(
get: fn() => class_basename($this->class)
);
}
}