I am new to laravel 5. In L5 there is no Illuminate/Html in the core instalation. So I put that in my composer:
"require": {
"laravel/framework": "~5.0",
"illuminate/html": "5.0."
},
And 'Illuminate\Html\HtmlServiceProvider', //in composer's provider's section
And
'Form' => 'Collective\Html\FormFacade',
'Html' => 'Collective\Html\HtmlFacade', //in composer's aliases section
And than I tested in my view:
{{ Form::open(array('action' => 'UsersController@postL')) }}
{{ Form::text('name', @$name) }}
{{ Form::password('password') }}
{{ Form::submit('Send') }}
{{ Form::close() }}
plz help ..
not sure if you got it right but both "'Illuminate\Html\HtmlServiceProvider'" and facades should be in config/app.php
This should be really helpful. Go through this video, its for LARAVEL 5 and shows how to install HTML FORM FACADE and how to use it clearly.
https://laracasts.com/series/laravel-5-fundamentals/episodes/10
Let us know whether you are good after using this. Happy Coding :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community