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. What is the easiest way to do it?



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

Aucun commentaire:

Enregistrer un commentaire