BUB-16 Gestione contatti completata

This commit is contained in:
2023-04-06 16:17:29 +02:00
parent ac787c0da6
commit 2ab8a63cbc
6 changed files with 111 additions and 2 deletions

View File

@@ -19,5 +19,15 @@ class contatto extends Model
return ['tipo'=>$type,'contatti'=>$lista];
}
public static function saveNewContact($param) {
DB::table('contattos')->insert([
'cnt_tipo'=>$param['cnt_tipo'],
'cnt_valore'=>$param['cnt_valore'],
'cnt_note'=>$param['cnt_note'],
'cnt_fk_anagraficaId'=>$param['cnt_fk_anagraficaId'],
]);
}
}