I have the following route
Route::get('/{slug}/pd/{public_id}', 'Products\ShowController');
And I want to pass to ShowController just the public_id parameter.
class ShowController extends Controller
{
public function __invoke($public_id)
{
dd($public_id);
}
}
If I run the code above it returns the slug value. I need slug to be just a wildcard in url.