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

Muhammednasser's avatar

Pushing feature update and Control all my websites

I creating a Saas eCommerce using Laravel like Shopify. (multi stores with different plans with it's different features i have faced 2 things didn't knew how i can do it First if i added a new feature or fixed a bug , How i can send an update to all users ? Second how i can mange all user . ex. upgrade a plan for user or disable/active a feature for him ?

Muhammednasser's avatar
Muhammednasser's avatar martinbean5yrs agoLaravel
2
1
Last reply by martinbean 5yrs ago
fahaddsheikh's avatar

Structuring Product Attributes

So I'm building an eCommerce application that I am working on from scratch and I'm stuck with a problem with product attributes. An attribute is a property of a product. Possible values are color and size A product could have many attributes An attribute can have many values like Red, Green Blue The possible structure I've found to make sense is having two tables. Attributes

fahaddsheikh's avatar
fahaddsheikh's avatar martinbean5yrs agoEloquent
2
4
Last reply by martinbean 5yrs ago
rearmustak's avatar

Making Routes based on categories

In my e-commerce I would not know how many categories shall I have, I'm not worried about subcategories right now. How can I programmatically create that category routes For example - yourdomain.com/shop?category=laptops yourdomain.com/shop?category=desktops Category Table $table->string('name'); $table->string('slug')->unique(); $table->timestamps();

rearmustak's avatar
rearmustak's avatar rearmustak5yrs agoLaravel
3
1
Last reply by rearmustak 5yrs ago
majdiden's avatar

API post request not reaching the application

Hello, i'm new to laravel and i'm facing a painful problem. I'm using Crinsane/LaravelShoppingcart in my ecommerce api and i'm trying to send a post request with axios in vuejs that adds a product to the cart by sending the product id and the quantity. The problem is the id and quantity are not reaching the application although i'm pretty sure i specified the correct route link

majdiden's avatar
majdiden's avatar majdiden5yrs agoLaravel
19
1
Last reply by majdiden 5yrs ago
wd's avatar

efficient query method LARAVEL

Hi, I am currently building an e-commerce site and I would like to display a product preview by category through queries in my Controller. But after realization I find myself with too many requests that make the page change slow. I would like to know if there is not a more efficient method. here is my code : public function index() { //for phone $ph

wd's avatar
wd's avatar martinbean5yrs agoGeneral
1
1
Last reply by martinbean 5yrs ago
Hamad_essa's avatar

Laravel Create Products Orders for each Shop in Api

I'm building a JSON Restful API for the eCommerce app I have the following tables Orders: Schema::create('orders', function (Blueprint $table) { $table->id(); $table->string('order_number'); $table->unsignedBigInteger('user_id'); $table->enum('status', ['pending','processing','completed','decline'])->default('pending'); $ta

Hamad_essa's avatar
Hamad_essa's avatar martinbean5yrs agoLaravel
3
1
Last reply by martinbean 5yrs ago
app_dev's avatar

Is there a user system package ?

I am looking for a user package that I can customize for Laravel. I am using version 5.8. I am developing an e-commerce website. Can I find a package suitable for the MVC architecture?

app_dev's avatar
app_dev's avatar martinbean5yrs agoLaravel
4
1
Last reply by martinbean 5yrs ago
Rifat's avatar

Fetch products from price range

I am developing a e-commerce website with laravel. I have a price range slider. It gives me min and max values. How can I fetch all the products form the products table between that min and max price?

Rifat's avatar
Rifat's avatar bobbybouwm...5yrs agoLaravel
1
1
Last reply by bobbybouwmann 5yrs ago
pedroroccon's avatar

Shopping Cart - Single class instance for all application

Greetings! I'm developing an e-commerce from scratch. The application should have a shopping cart, wich handles the items selected by the user. It's possible to instantiate the class only once, so when I call Cart class this always returns me the same instance of Cart class? Regards!

pedroroccon's avatar
pedroroccon's avatar guybrush_t...6yrs agoLaravel
3
1
Last reply by guybrush_threepwood 6yrs ago
Azeem812's avatar

I want to select a category and filter the results based on that?

I am currently working on ecommerce site which have multiple categories and products. I want to select category and filter products using search form.please tell me because i am bigginer

Azeem812's avatar
Azeem812's avatar Azeem8126yrs agoLaravel
2
1
Last reply by Azeem812 6yrs ago
davy_yg's avatar

Component Registration

I found this file on an ecommerce for component registration. I wonder if there is any reference to create this whole scripts? I don't know what are all the neccessary scripts for component registration? This is the only reference I found: ref: https://vuejs.org/v2/guide/components-registration.html app.js import Vue from 'vue' import SuiVue from 'semantic-ui-vue' import axi

davy_yg's avatar
davy_yg's avatar bobbybouwm...6yrs agoVue
3
1
Last reply by bobbybouwmann 6yrs ago
YasserHaddad's avatar

File Put Contents Error

Versions: php: 7.2.0 laravel: 6.18.1 The system on the server is: Centos 8 So I am working on a e-commerce project in laravel, using laravel 6 and I am using the bagisto plugin for the e-commerce system, everthing was going will locally but when I deployed the project on the server I kept having this error: "file_put_contents(/var/www/bagisto/storage/framework/sessions/DRn

YasserHaddad's avatar
YasserHaddad's avatar bobbybouwm...6yrs agoGeneral
10
1
Last reply by bobbybouwmann 6yrs ago
vinubangs's avatar

how to get transaction id and name in bluesnap payment gateway

I am using bluesnap payment gateway in Laravel. And it is working properly. But in return I am not getting transaction id and customer name is not showing in sandbox account also. $environment = 'sandbox'; // or 'production' $keys = \tdanielcox\Bluesnap\Bluesnap::init($environment, 'API_111111111111111111111', 'password11'); $response = \tdanielcox\Bluesnap\CardTransaction::cr

vinubangs's avatar
vinubangs's avatar bobbybouwm...6yrs agoLaravel
1
1
Last reply by bobbybouwmann 6yrs ago
jginorio's avatar

Should I use Pipelines for Searching, Filtering, Sorting and Paginate

Goal: I'm creating an inventory system in Laravel 7. I want to create a way to search, filter, limit, and paginate the products in my index.blade.php view. Very similar to what e-commerce pages have... Where you can filter by categories, active or inactive products, and search by the product's name or product id. I already have the pagination by using Laravel's paginate functio

jginorio's avatar
jginorio's avatar bugsysha6yrs agoLaravel
1
1
Last reply by bugsysha 6yrs ago
Riwash Chamlagain's avatar

how to make product active with domain

I have a ecommerce site i want to sell it but . i want to 1 ecommerce active in 1 domain . so how can i make that if that domain is activated with system it only work

Riwash Chamlagain's avatar
Riwash Chamlagain's avatar Riwash Cha...6yrs agoLaravel
0
1
nicwek's avatar

Undefined index: url

How do I initialize URL variable? I am implementing a brand filter for my e-commerce and i get this error when trying to load a filter. These are my controller functions: public function allproducts(Request $request, $url) { $products = Product::take(50)->paginate(15); $categories = Category::whereNull('parent_id')->get(); //where(['url'=>$url,'parent_id'])

nicwek's avatar
nicwek's avatar MichalOrav...6yrs agoLaravel
14
1
Last reply by MichalOravec 6yrs ago
nicwek's avatar

Property [cover_img] does not exist on this collection instance

I am implementing a wish list for an ecommerce platform and i keep on getting this error, although everything works out pretty fine. How can i get rid of the error? Any input will be highly appreciated. Here's my code: //My controller function for add to wishlist public function addWishList(Request $request) { $wishlist = new Wishlist(); $wishlist->user_id = Auth::u

nicwek's avatar
nicwek's avatar nicwek6yrs agoLaravel
30
1
Last reply by nicwek 6yrs ago
futurefuture's avatar

Very Long Job

Hey, was looking for some advice here to see if maybe anyone had any insight: I'm running an eCommerce site with approx. 17000 products. We have been collecting analytic data such as impressions, add to carts, etc on Amazon Redshift, and we've built a dashboard for our partners to view their products analytics. We've noticed that running these individual queries (i.e add to car

futurefuture's avatar
futurefuture's avatar futurefutu...6yrs agoLaravel
0
1
nicwek's avatar

Send Dymamic Email with Generated PDF

I am trying to creating an e-commerce platform where an auto-generated pdf of clients' orders is sent to their emails as an attachment. I have been through several forums and I see most people are hardcoding the user email address which is not my intention. Kindly assist. In my OrderController: $pdf = \PDF::loadview('OrderPDF'); $try = $pdf->output(); Mail::to($req

nicwek's avatar
nicwek's avatar nicwek6yrs agoLaravel
2
2
Last reply by nicwek 6yrs ago
dbnames's avatar

Image is broken while the file itself is stored

Hello, so i was building an e-commerce website and i was in the middle of building the CRUD features for managing products. I got the problem when i try to view the products, while it's showing another attributes like the product name, price, weight, etc, the image was broken. Here is my Controller: public function store(Request $request) { $this->validate($request, [ '

dbnames's avatar
dbnames's avatar dmnaufal6yrs agoLaravel
7
9
Last reply by dmnaufal 6yrs ago
X-Mac's avatar

cookie management

Hi there, I'm trying to create from 0 a e-commerce based on Laravel. Actually my problem is how manage the cart. If a user add an article to cart, I need to "register" this action. I would use cookie for store this data. the question is: how can I create a cookie that store an array, that first time when I create the value is like product_id => 123 quantity =>1

X-Mac's avatar
X-Mac's avatar MichalOrav...6yrs agoLaravel
1
1
Last reply by MichalOravec 6yrs ago
shami003's avatar

What strategy should I follow for role assigning for user in my app?

Hello, I am creating an e-commerce website. The website will have three roles for user (admin, seller, buyer). I want suggestion from you people how I should assign the roles for them? I have a users table and roles table. I created a registration form. Is it will be a good option to put a radion button in registration form so user can select their role at the time of sign up?

shami003's avatar
shami003's avatar shami0036yrs agoLaravel
9
1
Last reply by shami003 6yrs ago
AwadGorg's avatar

How to make a bank transfer system in laravel

Hello, I want to ask if there any laravel library or extension that's all making banking transfer cuz am working on eCommerce website and i want to make bank transfer as a way of paying. and thanks

AwadGorg's avatar
AwadGorg's avatar AwadGorg6yrs agoLaravel
2
1
Last reply by AwadGorg 6yrs ago
Ranx99's avatar

Which money datatype to use ?

If I am building an e-commerce application, which datatype is best to for price field? should I use integer and store everything as cents? or use decimal? is there any disadvantage of using decimal?

Ranx99's avatar
Ranx99's avatar Cookie6yrs agoTips
4
1
Last reply by Cookie 6yrs ago
rubenochoa's avatar

Shopping-cart info

Working an ecommerce site based on a project. At shopping-cart as you can see at the code bellow. It uses only item, title and price showing when someone buy something. Cart.php: <?php namespace App; class Cart { public $items = null; public $totalQty=0; public $totalPrice=0; public function __construct($oldCart){ if ($oldCart){ $thi

rubenochoa's avatar
rubenochoa's avatar rubenochoa6yrs agoLaravel
12
1
Last reply by rubenochoa 6yrs ago
LaraBABA's avatar

Anyone with experience with Laravel Cashier?

Hi, I have created a simple eCommerce with Vue.js and Laravel but today noticed Laravel Cashier. I am not sure I understand exactly everything it does but I would like to know if you could tell if: -Laravel cashier handles taxes(V.A.T) and shipping -Can we sell product as a one-off rather than subscriptions My biggest product at the moment is finding a framework that allows me

LaraBABA's avatar
LaraBABA's avatar Boubou6yrs agoLaravel
2
1
Last reply by Boubou 6yrs ago
hjortur17's avatar

Need help choosing between Shopify or Woocommerce

Hi, I'm building an e-commerce website for a client and I would like to get your opinion on what to use. What I'm mainly focusing on by using Shopify/WooCommerce is the inventory, I want to use them to add products, change prices and so on. But use Laravel/Vue JS to create the Front-End. I saw that Shopify has some payment feature, so I was wondering if we choose to use Shopify

hjortur17's avatar
hjortur17's avatar migratione...2yrs agoCode Review
3
1
Last reply by migrationexperts 2yrs ago
azeem202's avatar

How to handle API response in controller

Hello, i'm working on eCommerce website 1- project backend and APIs 2- Client side [Frontend] project 1-this is the function in backend project .. public function register(Request $request) { $validator = Validator::make($request->all(), [ 'name' => 'required', 'email' => 'required|email|unique:users', 'password' => 'required', 'm

azeem202's avatar
azeem202's avatar Punksolid6yrs agoLaravel
6
1
Last reply by Punksolid 6yrs ago
somenet77's avatar

Api route not working with multiple guard session login.

I am developing an eCommerce system with multiple authentication frontend and admin, for frontend I used the default web guard and for admin I used the admin guard. And also developing an API for the frontend. My problem is for frontend the default API routes are worked but for admin guard, its doesn't work I used different table for each guard users(web) and admin(admins). Whe

somenet77's avatar
somenet77's avatar somenet776yrs agoLaravel
2
1
Last reply by somenet77 6yrs ago
JBF's avatar

Are long sessions bad?

Ok, I know that's too general a question. So to expand... For an e-commerce platform, would it be considered bad practice to have a long session length so that items in the basket or view settings (list or grid, order by, etc) are stored in between visits? Obviously, the authentication would be kept to a secure, short time. The default in the Laravel auth config is 3 hours and

JBF's avatar
JBF's avatar Snapey6yrs agoCode Review
19
1
Last reply by Snapey 6yrs ago
dan3460's avatar

Github synchronizing between local and production sites

I posted this on the github forum but i have not gotten any answers, maybe one of you know the answer. With all the caos going around our company quickly had to branch out to access other markets and to be able to serve the people in our community. In just a few days i created an ecommerce site where we sell produce and groceries directly to the public. Trying to get the site u

dan3460's avatar
dan3460's avatar dan34606yrs agoCode Review
0
1
umefarooq's avatar

Need suggestion on checkout page name fileds

Hi i am working on eCommerce / shopping cart site my question is for register users on checkout shall i ask them to add first name and last name every time for shipping and billing addresses or use their already saved names in user table? Guest users has to add their names on checkout.

umefarooq's avatar
umefarooq's avatar bobbybouwm...6yrs agoGeneral
1
1
Last reply by bobbybouwmann 6yrs ago
CookieMonster's avatar

laravel- Scan QR code for customer to verify

I implement a QR (simple QR package from laravel) to my invoice for an e-commerce website. When the customer sees the invoice with the QR attached to it, he or she can scan it with the smartphone and it will bring them to a page that shows them the order details,etc and they can click ok to verify it. My QR on my invoice (dompdf) is as below: <img style="float:right; ma

CookieMonster's avatar
CookieMonster's avatar Snapey6yrs agoLaravel
10
1
Last reply by Snapey 6yrs ago
CookieMonster's avatar

Can I use QR Code to scan and update the order status?

I am new to laravel and currently using a simple qr code package that I want to add to my e-commerce website. The idea is when a customer placed an order, the merchant will deliver the item via courier. The order status in the merchant dashboard is in progress when an item is placed. When the item arrives, the merchant view the purchase order where the QR code is there and scan

CookieMonster's avatar
CookieMonster's avatar nickywan12...6yrs agoLaravel
5
1
Last reply by nickywan123 6yrs ago
javediq_143's avatar

Multiple Polymorphic Relations in same Model

Hello All, Continuing with my Ecommerce site where users can order food online, I'm stuck at another stage. Below are the tables in my app: // users TABLE [Registered user of my site] id, name and other fields // guests TABLE [Guest user of my site] id, name and other fields Here, I have a Polymorphic Many to Many Relation between User <=> Order <=> Guest set in

javediq_143's avatar
javediq_143's avatar javediq_14...6yrs agoEloquent
4
1
Last reply by javediq_143 6yrs ago
kaya28's avatar

Laravel 5.8 Session (Redis Driver) Reset On Refresh

We are using Laravel 5.8 on an e-commerce website. Some of our customers inform us that they can add any item to their basket. When we look at the log files, we see that those customers' basket is duplicated every time. We release that session is destroyed when page is refreshed. Interestingly, we do not get this error on the local environment. Also, this issue does not happen

kaya28's avatar
kaya28's avatar kaya286yrs agoLaravel
4
1
Last reply by kaya28 6yrs ago
Ajvanho's avatar

Laravel Booking, Appointment Course?

Does anyone know, is there any Laravel Booking, Appointment Course? I searched the whole web. There's a lot of e-commerce, , but none, on the topic of reservations.

Ajvanho's avatar
Ajvanho's avatar jlrdw6yrs agoLaravel
4
1
Last reply by jlrdw 6yrs ago
packy's avatar

Checkout/Cart in modals or pages

I am building an ordering system for a client and have been reviewing checkout flows. While I like the look of slide out cart modals and a checkout modal (similar to Bolt and ones you see on Shopify) I cant help but think that if I should follow anyone's example, it should be Amazon. Since they are the biggest e-commerce store I would assume they invested a lot of money into th

packy's avatar
packy's avatar jlrdw6yrs agoFeedback
1
1
Last reply by jlrdw 6yrs ago
david001's avatar

How to unserialize data

I am developing an eCommerce application. I have store user order in Orders table where I have id/user_id/cart/create_at/updated_at field The data in the cart is serialized and as an admin I want to see which user_id or user has purchased what products. I want to show this on the view page. My method public function userOrder(){ $orders = Order::get(); retur

david001's avatar
david001's avatar Sinnbeck6yrs agoLaravel
8
1
Last reply by Sinnbeck 6yrs ago
somenet77's avatar

What is the best solution for multiple authentication ?

I am building an eCommerce system with API for my business but I have a little bit confused for multiple authentication whether I use the same users model for both admin and front login or make admins table with the new authentication system. I have a role-based user system for admin panel and simple user for the frontend (without role). Which is the best solution for this sys

somenet77's avatar
somenet77's avatar somenet776yrs agoLaravel
4
1
Last reply by somenet77 6yrs ago
kolaravel's avatar

Is compressing and then encrypting data a good & stable solution for reducing the size of data in laravel?

Hi there I'm developing a e-commerce website and want to store the payment data of my customers securely. But after using encrypt(), the size of data become very large. Then I came up with an idea that gzcompress data first then encrypt. After testing, the size of encrypted data is reduced significantly. But as far as I know, compressing data may cause some unexpected output in

kolaravel's avatar
kolaravel's avatar Snapey6yrs agoLaravel
2
1
Last reply by Snapey 6yrs ago
shoaibayaz's avatar

Laravel Eloquent and MySQL Stored Processors advice

Hi guys, i am build an E-Commerce website from scratch on laravel and i want your advice that which one is best that platform has almost 122k products with there categories and brands and this web site has alot of traffic which one should i use to make work easier and make website as fast as possible and by the way that i am using laravel lumen to expose rest api and using on v

shoaibayaz's avatar
shoaibayaz's avatar shoaibayaz6yrs agoFeedback
4
1
Last reply by shoaibayaz 6yrs ago
alauddinjahin's avatar

Need Help for Ajax pagination with Laravel 6

Dear friends, I have got a problem for making pagination in laravel 6 .My problem is that when I am trying to make pagination for my e-commerce project on shop page . I can't fetch my category and sub category id on url for making query as well what I need.Tell me how can I fetch my category and sub category id on url with ajax. Thanks ...............

alauddinjahin's avatar
alauddinjahin's avatar jlrdw6yrs agoLaravel
3
1
Last reply by jlrdw 6yrs ago
nacha's avatar

how to update order status in admin section?

I'm a beginner in laravel and I'm weak in programming but I'm trying to improve in learning programming and I'm trying to make an Ecommerce site so my problem is about order status in admin section (admin can update order status) I can't found a solution for this so I need help please When I click update I have this error: ErrorException (E_NOTICE) Undefined index: id public

nacha's avatar
nacha's avatar Sinnbeck6yrs agoLaravel
14
1
Last reply by Sinnbeck 6yrs ago
Gabotronix's avatar

Unknown column 'ìtem_size_id' in hasManyThrough relationship

Hi everybody, I'm trying to build my own e-commerce shop as training with laravel, I set up a hasManyThrough relationship with models Item, ItemOption,ItemSize and ItemColor. Isssue arises when I seed my database with dummy data, I get the following error: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ìtem_size_id' in 'field list' (SQL: insert into `item_options` (`it

Gabotronix's avatar
Gabotronix's avatar Gabotronix6yrs agoGeneral
2
2
Last reply by Gabotronix 6yrs ago
pathsush's avatar

Image not displaying while hosting in inmotion

I am a newbie to a laravel. I am building an e-commerce website by learning from the internet fro my personal use. I am running an issue when I am hosting the site. II can store the image while creating a product but the i am not being able to display the image. Can someone please help me out

pathsush's avatar
pathsush's avatar Sinnbeck6yrs agoLaravel
1
1
Last reply by Sinnbeck 6yrs ago
rbur0425's avatar

Laravel Cashier - Amazon like 1 Click Upsell

I have a client who is looking for 1 click upsell capability like Amazon has 1 click Buy Now. This is for an ecommerce store not like Cashier is used for user model. The flow the client wants is as follows - Order page with address and credit card details Upsell Page with additional product offer Thank You/Receipt Page How would you approach this? Ideally, the client would li

rbur0425's avatar
rbur0425's avatar rbur04256yrs agoCode Review
0
1
ntn0de's avatar

Need idea.

Hey Guys I have recently built an an web api. which will be used to fetch data to mobile. Its an ecommerce application. Is it good to use caching ? If yes, how would it affect the change in quantity of a "product" in products table if ordered. Help needed

ntn0de's avatar
ntn0de's avatar ntn0de6yrs agoLaravel
2
1
Last reply by ntn0de 6yrs ago
javediq_143's avatar

Finding a Value in Pivot Relation Not Working

Hello All, For practising Laravel, I'm developing an Ecommerce site where in user's can order foods online. I'm stuck at updating the cart items in database. Below are the tables involved: Users, Items and a Pivot Table Cart with (user_id, item_id, quantity) with Many to Many Relation, ofcourse: Below is the relation and update method defined in user model: public function

javediq_143's avatar
javediq_143's avatar javediq_14...6yrs agoEloquent
0
1
morganchorlton3's avatar

Model Relationships

Hi all I'm trying to set up multiple relationships on my models, Im trying to display my orders in a table along with a users address. ( i have it working for the users model). (background) I'm creating an e-commerce platform in short Users model <?php namespace App; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Foundation\Auth\User as Authenticatable; use

morganchorlton3's avatar
morganchorlton3's avatar morganchor...6yrs agoLaravel
8
1
Last reply by morganchorlton3 6yrs 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.