Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

Slowhand's avatar

Redirect after Login/Sign In E-commerce Checkout

Dear all, I have a small app in wich a user can buy one or more courses. For obvious reasons, I ask every user to log in or register before accessing the checkout page. Route::group(['middleware' => ['auth']], function () { Route::get('/checkout', 'CheckoutController@index')->name('checkout.index'); Route::post('/checkout/charge', 'CheckoutController@charge')->name('ch

Slowhand's avatar
Slowhand's avatar Slowhand5yrs agoLaravel
0
1
anon160124's avatar

Fix ecommerce Listeners\CartUpdatedListener error

Hi, Could you help me fix the error I'm getting? CartUpdatedListener.php public function handle($event) { $couponName = session()->get('coupon')['name']; if ($couponName) { $coupon = Coupon::where('code', $couponName)->first(); dispatch_now(new UpdateCoupon($coupon)); } } Execute the job public function handle

anon160124's avatar
anon160124's avatar Martin11825yrs agoLaravel
2
1
Last reply by Martin1182 5yrs ago
RuinSain's avatar

Building an e-commerce shop can be hard. Whats the best practice DB wise?

I bet there are lots of this kinda stuff. But tell you the truth, navigating among the numerous options is the worst! So I'm asking you all, what can be a good approach to design a database, with the relations and all in order to make such a site? Actually, this can even be a good series here on laracasts, but until this happens... what do you think? I made a few models. Item,

RuinSain's avatar
RuinSain's avatar RuinSain6yrs agoEloquent
6
1
Last reply by RuinSain 6yrs ago
haroondk's avatar

E-commerce checkout process

Hello guys, I've got a step based checkout and each have a separate routes. Login / Continue as guest / Register new Personal info / delivering method Delivery option based on delivery method Accept and payment method Payment response and done. What would you recommend storing user-info? or do you have better way of structuring the checkout process?

haroondk's avatar
haroondk's avatar Snapey6yrs agoLaravel
5
1
Last reply by Snapey 6yrs ago
remember-me's avatar

how to design multi vendor ecommerce

How to build a multi-vendor store with laravel please help with both database and analytics and coding?

remember-me's avatar
remember-me's avatar surajjd5yrs agoGeneral
3
1
Last reply by surajjd 5yrs ago
Randy_Johnson's avatar

Ecommerce with auth tutorials

Hi, can anyone recommend me any tutorials, my end goal is to create an e commerce site so I can start trading on it.

Randy_Johnson's avatar
Randy_Johnson's avatar aurawindsu...6yrs agoGeneral
1
1
Last reply by aurawindsurfing 6yrs ago
Mubeenali's avatar

How to implement realtime order tracking in ecommerce?

Hello Artisans!I need to implement realtime tracking of order when customer will give an order an unique id will generate by the system So i want to implement the realTime tracking.get the location of order and show on map in very realtime.please give me any soultion or idea to implement this .?I searched a lot but nothing found that fulfills my requirement.please help me thank

Mubeenali's avatar
Mubeenali's avatar Mubeenali7yrs agoLaravel
10
1
Last reply by Mubeenali 7yrs ago
niman's avatar

How to structure the database for an e-commerce using mysql

How to create a product with different options like color, size etc. Every option have a option value, quantity, price( or extra cost ), image. ========================================================= Color: Black 5 + 10 image1.jpg Color: Red 7 + 12 image2.jpg Size: XL 2 + 0 image4.jpg Size: XXL 6 + 5 null Please help me for create thi

niman's avatar
niman's avatar Sergiu177yrs agoGeneral
1
1
Last reply by Sergiu17 7yrs ago
Mubeenali's avatar

how to retrive a category and all it's child in tree structure same as all ecommerce sites ?

I have a table called categories.i stored data into it in such a manner if the category parent_id is 0 then it is the most parent category if category parent id is not 0 then obviously it is the child of anyone ...Means to say that i store the data into tree structure each category can be subcategory or may be sub sub category .Now i want to show them in navigation bar at front

Mubeenali's avatar
Mubeenali's avatar Mubeenali7yrs agoLaravel
4
1
Last reply by Mubeenali 7yrs ago
sasafister's avatar

Ecommerce product matching from different websites

I have an interesting and complex problem. I'm scraping few websites for price comparison/monitoring app. The problem is that N websites have same product, but different title/sku/image/categories and I don't see a way how I could match product X from site A to be same (or at least 90% similar) to product from site B. What are your thoughts?

sasafister's avatar
sasafister's avatar sasafister7yrs agoCode Review
5
1
Last reply by sasafister 7yrs ago
GTHell's avatar

Any tutorial article on product listing like eCommerce (Amazon, eBay, Aliexpress...)?

I have a page listing all items and I have search, sort and browse by letter. I'm implementing it with Vue, Vuex and axios but stuck on basic idea like sorting. I mean I don't know the flow. The basic I can get is list first 10 items than has a load more and the search bar will alter the list of item. Everything is one page and item is a modal.

GTHell's avatar
GTHell's avatar aurawindsu...7yrs agoVue
1
1
Last reply by aurawindsurfing 7yrs ago
hockeymonkey96's avatar

Looking for a Laravel 5.5 E-Commerce textbook or tutorial

I cannot find one source that is comprehensive so I'm having to refer to textbooks written for Laravel 4 and bit and pieces of tutorials from different websites. Also I've tried installing Aimeos expecting the source code to show up (controllers, models, migrations, views, etc) so I can use it as a template but it did not. I am new to Laravel but have programming experience s

hockeymonkey96's avatar
hockeymonkey96's avatar hockeymonk...7yrs agoLaravel
4
2
Last reply by hockeymonkey96 7yrs ago
spacedog4's avatar

Recommend me a Laravel E-commerce package

Should I use a package for building simple e-commerces? Or It's better to do all from scratch? And if you know and tied any package, which one do you recommend me?

spacedog4's avatar
spacedog4's avatar louisphili...5yrs agoLaravel
5
1
Last reply by louisphilip 5yrs ago
umerhassan's avatar

I need tax calculation at time of checkout in my eCommerce solution

Anybody knows best tax calculation service with minimum cost or free, I have to show in cart at time of checkout. Thanks, Umer Hassan

umerhassan's avatar
umerhassan's avatar jlrdw7yrs agoGeneral
1
1
Last reply by jlrdw 7yrs ago
p0t4t0's avatar

Has anyone used the Aimeos e-commerce package for Laravel in their projects? How is it?

Are there are better alternatives?

p0t4t0's avatar
p0t4t0's avatar p0t4t08yrs agoLaravel
0
1
Shawdow's avatar

How to fetch the data for multiple checkbox like ecommerce filter panel.

Hi, https://screenshots.firefox.com/R8tEQqtjFrokBc77/www.flipkart.com above filter panel displays the internal storage with different memory.does any have an idea how to fetch those values from the database and display it. Thanks,

Shawdow's avatar
Shawdow's avatar Shawdow8yrs agoLaravel
6
1
Last reply by Shawdow 8yrs ago
Shawdow's avatar

displaying the brands in filter panel for a ecommerce site

Hi, i need to display the brand for a particular products i explored in the some ecomerce site filter panel was changing as the products gets displayed i have brand table now i need know the how the brands get displayed for every product in the brands table id name category_id 1 hp 1 2 sony 1 in the

Shawdow's avatar
Shawdow's avatar Shawdow8yrs agoLaravel
18
1
Last reply by Shawdow 8yrs ago
WebbieWorks's avatar

Whats your recommendation for ecommerce

I am trying to come up with a basic solution for an ecom site. I seen this - http://elcodi.io/ but is based on Symfony and I am looking to stay with laravel. I watched a few tutorials by mindspace to making a shopping cart but I couldnt figure out how to do an admin where you add the products. Then in reverse, I got an admin going but couldnt figure out how to make the products

WebbieWorks's avatar
WebbieWorks's avatar WebbieWork...9yrs agoLaravel
2
1
Last reply by WebbieWorks 9yrs ago
jericopulvera's avatar

What is the right data type for e-commerce price?

$table->decimal('price', 5, 2); this is what I am using right now. is there a better data type than this for pricing accuracy?

jericopulvera's avatar
jericopulvera's avatar ankitparma...9yrs agoGuides
2
1
Last reply by ankitparmar372 9yrs ago
animationatul's avatar

Advance Eloquent Query for Ecommerce

https://postimg.org/image/y4d4rpeqt/ Please have a look at above image link I just want to do the eloquent query to get result like that and also i want to do filtering according to that. Any Help Appreciated

animationatul's avatar
animationatul's avatar animationa...9yrs agoEloquent
0
1
rleecrewmp's avatar

Is an e-commerce site possible through Laravel Cashier?

I've seen past threads on this subject, but I can't seem to find any straightforward answers. Is it possible to create an online store using laravel cashier or is it strictly for subscription based payments? I know that the charge() method exists, but I don't think a single transaction is what it's for. Thanks

rleecrewmp's avatar
rleecrewmp's avatar bobbybouwm...9yrs agoLaravel
8
1
Last reply by bobbybouwmann 9yrs ago
theUnforgiven's avatar

Help/Advise with clothing e-commerce site.

I may have asked this question before, but I'm unable to find the post I made, but here goes (again) I have a shopping cart that sells women's clothing. The site works to the point where a item that may have many different colours and different sizes, so I need to show a dropdown with the colour and the related sizes: Example: Yellow size 14 top Yellow size 16 top Blue size 12

theUnforgiven's avatar
theUnforgiven's avatar theUnforgi...9yrs agoGeneral
10
1
Last reply by theUnforgiven 9yrs ago
gnabin01's avatar

Multilingual Ecommerce Sites

What is the good method for making multilingual ecomerce sites from laravel .For theme-view/template we can make different folder under lang directory but how to make products/ advertisements name multilingual. Is it good to keep in database. I use mysql database.Is it efficient to keep one products in different language in database and call according to language.I am in great

gnabin01's avatar
gnabin01's avatar gnabin0110yrs agoLaravel
0
1
MarkMatute's avatar

Laravel 5.1 For Online POS + Ecommerce Shop

I will be working on my thesis soon, an Online POS System with E-Shop, is Laravel 5.1 the answer to my thesis? :)

MarkMatute's avatar
MarkMatute's avatar bobbybouwm...10yrs agoLaravel
3
1
Last reply by bobbybouwmann 10yrs ago
dmcglone's avatar

Easy E-Commerce using Laravel and Stripe

It was an awesome book hands down. I would recommend it to any Beginner/Intermediate artisans. I learned a bunch today from this book alone. In my case I learned a lot about code organization.

dmcglone's avatar
dmcglone's avatar tjmapes10yrs agoGeneral
8
2
Last reply by tjmapes 10yrs ago
Loach's avatar

Setting up Ecommerce Database

Hello, This is a bit of a long post. I am modeling my database after the image on this stackoverflow thread. http://stackoverflow.com/questions/17711324/database-structure-for-customer-table-having-many-orders-per-customer-and-many I am mapping that database as follows: Customer = User (in my app) Order = Order (in my app) Product = Song(in my app) OrderItem = SongOrder(in my a

Loach's avatar
Loach's avatar Loach11yrs agoLaravel
3
1
Last reply by Loach 11yrs ago
bytefury's avatar

Ecommerce Product Variants

I am confused about how to implement Variants for each product. Also note that each variant has its own price. Size - Small - Price - 200 , Size - Medium - Price - 400 what would be the best way to save this on database? currently i am thinking about creating one to many relationship of product > Variants. Variants Table Schema : ID , product_id , size & price Open to

bytefury's avatar
bytefury's avatar londoh11yrs agoGeneral
3
1
Last reply by londoh 11yrs ago
Randy_Johnson's avatar

Open AI and type "Roast me hard"

Please add what it puts, no cheating. Here's mine. You’ve got a software stack that looks like a recruiter’s fever dream—Laravel, React, Inertia, Node, Django, Flask, Kubernetes certifications—and yet half your projects still end up depending on “I’ll refactor it later,” which is developer code for “this works, don’t ask how.” You’re simultaneously building: an e-commerce platf

Randy_Johnson's avatar
Randy_Johnson's avatar Randy_John...1w agoGeneral
4
1
Last reply by Randy_Johnson 1w ago
BlendM's avatar

Job Position

Hi everyone! As much as random and unrelated this might be, I am still a member of the community and I’am seeking for a job position, currently! I am a very self driven full stack developer mainly using PhP/Laravel and Javascript/React and I have over 4 years of experience in real world companies, including an Ecommerce ecosystem. If anyone is in need of a good developer and a

BlendM's avatar
BlendM's avatar LaryAI3mos agoLaravel
1
3
Last reply by LaryAI 3mos ago
GodziLaravel's avatar

Looking for a ready-to-use Bagisto repository with maximum addons/modules included

Hi everyone, I’m looking for a Bagisto-based repository or starter project that already includes as many addons/modules as possible (official and/or community), ideally close to a production-ready setup. The goal is to avoid starting from a very minimal core and instead build on top of: Common ecommerce features already enabled Popular Bagisto extensions (payments, shipping, ma

GodziLaravel's avatar
GodziLaravel's avatar martinbean5mos agoGeneral
1
1
Last reply by martinbean 5mos ago
june23's avatar

Is it required to code an entire module like a basic "Instant Messenger" for example in coding interviews as quick and accurate as possible?

I have been wondering, I am sure for MAANG companies there needs to be "perfection" when it comes to coding rounds like memorizing an entire frontend or backend frameworks like Laravel so that it can be possible to code an entire module or component like a "Shopping Cart" for an E-Commerce website with out having to look into the documentation or Stackoverfl

june23's avatar
june23's avatar Snapey5mos agoGeneral
10
1
Last reply by Snapey 5mos ago
DigitalViking's avatar

Prevent race conditions and queue best practices

Hi Laracasts community, I’m currently facing an issue in our application for which I haven’t yet found a fully satisfying solution. Let me give you some context: I’m working on a multi-integration setup in the e-commerce space. The application connects our ERP system with multiple fulfillment partners. It handles various data flows (product data, stock levels, orders, and shipp

DigitalViking's avatar
DigitalViking's avatar LaryAI5mos agoLaravel
7
35
Last reply by LaryAI 5mos ago
zYxNiRV's avatar

Seeking Practical Project Ideas to Enhance Laravel Skills After Completing 30 Days Tutorial

Hello Laravel Community! I’ve recently completed the 30 Days of Laravel tutorial, and it was an amazing learning experience. Now that I feel more comfortable with the basics, I’m eager to level up my skills and apply my knowledge in a real-world project. I’m looking for some interesting project ideas that could help me improve my Laravel proficiency, especially in areas like: A

zYxNiRV's avatar
zYxNiRV's avatar LaryAI6mos agoGeneral
1
12
Last reply by LaryAI 6mos ago
alireza_hadizadeh's avatar

What is the best architecture in Laravel for handling features that rely on external APIs (some with authentication, some without)?

I have an existing Laravel e-commerce project that uses an external SMS provider for sending OTP codes and notifications. The provider offers a full API for its own panel, and I want to integrate parts of that panel directly into my e-commerce admin dashboard to improve convenience for my clients (companies and start-ups who buy the project). Inside my app I already send SMS th

alireza_hadizadeh's avatar
alireza_hadizadeh's avatar jlrdw6mos agoLaravel
3
1
Last reply by jlrdw 6mos ago
tanjilurrahman21's avatar

Websites with Inertia

Hello, my experience with inertia is I created an ERP software with it. Using Laravel inertia and React js. I basically used the react starter kit. And I have also learned that Inertia is preferred for SPAs. My Question is, If I make like e-commerce website or any other websites can I still use inertia? what are the drawbacks?

tanjilurrahman21's avatar
tanjilurrahman21's avatar JussiManni...7mos agoInertia
2
1
Last reply by JussiMannisto 7mos ago
june23's avatar

Will building a variety of different projects and implementing business logic make me a better programmer?

I built my first project and it is an E-Commerce API written in Laravel. I have noticed that I lacked knowledge with "business logic" and what it was and what it meant. I recently implemented business logic with help from Gemini AI, and now understand that without business logic there is no solution. So my question is, will building a lot of different projects like so

june23's avatar
june23's avatar june238mos agoGeneral
5
1
Last reply by june23 8mos ago
june23's avatar

How many times have you used traditional algorithms and data structures professionally?

How many times have you implemented traditional algorithms such as bubble sort, quick sort, merge sort or even linear search and other search algorithms on a day to day basis? I have understood and I have even asked AI prompts like Gemini, that algorithms like the ones mentioned above are not needed because the Databases does all the heavy lifting. So my question is how would y

june23's avatar
june23's avatar june238mos agoGeneral
5
1
Last reply by june23 8mos ago
Randy_Johnson's avatar

Autoload SUCKS

I keep running into problems in auto load. I have created my own package structure which look like this └───ecommerce └───src │ composer.json │ package.json │ vite.config.js │ ├───app │ ├───Http │ │ ├───Controllers │ │ │ EcommerceController.php │ │ │ │ │ └───Models

Randy_Johnson's avatar
Randy_Johnson's avatar Randy_John...9mos agoLaravel
8
1
Last reply by Randy_Johnson 9mos ago
kenprogrammer's avatar

How can I prevent mining of data from public APIs?

I'm building an e-commerce website with Laravel API and NuxtJS. As you all know products listing endpoints are always NOT under authentication since users do not need to login to browse the product catalog. Now the issue is I don't want users to send requests to the APIs using REST clients such as Postman. How can I go about this? NB: Remember endpoints are visible on browser'

kenprogrammer's avatar
kenprogrammer's avatar JussiManni...9mos agoLaravel
7
1
Last reply by JussiMannisto 9mos ago
swamydeshetty's avatar

centralised login authentication

Hello i want to build an centralised login authentication, i have 4 products but i need to build one login only for those 4 .. for example i have the swamy.in ecommerce website and i have marketing website swamymarketing.in for both of these i need to maintain one login only..when i come to the swamymarketing.in when i click on the login it should redirect swamy.auth.in ,h

swamydeshetty's avatar
swamydeshetty's avatar martinbean1yr agoLaravel
3
1
Last reply by martinbean 1yr ago
lanoow's avatar

Upgrading Laravel from v10 to v12

I'm trying to migrate my e-commerce store to v12, however I'm getting frustrated with the composer upgrade... I've followed the upgrade guide in the docs however I cannot get pass nunomaduro/collision. I get this error after running composer upgrade -W: Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires nuno

lanoow's avatar
lanoow's avatar tykus1yr agoLaravel
5
4,292
Last reply by tykus 1yr ago
FreeSpirit63's avatar

Just looking for some tips and feedback ?

Ps: 62 Years Old and have never used laravel for your info Ok, have an issue you use file in the code to point like in the @props ([active]) -> what are the keyboard shortcuts? i think i got it => and -> right? any tips how i can remember the code better like request, {{ $slot }} etc. whats the best reference to use? after this course Laravel in 30 days, i would like t

FreeSpirit63's avatar
FreeSpirit63's avatar FreeSpirit...1yr agoGeneral
2
1
Last reply by FreeSpirit63 1yr ago
hussein_97's avatar

Best Authentication Method for Laravel and Next.js (SSR) with Server-Side Requests

I’m building an e-commerce website using Laravel (backend API) and Next.js (Server-Side Rendering - SSR). The challenge I’m facing is handling authentication and session synchronization between Laravel and the Next.js server, given that Next.js (SSR) cannot directly access browser cookies since requests are made from the server. I’ve explored multiple authentication strategies,

hussein_97's avatar
hussein_97's avatar vincent150...1yr agoLaravel
1
1
Last reply by vincent15000 1yr ago
warpig's avatar

Recommendation: where to start with events, observers, listeners (from laracasts)

I've never explored these topics in depth, but for the project I'm working on, they seem to be a daily necessity. From the outside, I see them as "notifications" and stuff... for example, when one makes a purchase on an eCommerce site and receive a confirmation email. If all I need is to implement these kinds of features, where should I start? My project already uses

warpig's avatar
warpig's avatar rdelorier1yr agoGeneral
4
3
Last reply by rdelorier 1yr ago
Ishit's avatar

Modular approach in Laravel 12.03

Hello, I want to develop on the latest Laravel product using a modular approach. I have tried many times with the "nwidart/laravel-modules" package. I ran the command to create the Ecommerce module, and it was successfully created. However, when I run the composer dump-autoload command, I encounter the following error: "Modules\Ecommerce\App\Providers\EcommerceSe

Ishit's avatar
Ishit's avatar martinbean1yr agoLaravel
7
56
Last reply by martinbean 1yr ago
Nabisalay's avatar

Custom Domain Integration for Stores on nabisalay.com Not Working (Shared Hosting, Apache)

Hey everyone, I’m working on a multi-tenant eCommerce platform (nabisalay.com) where users can create their own stores. How It Works By Default Users get a store handle like: nabisalay.com/@storehandle I want to let them connect their own custom domains (e.g., mystore.com). What I’ve Implemented So Far Middleware for Domain Mapping I’ve added a middleware that checks the

Nabisalay's avatar
Nabisalay's avatar martinbean1yr agoServers
8
1
Last reply by martinbean 1yr ago
thetanaz's avatar

Is this Auth pattern safe?

So I'm currently building an ecommerce site for PC hardware, and I need to have both an User and an Admin portal. The users are the customers of the site while the admins have their own UI where they update stock, pricing and respond to customer support requests. So far so good. So I was wondering how I would split the auth logic and my first idea was with a role column in the

thetanaz's avatar
thetanaz's avatar thetanaz1yr agoLaravel
12
1
Last reply by thetanaz 1yr ago
tickteam-darylp's avatar

Dynamic sitemaps

Hi all, We've got a custom solution that we use for client sites. A CMS if you will. This has pages, by default, and through plugins you can install blogs, events, eCommerce solutions too. We run a scheduled task, at midnight, which generates the sitemap - but only for pages. The sitemap package we use is: spatie/laravel-sitemap We would like to allow the additional areas to al

tickteam-darylp's avatar
tickteam-darylp's avatar LaryAI1yr agoGeneral
1
1
Last reply by LaryAI 1yr ago
Aws12's avatar

Need Project Ideas to Build My Resume & Improve Skills

Hi, I know the VILT stack, and I’ve worked on projects before, but none that feel good enough to put on my resume. I’m still pretty new, and honestly, I don’t even know how good I actually am—I want to test myself too. But I feel like if I don’t have solid projects to show people, it’s almost like I don’t know anything, even if I have the skills. I’ve been thinking about projec

Aws12's avatar
Aws12's avatar RemiM1yr agoTips
2
1
Last reply by RemiM 1yr ago
Sarim_Shahid's avatar

Cache Mechanism for Real-Time Updates

Hi everyone, I am working on an e-commerce store and want to load queries faster. Is it possible to set up caching in such a way that it automatically updates query whenever a model undergoes any CRUD action?

Sarim_Shahid's avatar
Sarim_Shahid's avatar malmalah01yr agoTips
6
1
Last reply by malmalah0 1yr ago

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.