Released
Medium
BUG
· OPENED 9 JUN 2026
· 0 REPLIES
AeroCommerce / API Routes
SF
Stephen Fuller
· teclan Ltd
Public
Log in
to upvote, comment, or submit your own tickets.
When running artisan optimize the below error is returned:
Unable to prepare route [api/products/{productId}/variants] for serialization. Another route has already been assigned name [api.variants.store].
This appears to be due to routes/api.php line 49 having the name api.variants.store [http://api.variants.store] and line 54 also having the same name.
Also the name api.variants.update is used on line 50 and then again on line 55.