I am getting below error which is for only product controller
Route [dataProcessing] not defined.
In the product controller I have script as below
public function index(){
$Products = Product::all();
return view('product-list', ['products' => $Products]);
}
and in the blade I am just trying to echo the data
and my route is as following
Route::get('/product-list', 'ProductController@index');
Can someone kindly guide me why there is error even the script if so simple. Thank you so much
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire