After several months without using Laravel, I now return with this version 5. It may sound like bullshit, but I'm having trouble creating a simple form. It seems that the Illumiante / html is not coming by default in the framework, so it is necessary to make some modifications.
I added the following lines to each file:
composer.json
"illuminate/html": "5.0.*@dev"
config / app.php
'Illuminate\View\ViewServiceProvider',
'Illuminate\Html\HtmlServiceProvider',
'Form'=> 'Illuminate\Html\FormFacade',
'HTML'=> 'Illuminate\Html\HtmlFacade',
My view
{{ Form::open(array('action' => 'HomeController@gerarPdf'))}}
{{ Form::text('name', 'name') }}
{{ Form::password('password') }}
{{ Form::submit('Send') }}
{{ Form::close() }}
HomeController
public function gerarPdf() {
return 'ola mundo';
}
Error Message
OBS
I already gave the composer update and the method has already been created in the controller.