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



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire