Generate my Controllers, models and views with infyom and everything perfect but when I create a function and I call it with a route
in a view it tells me it is not defined
I have in my file web.php
the following line
Route::resource('facturas', 'FacturaController');
And in the view I try to call my function obtenerproductos
and nothing
I have it implemented so {{ route('facturas.obtenerproductos') }}
the error is as follows:
Route [invoices.obtainproducts] not defined. (View: C: \ xampp \ htdocs \ products_sales2 \ resources \ views \ invoices \ create_venta.blade.php)