mardi 30 octobre 2018

Laravel Nova: Generate Model-Values without field

Is there an option to generate Model-Values by not having a form input at the nova backend?

For example after every store / update I would like to update the created_by value with the current authenticated user.

Exampl:e

$model->created_by = aut()->user()->id



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2CP2lZH
via IFTTT

Aucun commentaire:

Enregistrer un commentaire