For example, in this code I see that the route is like this: "pedidos3.create"
{!!Form::open(['route'=>'pedidos3.create','method'=>'GET','class'=>'form-horizontal form-label-left input_mask','name'=>'sumar']) !!}
but in the route it is only like this:
Route::resource('pedidos3', 'PedidosController@create');
The dot itself doesn't mean anything special, it's a Laravel convention to separate the name of the route set or controller and the action the method performs. But it can be "home.car" or "myhome" and it will work too, it's just a name that is defined along with the path.
By using
Route::resource
you are telling Laravel to create the entire set of CRUD related routes.If you do
Route::resource('photos', 'PhotosController');
, Laravel will generate the following routes:The correct way to use Route::resource is without specifying the method, just the controller:
You can find all the information in the documentation:
https://laravel.com/docs/5.4/controllers#resource-controllers