devrkb21/backend-ecom ? reverse-engineered prompt
Reverse engineered prompt
Build me a production ready Laravel ecommerce backend that a web or mobile storefront can use, plus an admin area at /admin for staff.
I want secure customer flows for signup, login, password reset, cart, checkout, orders, tracking, invoices, wishlist, reviews, addresses, returns, notifications, loyalty, coupons, flash sales, and abandoned cart recovery. Add payment support for Stripe and bKash. On the admin side, give me catalog management, user management, role based permissions, return and refund handling, and settings for things like analytics and marketing integrations.
Please keep the API under /api/v1 and make security strict by default so everything there needs a bearer token unless it is one of the clearly allowed public auth routes or the payment callback and webhook routes. Make sure admin only actions are properly protected too.
Set it up so it runs locally with database seeding, queue jobs, scheduler tasks, and tests that protect the security rules. Include sensible seed users for admin and customer, and use the README and API docs as the source of truth. Look up current docs online if you need to.
Have a live product UI? Try website reverse