mardi 19 mai 2020

laravel prefil form inputs from controller

Hi I'm using laravel forms.

{!! Form::text('product_name', null, array('class' => 'form-control date_pick')) !!}

Is there a way to set this default input from controller?. Think we can do it with Flash but I couldn't find an example. I want to take vlues from a model and prepopulate.

$products = Products::all();

It would be great if someone know how to do this.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire