I don't know why my route isn't working?
My routes file is quite big, here is the chunk where this particular route is used:
routes.php:
// INVENTORY
Route::get('parts-room/inventory/{part_number}/assigned', 'PartInventoryController@assigned');
Route::get('parts-room/inventory/{part_number}/available', 'PartInventoryController@available');
Route::get('parts-room/inventory/{part_number}/order-history', 'PartInventoryController@orderHistory');
Route::get('parts-room/inventory/', 'PartInventoryController@index');
Route::get('parts-room/inventory/{part_number}/details/{tracking-number}', 'PartInventoryController@show');
Route::get('parts-room/inventory/{part_number}/edit/{tracking-number}', 'PartInventoryController@edit');
It's the /details route that doesn't work, all the others do.
here's my PartInventoryController@show:
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function show(PartInventory $inventory, $part_number, $tracking_number)
{
dd($part_number, $tracking_number);
}
I don't think the method is getting called, because it's returning an error and not the dumped data.