jeudi 20 août 2015

Laravel 5: Add value to fields in Form model

Hello I have a form in laravel opened in model form

{!! Form::model($issue, ['url' => 'calidad/issues/' . $issue->id, 'method' => 'PUT']) !!}

In the form i have some fields stored in a table as $key (name of the field) and $value (value of the field).

I can get the fields values with:

$issue->source()->get()

and this return a collection with the rows.

So my question is, how can i put this values in the form in a simple way.

laravel php laravel 5 laravel 4 laravel with laravel tutorial

Aucun commentaire:

Enregistrer un commentaire