1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00
This commit is contained in:
Pek5892
2023-09-12 12:04:50 +02:00
parent 4f7f6114e9
commit 4a203a7613
7 changed files with 75 additions and 16 deletions

View File

@@ -60,6 +60,17 @@ class Note extends Model
return $model;
}
/**
* Rimuove tutte le note di un determinato modulo/plugin e record.
*
* @param array $data
*/
public static function deleteLinked($data)
{
database()->delete('zz_notes', $data);
}
/* Relazioni Eloquent */
public function user()