Try to put this route,
Route::get('/api/v1/{category}/{product?}/{id?}',array('uses' => 'ProductApiController@index'));
above
Route::get('/{category}/{product?}/{id?}',array('uses' => 'ProductController@index'));
Thank you that did solve it. Curious why the order is important for this to work?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community