I am using the Laravel/Collective as a form helper in Laravel 5, however when i create my forms it only outputs the html markup and not the form controls as expected.
I have added "laravelcollective/html": "~5.0" to my composer.json, ran composer update.
Added 'Collective\Html\HtmlServiceProvider' to the providers array in in the config.app and 'Form' => 'Collective\Html\FormFacade','Html' => 'Collective\Html\HtmlFacade' in the aliases array in config.app file.
My form code: {!! Form::model($currency, ['route'=>['currency.update', $currency->id], 'method'=>'PUT']) !!}
{!! Form::close() !!}
Output is the html markup:
<label for="currency" class="col-sm-3 control-label">Currency Code: </label> <input class="form-control" name="currency" type="text" value="GBP" id="currency"> <label for="description" class="col-sm-3 control-label">Currency Description: </label> <input class="form-control" name="description" type="text" value="British Pound" id="description"> <label for="is_active" class="col-sm-3 control-label">Is Active? </label> <input name="is_active" type="checkbox" value="0" id="is_active"> <button type="button">Submit</button>
I know its probably something silly i missed but i've been stumped so far, any assistance or advice would be appreciated. Thank you
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire