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

glembo's avatar

Where to place own socket logic for data transfer between laravel and custom software

Hi, I started working on a laravel based system for some ecommerce stuff. Actually I have the problem that all the data I gonna use is stored in our company's own system. We developed a socket api for data exchange with json. All the things we want to do are prepared within the socket system. E.g: get all products get specific product information send transaction details send

glembo's avatar
glembo's avatar glembo6yrs agoLaravel
0
1
nafeeur10's avatar

Refresh page without reloading

I am building an E-commerce website. In this website, there is Sign up and Login system. When a user will log in he will redirect to Homepage. I used window.location = '/' this code. But it is refreshing the whole page. Same for logout. Please give me a suggestion. https://chaldal.com/ See this example.

nafeeur10's avatar
nafeeur10's avatar walidabou6yrs agoVue
3
1
Last reply by walidabou 6yrs ago
Evie's avatar

Changing currency on blade

Hi, I am using stripe for ecommerce, in my settings I have changed the currency to display GBP instead USD which works great for billing but on the membership page where I am displaying a list of memberships it still displays in dollars. <div class="row justify-content-center"> <div class="col-md-12"> <div class="

Evie's avatar
Evie's avatar Evie6yrs agoLaravel
6
1
Last reply by Evie 6yrs ago
eriktobben's avatar

Best way of keeping Cart active after logout

Hi, I am developing an eCommerce site and I have a question related to the cart. Currently I have a Cart model and a CartItem model where the cart and its content is stored. When a user adds a product to cart, I create the cart and store the cart ID in session. My problem is when the user logs out the session is cleared and the user gets an empty cart because the cart ID in ses

eriktobben's avatar
eriktobben's avatar elham6yrs agoLaravel
3
1
Last reply by elham 6yrs ago
Gabotronix's avatar

Help with shop items many to many relationship

Hi everybody, I'm working on an e-commerce web where you can buy some items, say shirts... I have three models Item, ItemColor and ItemSize. I have set up a many to many relationship where an item in the shop can have many colors and many sizes available but each of these items will have a stock on it's own, here is where things get complicated for me. If I create an item, for

Gabotronix's avatar
Gabotronix's avatar ChristophH...7yrs agoGeneral
1
1
Last reply by ChristophHarms 7yrs ago
Triumfator's avatar

Vue.js components inside a FORM possible?

Is it possible for me to incorporate Vue components with CRUD functionality inside another crud form? Let's say I have a form that handles customer order info for an e-commerce application. Order info is stored in orders table and it includes shipping address info and amounts paid. Inside that form I want to have a vue component that will fetch order items stored in orderitems

Triumfator's avatar
Triumfator's avatar Triumfator7yrs agoGeneral
2
1
Last reply by Triumfator 7yrs ago
Triumfator's avatar

Vue implementation advice

I'm building an e-commerce project in Laravel 5.8 and I was wondering if Vue will be suitable to build a single page that handles customer orders. There will be several tables. ORDERS: containing customer user id, shipping address, and total of all ordered products. ORDERITEMS: containing order id, item id, quantity, and price for items that belong to a particular order. TRACK

Triumfator's avatar
Triumfator's avatar Triumfator7yrs agoGeneral
3
1
Last reply by Triumfator 7yrs ago
Hello_World's avatar

redirect to intended page after login - laravel 5.7

I have an e-commerce site. When user going to checkout page, they need to login to the system. After authentication, the page will redirect to checkout page. I used multi-table-auth in my e-commerce website (https://scotch.io/@sukelali/how-to-create-multi-table-authentication-in-laravel). I used redirect()->intended(), which is not working. I also searched for result in onli

Hello_World's avatar
Hello_World's avatar Lkm964yrs agoLaravel
12
4
Last reply by Lkm96 4yrs ago
Nikki's avatar

Items in cart not showing up

I'm not sure if this is a laravel or vue question, but I'm trying to create an eCommerce site using both laravel and vue. I've been doing good for the most part. I've now run into a problem that I can't seem to understand. When I click on the "Add To Cart" button after selecting the code that I want it goes to my cart page, which is correct. The problem comes in is wh

Nikki's avatar
Nikki's avatar Nikki7yrs agoLaravel
0
2
Mubeenali's avatar

How to associate order tracking id to the android application??

i am implementing the realtime order tracking in my ecommerce website.I have a table called order. Order table contains following columns Orders Table: id user_id seller_id tracking_id totalPrice whenever a user place an order system generates an unique tracking id and that tracking id is stored in orders table.Now for realtime tracking i build an app that gives me the lat an

Mubeenali's avatar
Mubeenali's avatar Mubeenali7yrs agoLaravel
5
1
Last reply by Mubeenali 7yrs ago
geerizzle's avatar

How/where to adapt Email Verification?

I've setup an ecommerce solution like this: Step 1: User enters email & name. On submit, user is created in DB with random password. Step 2: User logged in automatically. Completes checkout with address & makes payment. Step 3: User then sets account password and some other things. DB updated with their password. (Step 4: They verify their email to get full access to us

geerizzle's avatar
geerizzle's avatar Snapey7yrs agoLaravel
6
1
Last reply by Snapey 7yrs ago
princeoo7's avatar

Setting a Global Pagination Limit Variable in laravel

This is kinda stupid question, but anyway clearing out the doubt is better then keeping it to self. so currently i have set a varaible in config/app.php 'limit' => 20 then in any controller i need it, i do Config('app.limit') now in any controller i am doing it as protected $limit; public function __construct(Request $request) { ($request->has('lim

princeoo7's avatar
princeoo7's avatar princeoo77yrs agoLaravel
8
1
Last reply by princeoo7 7yrs ago
danimohamadnejad's avatar

how to query pivot table in eloquent before retrieving any data?

hello I am working on an ecommerce application please consider following models: Product Attribute ProductAttribute and tables(simplest form): products id name attributes id name product_attribute id product_id attribute_id value Product and Attribute both have belongsToMany relationship and ProductAttribute is pivot model. I want to be able to get all products which

danimohamadnejad's avatar
danimohamadnejad's avatar danimohama...7yrs agoEloquent
1
1
Last reply by danimohamadnejad 7yrs ago
GSTAR's avatar

CMS solutions

Hi guys, I'm just wondering what solution do you go for when you want to add CMS capabilities to a Laravel website? I prefer not to build the website in a CMS framework such as OctoberCMS - instead I would prefer for the CMS to be an additional module. Let's say for example I have built an ecommerce website for a client - everything is going fine until the client says they want

GSTAR's avatar
GSTAR's avatar GSTAR7yrs agoLaravel
2
1
Last reply by GSTAR 7yrs ago
armancs's avatar

add meta tag dynamically for each product

In my e-commerce application when i paste a url to facebook or others social site there is no image passed with that url. i want to show the url and spceific product wise picture and title. How can i do it? here is some code i am trying. This is head section code : <meta property="og:title" content="{{$code[0]->meta_keys}}"> <meta name="auth

armancs's avatar
armancs's avatar bobbybouwm...7yrs agoGuides
4
1
Last reply by bobbybouwmann 7yrs ago
Shiva's avatar

Getting the total quantity to be displayed

I'm trying to create an e-commerce site and the problem I'm having at the moment is that at the bottom of my cart the sub total price isn't displaying correctly. Here is my product_details.blade.php @extends('layouts.public') @section('content') <div class="content_wrapper"> @foreach($single_product as $product) <div class="row si

Shiva's avatar
Shiva's avatar Shiva7yrs agoLaravel
3
1
Last reply by Shiva 7yrs ago
Shushovan's avatar

@include creates a gap like a 10px margin

I am new to Laravel. Therefore I am creating an e-commerce website to learn Laravel. But whenever I am using @include to include header.blade.php it's creating a margin button(approx 10px I guess). I have used @extends as well but same problem. I am unable to fix this problem. Please suggest me to short out this problem.

Shushovan's avatar
Shushovan's avatar Cronix7yrs agoLaravel
6
1
Last reply by Cronix 7yrs ago
lara96's avatar

How to implement Infinite category tree?

Currently i am developing an eCommerce web application. In that admin should able to add infinite category tree. like this category1 • sub category • sub sub category • more categories...etc • sub category In that some fields are only select boxes some are only numbers( such as rooms, vehicle year..etc ) some are alpha numeric. and in posting page according to user selected cat

lara96's avatar
lara96's avatar londoh7yrs agoGeneral
3
1
Last reply by londoh 7yrs ago
JOHNMAC's avatar

image is not displaying in front-end while saving in destination folder

m working on ecommerce site, when i add product then it show on index page without image but image is saving in the destination folder, can anyone provide solution fot it, code of ProductsController: public function productPreview(Request $request) { $productsModel = new ProductsModel(); $product = $productsModel->getProduct($request->id); if ($product == nu

JOHNMAC's avatar
JOHNMAC's avatar programmer...7yrs agoLaravel
4
1
Last reply by programmer111 7yrs ago
MuhammadUmar's avatar

Undefined variable: filename

hi m working on update products form of ecommerce site but when i try to edit details then it shows error "Undefined variable: fileName" and error line is: Product::where(['id'=>$id])-> update(['product_name'=>$data['product_name'], 'product_code'=>$data['product_ code'], 'product_color'=>$data['product_color'], 'description'=>$data['descri

MuhammadUmar's avatar
MuhammadUmar's avatar developer_7yrs agoLaravel
4
1
Last reply by developer_ 7yrs ago
user_hkcl's avatar

Laravel Store locator

Can any one provide me link of ecommerce store locator plugin for ecommerce web application written in laravel?

user_hkcl's avatar
user_hkcl's avatar fida6yrs agoLaravel
2
1
Last reply by fida 6yrs ago
ameypangaonkar's avatar

Need to Develop an Application with Multiple Feature

Hi, I need to develop and web application & Mobile App with Bellow Feature. Can you please help and suggest best technology to develop? Classified Ads Directory Forum Blogs Events (Calendar) Knowledge Center Multi-Vendor E-Commerce Portal Additional Features at Admin Side Complete Project Management Solution Support Center / Ticketing System I will appreciate if you can

ameypangaonkar's avatar
ameypangaonkar's avatar ameypangao...7yrs agoGeneral
2
1
Last reply by ameypangaonkar 7yrs ago
samzhen95's avatar

Lesson on building real world project

It'll be great if Jeffrey can whip out some lesson on building real world project, like e-commerce, social media, etc. I think it'll help us learn more on how to structure our project, how to design the database, see how different technologies work together.

samzhen95's avatar
samzhen95's avatar BradHe7yrs agoFeedback
2
1
Last reply by BradHe 7yrs ago
mkojoa's avatar

Best way to create category & product tables ?

Please, I have some issues with my e-commerce database ie category table. I need an efficient way to create something like : WOMEN [parent] CLOTHING [sub category 1] SPORT GEANS [sub category 2] [list of product here] please, I need help seriously...

mkojoa's avatar
mkojoa's avatar mkojoa7yrs agoGeneral
7
1
Last reply by mkojoa 7yrs ago
nitinjohnson's avatar

Same routes in differnt domain with different controllers

I am working on an ecommerce website I have an admin panel as well as seller panel. I have a product module in the admin panel. Actually i want to use the same module in the seller panel also but I want to use the same route for both of the panel. Seller panel is in sub domain and the admin panel is the main domain. I have also provided groups. Is it possible to use the same ro

nitinjohnson's avatar
nitinjohnson's avatar nitinjohns...7yrs agoLaravel
0
1
Nasr1's avatar

Shoping CART APIs

i have every thing ready for ecommerce webiste , gust the CART , i have no idea what to do , i have used https://github.com/Crinsane/LaravelShoppingcart tried to consume it For APIs , couldnt do it , also i want to undertand if i will build cart for api do i need to use the session or the token ? plz help guys

Nasr1's avatar
Nasr1's avatar Nasr17yrs agoLaravel
0
1
edalzell's avatar

Retrieving/calculating Order total from OrderItems

I'm new to Laravel and trying to understand best practices as I build an eCommerce system. Note, I'm on L5.1 atm, moving to 5.7, so solution must work on 5.1 right now. I have an Order: class Order extends Model { ... public function items() { return $this->hasMany('Statamic\Addons\Buck\Models\OrderItem'); } } and an OrderItem: class OrderItem extends Mo

edalzell's avatar
edalzell's avatar AndJSch7yrs agoEloquent
1
1
Last reply by AndJSch 7yrs ago
nlaracastsuser's avatar

Migrating to Laravel

Hello everyone, I decided to migrate old custom php SAAS system to Laravel for better coding experience, easier maintaining and expanding of software. At the moment saas wors as ecommerce platform with about 500 customers, each customer has about from 100 to 2k sales per day and each customer has its own database. I am thinking, is it worth to migrate everything to one database

nlaracastsuser's avatar
nlaracastsuser's avatar nlaracasts...7yrs agoGeneral
0
1
jpeterson579's avatar

Can laravel cashier handle multiple one time payments?

Can laravel cashier handle one time payments? Like for an ecommerce type of store? But you only purchase 1 product at a time?

jpeterson579's avatar
jpeterson579's avatar jlrdw7yrs agoLaravel
1
1
Last reply by jlrdw 7yrs ago
Chris R.'s avatar

One route to many controllers

What is the best approach in this situation - I have e-commerce system where I want URL logic be like this: www.example.com/en/product-1-slug www.example.com/en/product-2-slug www.example.com/en/category-1-slug www.example.com/en/category-2-slug www.example.com/en/category-1-slug/subcategory-1-slug www.example.com/en/category-1-slug/subcategory-1-slug/subsubcategory-1-slug www

Chris R.'s avatar
Chris R.'s avatar Mithrandir7yrs agoLaravel
2
2
Last reply by Mithrandir 7yrs ago
tqt_andrew's avatar

Custom Request object for specific routes

I'm adding an ecommerce application into an existing Laravel install via service providers, have kept the two things to their own domains. However, I would like the Store\Core\Request object to have a storeResolver which will allow $request->store() in a similar way to the the $request->user() or $request->route() methods. I have achieved this through extending the req

tqt_andrew's avatar
tqt_andrew's avatar tqt_andrew7yrs agoLaravel
0
1
izshreyansh's avatar

Eloquent morph toMany

I have a table setup like this for an ecommerce platform, So that i can save products with variation & sub variation data. products id name description sku options option_key option_value product_id sku quantity option_keys id name option_values id value Eloquent model is setup like this: class Product extends Model {

izshreyansh's avatar
izshreyansh's avatar lostdreame...7yrs agoEloquent
3
1
Last reply by lostdreamer_nl 7yrs ago
kanav_kapoor's avatar

Allow users to update HTML content?

Hi all. I've created many websites on Laravel and was not able to find any perfect solution allowing my clients to update their static contents by themself. As an example, a client needed an e-commerce website. He also asked me to add a blog functionality. So, i built frontend and backend/admin on Laravel. From backend he can add products, blog-posts etc that displays on his we

kanav_kapoor's avatar
kanav_kapoor's avatar kanav_kapo...7yrs agoTips
2
1
Last reply by kanav_kapoor 7yrs ago
ralphdns's avatar

Checkout with Credit Card validation in Laravel

Apart from stripe.com, pls which other API can I use in my ecommerce site, so that users can checkout using their credit card. thanks guys

ralphdns's avatar
ralphdns's avatar wilk_randa...7yrs agoLaravel
6
1
Last reply by wilk_randall 7yrs ago
PatrickL's avatar

Stripe API and Widholding Funds

I have a question related to the Stripe API for PHP. What I am building is a platform marketplace, quite similar to an e-commerce platform using the Stripe Connect service as a payments provider. One of the requirements for this platform is the application widholds the funds of a customer’s purchase until the seller fulfills said purchase. This is mostly to protect the platform

PatrickL's avatar
PatrickL's avatar AlbertLaba...7yrs agoGeneral
5
1
Last reply by AlbertLabarento 7yrs ago
niladrimahato96's avatar

Machine Learning in PHP

is there any plugin or library to do predictive analytics in laravel of user's recent searches, purchase's etc like amazon, flipkart or any other ecommerce website does. Here i don't want to host another server to run ML algorithms and do the prediction, I want to make a laravel website where i will send the data set to a library or plugin which will return the predictive data.

niladrimahato96's avatar
niladrimahato96's avatar ChristophH...7yrs agoLaravel
1
1
Last reply by ChristophHarms 7yrs ago
niladrimahato96's avatar

predictive analytics in laravel

is there any plugin or library to do predictive analytics in laravel of user's recent searches, purchase's etc like amazon, flipkart or any other ecommerce website does. Here i don't want to host another server to run ML algorithms and do the prediction, I want to make a laravel website where i will send the data set to a library or plugin which will return the predictive data.

niladrimahato96's avatar
niladrimahato96's avatar niladrimah...7yrs agoLaravel
0
1
PatrickL's avatar

Question About OAuth2 and Microservices

I’m designing an e-Commerce application using a Microservice Architecture (This is my first time building a Microservice based application). After some research, I discover that OAuth is the ideal way of securing microservices. I find this package that I can use to implement an OAuth Auth server. https://github.com/dusterio/lumen-passport The thing I’m wondering now has to do w

PatrickL's avatar
PatrickL's avatar PatrickL7yrs agoGeneral
0
1
brknesn's avatar

Laravel vs Lumen for REST Api

Hey guys, I want to build an api for my e-commerce system but I'm not sure that which one I should choice. Performance is really important. I will use oAuth2 for authentication. Api includes some features only; Product, Order, Customer (CRUD)

brknesn's avatar
brknesn's avatar Shahrukh47yrs agoLaravel
1
1
Last reply by Shahrukh4 7yrs ago
alaash3lan's avatar

learning

i'm new to backend development, i learned php and laravel , and i have made e-commerce and cms project , what else i need to learn to become a good developer and qualified to work

alaash3lan's avatar
alaash3lan's avatar lostdreame...7yrs agoGeneral
2
1
Last reply by lostdreamer_nl 7yrs ago
mxbn's avatar

Submit & get multiple posts/products by ID's through url

Hey guys, I've been learning Laravel for the past couple of months. Now I'm a little bit stuck with the following. Searched all over the internet and can't find the fitting answer yet. I'm trying to create a test e-commerce platform (just for fun). Now I'm trying to create a sidebar with filters. I already managed to get the categories to work. Now I'm trying to have several ch

mxbn's avatar
mxbn's avatar mxbn7yrs agoLaravel
8
1
Last reply by mxbn 7yrs ago
Gonchar1989's avatar

2 roles with different app.js Vue + Laravel

Hi there! We have eCommerce project on Laravel + Vue. 2 roles: buyer & seller. Each role has it own vue components. What is the best way to separate components of different roles? Somehow split components between 2 app.js files. Then connect each app.js to different roles. Connect all components localy inside blade files. Buyer's components connect to buyer's blades, selle

Gonchar1989's avatar
Gonchar1989's avatar Gonchar198...7yrs agoVue
0
1
saksham's avatar

Identify User without login

I want to create coupon module in my e-commerce mobile application, i want to know how to identify applied coupon of unique device, when i am not logged in i am confused for this can anyone help me. i want to use cache system but to identify what do?

saksham's avatar
saksham's avatar AlexDemin7yrs agoLaravel
1
1
Last reply by AlexDemin 7yrs ago
matthewinSpire's avatar

Button click not submitting form

I have created a checkout form for an e-commerce project I am working on. Clicking on the "Place Order" button should trigger a set of actions, including processing the payment and adding the order, with associated information, to the database. At the moment, clicking on the "Place Order" button does absolutely nothing. I can't seem to figure out the reaso

matthewinSpire's avatar
matthewinSpire's avatar matthewinS...7yrs agoLaravel
5
1
Last reply by matthewinSpire 7yrs ago
NadeemAkhter's avatar

Master Page Attributes

I work on e-commerce website ,in my master page layout all categories are shown in header section the issue is i add master page attributes in all routes . is their any way i add these attributes any where else only one time not for all routes. //////////////////////Header////////////////////////////////////// $all_categories= Category::where('published',1

NadeemAkhter's avatar
NadeemAkhter's avatar NadeemAkht...7yrs agoLaravel
2
1
Last reply by NadeemAkhter 7yrs ago
Sys32's avatar

Separate front and backend completely?

I have coded in Laravel for 4 years now, and I have implemented various different JavaScript frameworks into my stack. The time however has come to move more toward PWA's etc. My question is, should you completely separate datahandling and only communicate via API calls? Like if you have an eCommerce site, everything from getting the products, search results, product index, car

Sys32's avatar
Sys32's avatar shez19837yrs agoTips
2
1
Last reply by shez1983 7yrs ago
ficus's avatar

PHPStorm - remote server workflow

Hi guys, I wonder - what is your workflow on project where you have to work on it remotely all the time? I'am developing several applications for some e-commerce saas platform, each app has to be added to its appstore before I can do anything with it. It requires https btw. At this moment I'am using phpstorm + lsyncd to sync all files and everything to a staging server which is

ficus's avatar
ficus's avatar ficus7yrs agoGeneral
2
1
Last reply by ficus 7yrs ago
love_laravel's avatar

dynamic product using laravel

I'm new in web developing. I'm trying to add dynamic product to my eCommerce website. This is my database structure: https://i.stack.imgur.com/Wdf2t.jpg options table for attributes like: size, color. choices table for different options like: red, blue, large, small. My question is how I can reach Instance by having choices (instances and choices have many to many relationship)

love_laravel's avatar
love_laravel's avatar love_larav...7yrs agoLaravel
0
1
AnumAmir1212's avatar

open a bootstrap modal using middleware

i am trying to make an eCommerce website. In it I want to add the functionality of rating different vendors. a customer's order can consist of products from different vendors. later on they are asked to rate their experience with each of the vendors. i have created a middleware in construct method which checks if the customer has rated their order. if not they are taken to the

AnumAmir1212's avatar
AnumAmir1212's avatar AnumAmir12...7yrs agoLaravel
3
1
Last reply by AnumAmir1212 7yrs ago
TuffRivers's avatar

Registering a WebHook

Hi All, I am using an ecommerce platform that allows you to register a webhook to receive notifications when certain events happen on the site. How do i actually trigger this post request to register the webhook if i have no UI for it in Laravel or nothing to trigger it? Do i just put it in a script file and run it CLI php webhook.php ? This is my post request: $clientSecret =

TuffRivers's avatar
TuffRivers's avatar NickVahali...7yrs agoLaravel
3
1
Last reply by NickVahalik 7yrs 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.