I have a Controller and in it I have a several methods. My question is How do I set the Controller's action to my form:
<form action="action('ExamenController@InsertUser')" method="post">
Obviously this give the famous exception:
Action App\Http\Controllers\ExamenController@InsertUser not defined....blablabla
Also a tried with this:
<a class="btn btn-primary" href="{{action('ExamenController@InsertUser')}}">Save</a>
The same error. Do anyone know how this works???? I don't understand Documentation from Laravel 5.5
But I know this works putting in web.php (previously route.php) using:
Route::post('url','ExamenController@InsertUser');