Open guirisan opened 7 years ago
$plaga = Plaga::create([ 'user_id' => Auth::id(), 'nom' => request('nom'), 'nom_cientific' => request('nom_cientific'), 'descripcio' => request('descripcio'), 'tractament' => request('tractament'), ]);
Per a poder especificar el valor de cada camp.
Usar Auth::id() o auth()->user()->id ????? See #12
Fer en els formularis de:
[ ] Planta
[ ] Grup
[ ] Familia
[ ] Plaga
[ ] Remei
[ ] Bancal
[ ] Parcela
[ ] Cultiu
[ ] Event
[ ] Image
[ ] Tasca
Per a poder especificar el valor de cada camp.
Usar Auth::id() o auth()->user()->id ????? See #12
Fer en els formularis de:
[ ] Planta
[ ] Grup
[ ] Familia
[ ] Plaga
[ ] Remei
[ ] Bancal
[ ] Parcela
[ ] Cultiu
[ ] Event
[ ] Image
[ ] Tasca