<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Raghav Bansal</title>
    <description>The latest articles on DEV Community by Raghav Bansal (@raghav_bansal_1f1448488ae).</description>
    <link>https://dev.to/raghav_bansal_1f1448488ae</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3833694%2Fe62b97db-bb9d-4bf3-b36d-1e77f199a1c4.jpg</url>
      <title>DEV Community: Raghav Bansal</title>
      <link>https://dev.to/raghav_bansal_1f1448488ae</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/raghav_bansal_1f1448488ae"/>
    <language>en</language>
    <item>
      <title>💡 Built from real project experience — not AI-generated junk.

💡 Save 50+ hours of development time.

🔥 Launch Offer: ₹699 (Limited Time)

👉 Instant download after purchase.</title>
      <dc:creator>Raghav Bansal</dc:creator>
      <pubDate>Thu, 19 Mar 2026 12:45:27 +0000</pubDate>
      <link>https://dev.to/raghav_bansal_1f1448488ae/built-from-real-project-experience-not-ai-generated-junk-save-50-hours-of-development-58am</link>
      <guid>https://dev.to/raghav_bansal_1f1448488ae/built-from-real-project-experience-not-ai-generated-junk-save-50-hours-of-development-58am</guid>
      <description>&lt;div class="ltag__link"&gt;
  &lt;a href="/raghav_bansal_1f1448488ae" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__pic"&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3833694%2Fe62b97db-bb9d-4bf3-b36d-1e77f199a1c4.jpg" alt="raghav_bansal_1f1448488ae"&gt;
    &lt;/div&gt;
  &lt;/a&gt;
  &lt;a href="https://dev.to/raghav_bansal_1f1448488ae/how-i-built-a-complete-laravel-ecommerce-with-stripe-admin-panel-and-how-you-can-too-4lpd" class="ltag__link__link"&gt;
    &lt;div class="ltag__link__content"&gt;
      &lt;h2&gt;How I Built a Complete Laravel eCommerce with Stripe &amp;amp; Admin Panel (And How You Can Too)&lt;/h2&gt;
      &lt;h3&gt;Raghav Bansal ・ Mar 19&lt;/h3&gt;
      &lt;div class="ltag__link__taglist"&gt;
        &lt;span class="ltag__link__tag"&gt;#webdev&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#php&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#opensource&lt;/span&gt;
        &lt;span class="ltag__link__tag"&gt;#laravel&lt;/span&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;


</description>
      <category>webdev</category>
      <category>php</category>
      <category>opensource</category>
      <category>laravel</category>
    </item>
    <item>
      <title>How I Built a Complete Laravel eCommerce with Stripe &amp; Admin Panel (And How You Can Too)</title>
      <dc:creator>Raghav Bansal</dc:creator>
      <pubDate>Thu, 19 Mar 2026 12:42:36 +0000</pubDate>
      <link>https://dev.to/raghav_bansal_1f1448488ae/how-i-built-a-complete-laravel-ecommerce-with-stripe-admin-panel-and-how-you-can-too-4lpd</link>
      <guid>https://dev.to/raghav_bansal_1f1448488ae/how-i-built-a-complete-laravel-ecommerce-with-stripe-admin-panel-and-how-you-can-too-4lpd</guid>
      <description>&lt;h2&gt;
  
  
  After weeks of building, I finally shipped a complete Laravel eCommerce project — and I'm sharing everything I learned.
&lt;/h2&gt;

&lt;p&gt;What I Built&lt;/p&gt;

&lt;p&gt;A fully functional eCommerce system in Laravel with three core modules:&lt;/p&gt;

&lt;p&gt;🛒 Cart System — add, update, remove items with session-based persistence&lt;br&gt;
💳 Stripe Integration — secure checkout with payment intent API&lt;br&gt;
🔧 Admin Panel — manage products, orders, and customers&lt;/p&gt;

&lt;p&gt;Tech Stack&lt;/p&gt;

&lt;p&gt;Laravel 11 — backend framework&lt;br&gt;
Stripe PHP SDK — payment processing&lt;br&gt;
MySQL — database&lt;br&gt;
Blade + TailwindCSS — frontend&lt;/p&gt;

&lt;p&gt;The Cart System&lt;br&gt;
The trickiest part was keeping the cart synced between guest users and logged-in users. I used Laravel sessions for guests and migrated to DB on login.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="n"&gt;php&lt;/span&gt; &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;addToCart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;Request&lt;/span&gt; &lt;span class="nv"&gt;$request&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;Product&lt;/span&gt; &lt;span class="nv"&gt;$product&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$cart&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;session&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'cart'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[]);&lt;/span&gt;
    &lt;span class="nv"&gt;$cart&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;$product&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'name'&lt;/span&gt;     &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$product&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'price'&lt;/span&gt;    &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$product&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'quantity'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$cart&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;$product&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="n"&gt;id&lt;/span&gt;&lt;span class="p"&gt;][&lt;/span&gt;&lt;span class="s1"&gt;'quantity'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;];&lt;/span&gt;
    &lt;span class="nf"&gt;session&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;put&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'cart'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$cart&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;back&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;with&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'success'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'Added to cart!'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Stripe Integration&lt;br&gt;
I used Stripe Payment Intents for strong authentication support (SCA-compliant).&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="n"&gt;php&lt;/span&gt; &lt;span class="nv"&gt;$intent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;\Stripe\PaymentIntent&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
    &lt;span class="s1"&gt;'amount'&lt;/span&gt;   &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$total&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'currency'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'usd'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Handle the webhook to confirm orders only after payment is confirmed — never trust the frontend redirect alone.&lt;/p&gt;

&lt;p&gt;Admin Panel&lt;br&gt;
Built a simple but functional admin panel with:&lt;/p&gt;

&lt;p&gt;Product CRUD with image upload&lt;br&gt;
Order management with status updates&lt;br&gt;
Customer list with order history&lt;br&gt;
Revenue dashboard with basic charts&lt;/p&gt;

&lt;p&gt;What I Learned&lt;/p&gt;

&lt;p&gt;Always verify payments via Stripe webhooks, not redirects&lt;br&gt;
Session-to-DB cart migration needs careful handling at login&lt;br&gt;
Admin panels benefit from role middleware early on — adding it later is painful&lt;/p&gt;

&lt;p&gt;Get the Source Code&lt;br&gt;
If you want to skip the setup and use this as a base for your next client project or SaaS:&lt;br&gt;
👉 Download on Gumroad:&lt;br&gt;
&lt;a href="https://raghavbansal.gumroad.com/l/ecommerce-laravel-pro" rel="noopener noreferrer"&gt;https://raghavbansal.gumroad.com/l/ecommerce-laravel-pro&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Includes full source, setup guide, and .env example.&lt;/p&gt;

&lt;p&gt;Built something similar? Drop it in the comments — always curious what stack others are using.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>php</category>
      <category>opensource</category>
      <category>laravel</category>
    </item>
  </channel>
</rss>
