add actual suggestion support
Build / Build-image (push) Successful in 1m15s

This commit is contained in:
2026-08-22 09:50:02 +02:00
parent 6ac21fc4ca
commit 9af75a0781
5 changed files with 16 additions and 11 deletions
+4 -2
View File
@@ -12,7 +12,9 @@ class TlaSuggestion extends Model
protected $fillable = ['acronym', 'hint', 'language', 'context', 'submitter'];
public static function ApproveTla() {
$tla = new Tla();
public static function ApproveTla(TlaSuggestion $record) {
$tla = new Tla($record->toArray());
$record->delete();
$tla->save();
}
}