[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"site-settings":3,"blog-post:laravel-sanctum-vs-passport":8,"blog-posts-latest:24":32,"site-content":323,"blog-comments:f50b774a-c745-41aa-a3b0-72ac1f5b7117":540},{"id":4,"accent_theme":5,"font_theme":6,"updated_at":7},1,"midnight","saas","2026-10-28T07:05:59.308034+00:00",{"id":9,"title":10,"slug":11,"excerpt":12,"content":13,"cover_image":14,"meta_title":15,"meta_description":16,"og_image":17,"tags":18,"status":26,"published_at":27,"view_count":28,"deleted_at":29,"deleted_reason":17,"created_at":30,"updated_at":31},"f50b774a-c745-41aa-a3b0-72ac1f5b7117","Laravel Sanctum vs Passport — Which API Auth Should You Use?","laravel-sanctum-vs-passport","Laravel Sanctum is the lighter choice for SPAs and simple API tokens; Passport is full OAuth2 for third-party apps. Pick Sanctum for most apps, Passport when you need real OAuth2.","\u003Ch2>Quick Answer\u003C\u002Fh2>\n\u003Cp>Laravel Sanctum is a lightweight auth package for SPAs, mobile apps, and simple API tokens. Laravel Passport is a full OAuth2 server for third-party client authorization. Use Sanctum for most first-party apps; use Passport when you need real OAuth2 scopes, clients, and third-party access.\u003C\u002Fp>\n\n\u003Ch2>Quick Facts\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Topic:\u003C\u002Fstrong> Laravel Sanctum vs Passport\u003Cbr>\n\u003Cstrong>Category:\u003C\u002Fstrong> Laravel \u002F API Authentication\u003Cfont color=\"#231e1a\">\u003Cbr>\u003C\u002Ffont>\u003Cspan style=\"font-size: 1.125rem; font-weight: 600;\">\u003Cfont color=\"#231e1a\">\u003Cbr>\u003C\u002Ffont>\u003Cfont color=\"#231e1a\" face=\"Playfair Display, Georgia, serif\">Table of Contents\u003C\u002Ffont>\u003C\u002Fspan>\u003Cbr>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>What Is Laravel Sanctum vs Passport?\u003C\u002Fli>\n\u003Cli>Why It Matters\u003C\u002Fli>\n\u003Cli>How It Works\u003C\u002Fli>\n\u003Cli>Step-by-Step Guide\u003C\u002Fli>\n\u003Cli>Real Example\u003C\u002Fli>\n\u003Cli>Pros &amp; Cons\u003C\u002Fli>\n\u003Cli>Best Practices\u003C\u002Fli>\n\u003Cli>Common Mistakes\u003C\u002Fli>\n\u003Cli>FAQs\u003C\u002Fli>\n\u003Cli>Key Takeaways\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>What Is Laravel Sanctum vs Passport?\u003C\u002Fh2>\n\u003Cp>Laravel Sanctum and Laravel Passport are official packages for API authentication, but they solve different problems.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Sanctum\u003C\u002Fstrong> issues personal access tokens and supports cookie-based SPA authentication for same-domain (or configured) frontends. It is simple, token-based, and first-party focused.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Passport\u003C\u002Fstrong> implements the full OAuth2 authorization server. It manages clients, authorization codes, refresh tokens, and scopes — the pattern apps like Google or GitHub use when other apps request access on a user’s behalf.\u003C\u002Fp>\n\n\u003Ch2>Why It Matters\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Right tool, less complexity\u003C\u002Fstrong> — Passport adds OAuth2 machinery you may never need.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Security posture\u003C\u002Fstrong> — SPA cookie auth, mobile tokens, and third-party clients each need a different model.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Maintenance cost\u003C\u002Fstrong> — Sanctum is easier to reason about; Passport needs client management and stricter scope design.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Product direction\u003C\u002Fstrong> — Internal SPA vs public API platform changes the correct choice immediately.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>How It Works\u003C\u002Fh2>\n\u003Col>\n\u003Cli>\u003Cstrong>Sanctum (SPA)\u003C\u002Fstrong> — The frontend logs in via session\u002Fcookie. CSRF protection + authenticated requests use the same domain cookies.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Sanctum (token)\u003C\u002Fstrong> — The API creates a personal access token; the client sends \u003Ccode>Authorization: Bearer &lt;token&gt;\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Passport (OAuth2)\u003C\u002Fstrong> — A client app requests authorization. Passport issues access (and often refresh) tokens with scopes after the user consents.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Authorization checks\u003C\u002Fstrong> — Both protect routes with Laravel’s auth middleware; Passport adds OAuth scopes and client trust boundaries.\u003C\u002Fli>\n\u003C\u002Fol>\n\n\u003Ch2>Step-by-Step Guide\u003C\u002Fh2>\n\n\u003Ch3>Step 1: Choose based on product needs\u003C\u002Fh3>\n\u003Cp>Ask three questions: Is the client first-party only? Do you need third-party apps to act for users? Do you need OAuth2 grant types and scopes?\u003C\u002Fp>\n\u003Cul>\n\u003Cli>First-party SPA \u002F mobile \u002F simple tokens → \u003Cstrong>Sanctum\u003C\u002Fstrong>\u003C\u002Fli>\n\u003Cli>Third-party developers, OAuth clients, authorization code flow → \u003Cstrong>Passport\u003C\u002Fstrong>\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch3>Step 2: Install and configure the package\u003C\u002Fh3>\n\u003Cp>For Sanctum:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>composer require laravel\u002Fsanctum\nphp artisan vendor:publish --provider=\"Laravel\\Sanctum\\SanctumServiceProvider\"\nphp artisan migrate\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>For Passport:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>composer require laravel\u002Fpassport\nphp artisan migrate\nphp artisan passport:install\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Then wire the User model traits (\u003Ccode>HasApiTokens\u003C\u002Fcode>), auth guards, and CORS\u002FSPA cookie settings as needed.\u003C\u002Fp>\n\n\u003Ch3>Step 3: Protect routes and test auth flows\u003C\u002Fh3>\n\u003Cp>Use \u003Ccode>auth:sanctum\u003C\u002Fcode> or Passport’s API guard on protected routes. Test login, token issue\u002Frevoke, expired tokens, and (for Passport) client creation + scope-limited requests before shipping.\u003C\u002Fp>\n\n\u003Ch2>Real-World Example\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Scenario A — SaaS dashboard + mobile app (first-party):\u003C\u002Fstrong> Your Vue\u002FNuxt admin and mobile app talk only to your Laravel API. Users authenticate with you, not via other apps. Sanctum SPA cookies for the web app and personal access tokens for mobile is enough — no OAuth2 server overhead.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Scenario B — Public developer platform:\u003C\u002Fstrong> Other companies’ apps need “Login with YourApp” and limited access to user data. That is Passport territory: OAuth clients, consent screens, scopes like \u003Ccode>read:profile\u003C\u002Fcode>, and refresh tokens.\u003C\u002Fp>\n\n\u003Ch2>Pros &amp; Cons\u003C\u002Fh2>\n\n\u003Ch3>Advantages\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>\u003Cstrong>Sanctum:\u003C\u002Fstrong> Lightweight setup, great for SPAs and simple tokens, less conceptual overhead.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Sanctum:\u003C\u002Fstrong> Fits first-party web + mobile patterns cleanly.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Passport:\u003C\u002Fstrong> Full OAuth2 compliance for third-party integrations.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Passport:\u003C\u002Fstrong> Built-in clients, scopes, and common OAuth grant flows.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch3>Disadvantages\u003C\u002Fh3>\n\u003Cul>\n\u003Cli>\u003Cstrong>Sanctum:\u003C\u002Fstrong> Not a full OAuth2 server — weak fit for public third-party API ecosystems.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Passport:\u003C\u002Fstrong> Heavier install, more moving parts (keys, clients, grants).\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Passport:\u003C\u002Fstrong> Overkill for single SPA or internal APIs — more to secure and maintain.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Best Practices\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Default to \u003Cstrong>Sanctum\u003C\u002Fstrong> unless you clearly need OAuth2.\u003C\u002Fli>\n\u003Cli>For Sanctum SPAs, configure stateful domains, CSRF, and CORS carefully — cookie auth fails silently when domains mismatch.\u003C\u002Fli>\n\u003Cli>Store API tokens securely (never in localStorage for high-risk apps if you can use httpOnly cookies for web).\u003C\u002Fli>\n\u003Cli>With Passport, design scopes narrowly — avoid a single “full access” scope for every client.\u003C\u002Fli>\n\u003Cli>Always support token revocation and rotate secrets after incidents.\u003C\u002Fli>\n\u003Cli>Document which guard protects which route group so frontend and mobile teams don’t mix flows.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Common Mistakes\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Choosing Passport by default\u003C\u002Fstrong> → Fix: start with Sanctum for first-party apps; upgrade only if OAuth2 is required.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Using Sanctum like OAuth for third parties\u003C\u002Fstrong> → Fix: personal access tokens are not a substitute for consent + client isolation; use Passport.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Broken SPA cookies due to CORS\u002Fdomain misconfig\u003C\u002Fstrong> → Fix: align \u003Ccode>SANCTUM_STATEFUL_DOMAINS\u003C\u002Fcode>, \u003Ccode>SESSION_DOMAIN\u003C\u002Fcode>, and frontend origin.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Never expiring or revoking tokens\u003C\u002Fstrong> → Fix: set TTLs, revoke on logout\u002Fpassword change, audit long-lived tokens.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Mixing guards without clear route groups\u003C\u002Fstrong> → Fix: separate web\u002FSPA and API token routes with explicit middleware.\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003Ch2>Frequently Asked Questions\u003C\u002Fh2>\n\n\u003Ch3>What is Laravel Sanctum vs Passport?\u003C\u002Fh3>\n\u003Cp>Sanctum is lightweight API\u002FSPA authentication for first-party apps. Passport is Laravel’s full OAuth2 server for authorizing third-party clients with scopes and grant types.\u003C\u002Fp>\n\n\u003Ch3>How do I choose between Sanctum and Passport?\u003C\u002Fh3>\n\u003Cp>If only your own frontend or mobile app authenticates users, choose Sanctum. If external apps need user-authorized access to your API, choose Passport.\u003C\u002Fp>\n\n\u003Ch3>Sanctum vs Passport for a Vue or Nuxt SPA?\u003C\u002Fh3>\n\u003Cp>Use Sanctum. Cookie-based SPA auth (or token auth if preferred) is the documented first-party pattern. Passport adds unnecessary OAuth complexity for same-product SPAs.\u003C\u002Fp>\n\n\u003Ch3>Is Laravel Passport still worth it in 2026?\u003C\u002Fh3>\n\u003Cp>Yes — when you need OAuth2. For most CRUD APIs and first-party SPAs, Sanctum is still the better default. Passport remains the right pick for public API platforms and “Login with …” style products.\u003C\u002Fp>\n\n\u003Ch3>Can I use Sanctum and Passport together?\u003C\u002Fh3>\n\u003Cp>Possible but rarely worth it. Pick one primary model for clarity. Running both increases guard\u002Fconfig confusion unless you have a clear split (e.g., first-party vs third-party route groups).\u003C\u002Fp>\n\n\u003Ch2>Summary\u003C\u002Fh2>\n\u003Cp>Laravel Sanctum vs Passport is mainly a product decision, not a popularity contest. Sanctum wins for first-party SPAs, mobile apps, and simple personal access tokens. Passport wins when you must be an OAuth2 provider.\u003C\u002Fp>\n\u003Cp>If you are building a normal Laravel API with your own frontend, start with Sanctum. Move to Passport only when third-party clients, consent, and scopes become real product requirements.\u003C\u002Fp>\n\u003Cp>Next step: map your clients (SPA, mobile, external apps). If every client is yours, install Sanctum and ship. If others must authorize against you, plan Passport clients and scopes first.\u003C\u002Fp>\n\n\u003Ch2>Key Takeaways\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>Sanctum = lightweight first-party API\u002FSPA auth; Passport = full OAuth2 server.\u003C\u002Fli>\n\u003Cli>Most Laravel apps should start with Sanctum.\u003C\u002Fli>\n\u003Cli>Choose Passport for third-party apps, scopes, and OAuth grant flows.\u003C\u002Fli>\n\u003Cli>Cookie domain\u002FCORS mistakes cause most Sanctum SPA auth failures.\u003C\u002Fli>\n\u003Cli>Decision rule: first-party only → Sanctum; public OAuth platform → Passport.\u003C\u002Fli>\n\u003C\u002Ful>","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1785817155174-054d6s.webp","Laravel Sanctum vs Passport: Which Auth to Use","Compare Laravel Sanctum vs Passport for API auth. Learn setup, use cases, pros & cons, and when to choose each — with a clear decision guide.","",[19,20,21,22,23,24,25],"Laravel","Sanctum","Passport","API Authentication","PHP","OAuth2","SPA","published","2026-08-04T04:19:37.286+00:00",18,null,"2026-08-04T04:14:54.961354+00:00","2026-08-04T04:49:08.25034+00:00",[33,48,65,78,92,106,118,130,143,156,166,177,189,202,216,227,238,247,249,263,275,284,295,308],{"id":34,"title":35,"slug":36,"excerpt":37,"cover_image":38,"tags":39,"published_at":45,"updated_at":46,"view_count":47},"1fac09f2-990e-4ebf-99b1-0cc532e7cb08","Soft Delete Inventory Bug — Phantom Serial Stock After Purchase Delete","soft-delete-inventory-bug-phantom-serial-stock-after-purchase-delete","Soft-deleting a purchase looked fine until serial-tracked products stayed sellable. The movement ran, quantity didn’t move, and serials were never detached.","https:\u002F\u002Fik.imagekit.io\u002F93se7t7h4e\u002Fportfolio\u002Fposts\u002Fblog\u002Fcovers\u002F1793165769172-Phantom-Inventory_-Deleted-Warehouse-Order_Z0BIZdhyJ.webp",[40,41,42,43,44,6],"laravel","inventory","soft-delete","serial-numbers","stock-movements","2026-10-28T05:36:31.148+00:00","2026-10-28T05:36:32.188948+00:00",21,{"id":49,"title":50,"slug":51,"excerpt":52,"cover_image":53,"tags":54,"published_at":62,"updated_at":63,"view_count":64},"b2a6b718-c6e5-42fa-9358-22e84035aaf2","Multi-Tenant Inventory Manager with Nuxt 3 and Supabase","multi-tenant-inventory-manager-nuxt-supabase","A shop-billing SaaS on Nuxt 3 and Supabase: stock, invoices, UPI links, AI bill scan, and per-shop storefronts — with RLS so shop_id is never trusted from the client.","https:\u002F\u002Fik.imagekit.io\u002F93se7t7h4e\u002Fportfolio\u002Fposts\u002Flibrary\u002F1792583563566-Modern-Retail-POS-Dashboard-Network_-BFGj_TT0.webp?updatedAt=1792583565092",[55,56,57,41,6,58,59,60,61],"nuxt","supabase","multi-tenancy","vue","pinia","vuetify","ai","2026-10-21T12:07:58.857+00:00","2026-10-21T12:07:59.070373+00:00",16,{"id":66,"title":67,"slug":68,"excerpt":69,"cover_image":70,"tags":71,"published_at":75,"updated_at":76,"view_count":77},"58f0adc6-f4e9-4501-bc0e-ab83cc2cc073","Laravel Sanctum 419 Fix — Why XSRF-TOKEN Must Stay Encrypted","laravel-sanctum-419-xsrf-token-encryption","Sanctum SPA login kept returning 419 CSRF token mismatch. The bug wasn’t domains or cookies “not sticking” — it was excluding XSRF-TOKEN from EncryptCookies while Laravel decrypts the X-XSRF-TOKEN header.","https:\u002F\u002Fik.imagekit.io\u002F93se7t7h4e\u002Fportfolio\u002Fposts\u002Fblog\u002Fcovers\u002F1792229994752-From-CSRF-Error-to-Secure-Fix_FIVIW5po2.webp",[19,20,72,73,25,74,22],"CSRF","419","Nuxt","2026-10-17T09:40:04.212+00:00","2026-10-17T09:40:06.051151+00:00",17,{"id":79,"title":80,"slug":81,"excerpt":82,"cover_image":83,"tags":84,"published_at":89,"updated_at":90,"view_count":91},"7b4bee90-b35b-4ced-ae8c-0a71e7d968fb","ImageKit Nuxt Upload — Keep Private Keys Off the Client","imagekit-nuxt-upload-secure","ImageKit Nuxt upload means the browser never sees your private key. Sign or upload on the server, return a CDN URL, and store that URL in your CMS or database.","https:\u002F\u002Fik.imagekit.io\u002F93se7t7h4e\u002Fportfolio\u002Fposts\u002Fblog\u002Fcovers\u002F1792216420019-Secure-Upload-Architecture-Flow_MGyvtL5tR.webp",[74,85,86,87,88],"ImageKit","Vue","TypeScript","SEO","2026-10-17T05:55:24.556+00:00","2026-10-17T05:55:24.735773+00:00",23,{"id":93,"title":94,"slug":95,"excerpt":96,"cover_image":97,"tags":98,"published_at":104,"updated_at":105,"view_count":64},"bd55b3c6-8bd3-447d-99ad-d46a97490d7b","Apache 2 Installation on Ubuntu: Step-by-Step","apache-2-installation-ubuntu","Install Apache 2 on Ubuntu with apt, start the service, open the firewall, and verify the default page. Part 2 of the Apache 2 series — clean setup before virtual hosts.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1788925690969-7zm2c2.webp",[99,100,101,102,103],"Apache","Ubuntu","Installation","Linux","Web Server","2026-09-09T03:49:25.809+00:00","2026-09-09T03:49:26.679843+00:00",{"id":107,"title":108,"slug":109,"excerpt":110,"cover_image":111,"tags":112,"published_at":115,"updated_at":116,"view_count":117},"8c75a723-b1a7-4fab-9bb9-71a111c9d4f8","Apache vs Nginx: What They Are and When to Use Each","apache-vs-nginx","Apache and Nginx are web servers. They take HTTP requests and return files or pass work to PHP, Node, or another app. Apache fits shared hosting and .htaccess; Nginx is the usual reverse proxy on an Ubuntu VPS.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1788524039845-wrez6s.webp",[99,113,100,103,102,114],"Nginx","DevOps","2026-09-04T12:14:08.218+00:00","2026-09-04T12:14:08.430018+00:00",9,{"id":119,"title":120,"slug":121,"excerpt":122,"cover_image":123,"tags":124,"published_at":127,"updated_at":128,"view_count":129},"40dd3304-99d2-4948-b8c1-44625f1f4306","What Is a Virtual Host? Host Multiple Sites on One Ubuntu VPS","virtual-host-linux-multiple-websites","A virtual host maps each domain to its own folder on one server. Developers use this on Ubuntu VPSes so portfolio, API, and staging share one bill. Same idea on any Linux — Ubuntu is just what most tutorials and clouds default to.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1788523755345-javhet.webp",[125,100,113,102,126,114],"Virtual Host","VPS","2026-09-04T12:09:22.623+00:00","2026-09-04T12:09:22.931401+00:00",12,{"id":131,"title":132,"slug":133,"excerpt":134,"cover_image":135,"tags":136,"published_at":140,"updated_at":141,"view_count":142},"6e45f39b-1ade-47f0-a0b0-b4cd386a10dc","Laravel Queues & Jobs: How Background Processing Works","laravel-queues-and-jobs","Laravel queues move slow work off the HTTP request. You push a Job onto a queue, a worker runs it later, and the user gets a fast response. Use them for mail, webhooks, image work, and anything that can fail and retry.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1787286979145-0i7ewp.webp",[19,137,138,23,139],"Queues","Jobs","backend","2026-08-21T04:36:56.222+00:00","2026-08-21T04:36:56.606735+00:00",20,{"id":144,"title":145,"slug":146,"excerpt":147,"cover_image":148,"tags":149,"published_at":153,"updated_at":154,"view_count":155},"938c7bd9-2cf3-4a81-8dae-cf88c09e64ca","Laravel N+1 Query Problem: How to Detect and Fix It","laravel-n-plus-1-query-problem","The Laravel N+1 query problem is when one listing query is followed by one extra query per row. You spot it in Telescope or the query log, then fix it with with(), withCount(), and nested eager loads.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1787199419649-niq9k8.webp",[19,150,151,152,23],"Eloquent","N+1","performance","2026-08-20T04:17:43.609+00:00","2026-08-20T05:50:24.297698+00:00",14,{"id":157,"title":158,"slug":159,"excerpt":160,"cover_image":161,"tags":162,"published_at":164,"updated_at":165,"view_count":28},"76717847-4080-4ae6-a2d8-b35badc46be3","Laravel Eloquent Relationships","laravel-eloquent-relationships","Laravel Eloquent relationships map how models connect — hasMany, belongsTo, belongsToMany, and more. Define them once, then load related rows with with() instead of stuffing joins into every query.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1787122982331-16979e.webp",[19,150,23,163,139],"ORM","2026-08-19T07:03:17.721+00:00","2026-08-20T04:19:08.829027+00:00",{"id":167,"title":168,"slug":169,"excerpt":170,"cover_image":171,"tags":172,"published_at":175,"updated_at":176,"view_count":64},"6bbe0ad8-0c6d-4172-b279-ded8e2ca9416","Laravel Database Transactions: When and Why to Use DB::transaction()","laravel-database-transactions","DB::transaction() runs a closure inside a SQL transaction: Laravel commits if it finishes, and rolls back if it throws. Use it when one action writes more than one row and a half-finished write would leave bad data.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1787114417893-hp3hmc.webp",[19,173,150,23,174],"Database","Transactions","2026-08-19T04:44:00.327+00:00","2026-08-19T05:14:18.190197+00:00",{"id":178,"title":179,"slug":180,"excerpt":181,"cover_image":182,"tags":183,"published_at":187,"updated_at":188,"view_count":155},"d1020b7b-b410-414f-9ceb-eb0501bc905e","Laravel Auditing Package — Track Model Changes the Right Way","laravel-auditing-package","The Laravel auditing package records old and new model values, the user who changed them, and when it happened—without you inventing a second history table for every feature.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1786778101029-mwb9sf.webp",[19,184,23,185,186],"Auditing","Security","Activity Log","2026-08-15T21:24:32.135+00:00","2026-08-15T21:24:32.194447+00:00",{"id":190,"title":191,"slug":192,"excerpt":193,"cover_image":194,"tags":195,"published_at":199,"updated_at":200,"view_count":201},"3d5eb867-6288-48c4-af04-8b7ece8b874e","Laravel Lifecycle — How a Request Becomes a Response","laravel-lifecycle","The Laravel lifecycle is the path from HTTP request to response: bootstrap, service providers, middleware, routing, then the controller. Know that path and most “random” bugs stop being random.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1786777544862-khxf92.webp",[19,23,196,197,198],"Request Lifecycle","Middleware","Backend","2026-08-15T07:15:13.877+00:00","2026-08-15T07:15:13.978037+00:00",11,{"id":203,"title":204,"slug":205,"excerpt":206,"cover_image":207,"tags":208,"published_at":214,"updated_at":215,"view_count":155},"2ab5e08a-7117-43c5-87eb-0789a2fd3af4","Claude Code Best Practices for Large Codebases — Scope Before You Ship","claude-code-best-practices-large-codebases","On a big repo, Claude Code only helps if you lock rules in CLAUDE.md, scope every ticket, plan multi-file edits, and review the diff like a PR.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1786178453897-dulbmv.webp",[209,210,211,212,213],"claude-code","ai-coding","large-codebases","monorepo","developer-tools","2026-08-08T08:41:03.571+00:00","2026-08-08T08:41:03.839922+00:00",{"id":217,"title":218,"slug":219,"excerpt":220,"cover_image":221,"tags":222,"published_at":225,"updated_at":226,"view_count":28},"ddd55ce1-48fd-40b4-ae91-48a6bec20a2a","Nuxt Middleware Explained — Auth, Redirects & Route Guards Deep Dive","nuxt-middleware-explained","Nuxt middleware runs before a page loads so you can check auth, redirect users, or block a route — on the server for the first hit and in the browser on later navigations.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1785902953511-osy6pt.webp",[74,197,223,224,86],"SSR","Auth","2026-08-05T04:09:38.347+00:00","2026-08-05T04:09:38.496803+00:00",{"id":228,"title":229,"slug":230,"excerpt":231,"cover_image":232,"tags":233,"published_at":236,"updated_at":237,"view_count":129},"e0d9941b-467d-45cc-bf12-45390cf9aeaa","Nuxt Lifecycle Explained — Server, Client & Hooks Made Simple","nuxt-lifecycle-explained","Nuxt lifecycle is the order your app boots, fetches data, renders HTML on the server, hydrates in the browser, then runs page navigation — so you know where to put code safely.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1785901639981-9tgcl5.webp",[74,86,223,234,235],"Lifecycle","JavaScript","2026-08-05T03:54:08.301+00:00","2026-08-05T03:54:08.919676+00:00",{"id":239,"title":240,"slug":241,"excerpt":242,"cover_image":243,"tags":244,"published_at":245,"updated_at":246,"view_count":91},"23c9cf92-232b-460f-9825-a9c53e350600","How to Use Laravel Sanctum for API Authentication — SPA Cookies & Tokens","laravel-api-authentication","Laravel Sanctum authenticates first-party SPAs with secure cookies and issues API tokens for mobile or third-party clients—without the complexity of full OAuth.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1785833713437-wcqb6c.webp",[19,20,22,23,25,185],"2026-08-04T08:56:17.304+00:00","2026-08-06T04:07:09.059636+00:00",{"id":9,"title":10,"slug":11,"excerpt":12,"cover_image":14,"tags":248,"published_at":27,"updated_at":31,"view_count":28},[19,20,21,22,23,24,25],{"id":250,"title":251,"slug":252,"excerpt":253,"cover_image":254,"tags":255,"published_at":260,"updated_at":261,"view_count":262},"ef36ca16-73ab-4f9a-9584-ff70a60da5f5","Laravel vs NestJS in 2026: Which Backend Should US Startups Choose?","laravel-vs-nestjs-2026-us-startups","Laravel vs NestJS for US startups in 2026: compare speed, TypeScript, hiring, SaaS MVPs, and real-time apps — and pick the backend that matches your team.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1785609396341-ungcby.jpg",[19,256,198,257,258,23,87,259],"NestJS","SaaS","Startups","Web Development","2026-08-01T18:40:05.071+00:00","2026-08-01T18:40:05.261242+00:00",38,{"id":264,"title":265,"slug":266,"excerpt":267,"cover_image":268,"tags":269,"published_at":273,"updated_at":274,"view_count":129},"c4e41758-834c-476e-8830-f776c963a784","What Is TypeScript? A Beginner’s Guide to Safer JavaScript","what-is-typescript","TypeScript is JavaScript with types. Learn what it is, how it works, and how to write your first typed script with clear examples and FAQs.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1785574204088-8bc8es.jpg",[87,235,259,270,271,272],"Programming","Beginners","Frontend","2026-08-01T08:50:45.861+00:00","2026-08-01T08:50:45.958378+00:00",{"id":276,"title":277,"slug":278,"excerpt":279,"cover_image":280,"tags":281,"published_at":282,"updated_at":283,"view_count":155},"37ee32f1-7b8d-4c4d-92b4-37bb37ff64c5","What Is JavaScript? A Beginner’s Guide to Modern Web Development","what-is-javascript","JavaScript is the programming language that makes websites interactive. Learn what it is, how it works, and how to write your first script with clear examples and FAQs.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1785561346515-utrr91.jpg",[235,259,270,271,272],"2026-08-01T05:16:12.728+00:00","2026-08-01T08:50:11.164531+00:00",{"id":285,"title":286,"slug":287,"excerpt":288,"cover_image":289,"tags":290,"published_at":293,"updated_at":294,"view_count":28},"f238da13-8416-41e6-8281-a6185efd4bd4","Laravel Sanctum Explained: Simple API Authentication for Modern Apps","laravel-sanctum-api-authentication","Laravel Sanctum makes API authentication simple — whether you need token-based APIs for mobile apps or cookie-based auth for SPAs. Here’s how it works, without the jargon.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1785470074981-vejfi4.jpg",[19,20,291,292,25],"API","Authentication","2026-08-01T04:13:15.178+00:00","2026-08-01T08:50:11.393519+00:00",{"id":296,"title":297,"slug":298,"excerpt":299,"cover_image":300,"tags":301,"published_at":305,"updated_at":306,"view_count":307},"d8c77913-46f4-4012-ade6-bd5a81676001","Laravel Module Structure Explained: Keep Large Apps Clean","laravel-module-structure-explained","A practical guide to Laravel module architecture — folder layout, providers, routes, and boundaries that keep features independent as your app grows.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1785385385865-8oyk12.png",[19,23,302,303,198,304],"Modules","Architecture","Clean Code","2026-07-30T04:54:17.431+00:00","2026-08-01T08:50:11.599795+00:00",6,{"id":309,"title":310,"slug":311,"excerpt":312,"cover_image":313,"tags":314,"published_at":321,"updated_at":322,"view_count":142},"26ccd19c-a8bb-419d-be11-efd1d221b415","Cursor vs Claude vs ChatGPT: Which AI Actually Helps with Laravel & Nuxt?","cursor-ai-vs-claude-code-vs-chatgpt-for-laravel-nuxt-development-2026","Tired of constantly copying and pasting code between your Vue frontend and PHP backend? I tested Cursor, Claude Code, and ChatGPT to see which one actually speeds up a real-world Laravel and Nuxt workflow. Here is my breakdown.","https:\u002F\u002Fkjnzswhfjfkhvplczgfs.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Fimages\u002Fblog\u002Fcovers\u002F1785300697566-pn766r.png",[19,315,316,317,318,319,320],"Nuxt 3","AI for Developers","Cursor","Claude Code","ChatGPT","Full Stack","2026-07-29T04:46:50.88+00:00","2026-08-01T08:50:11.809909+00:00",{"variant":324,"profile":329,"heroStats":342,"aboutParagraphs":346,"aboutPillars":353,"aboutFacts":366,"skillCategories":379,"experiences":418,"education":445,"projects":464,"languages":534,"interests":537},{"id":325,"slug":326,"label":327,"is_active":328,"sort_order":4},"481b2725-e0f6-43df-beea-937ec806a438","full-stack-developer","Full Stack Developer",true,{"name":330,"title":331,"tagline":331,"photo_url":332,"summary":333,"email":334,"phone":17,"location":335,"linkedin":336,"github":337,"instagram":338,"hero_headline":339,"hero_headline_accent":340,"hero_subheadline":341},"Mohd Anish","Full Stack Developer ","\u002Fprofile.png","Full Stack Developer with 3.5+ years of experience specializing in Laravel, Vue.js, Nuxt.js, MySQL, and modern web technologies. Experienced in designing, developing, and maintaining scalable web applications with a strong focus on performance, security, and code quality.","anhali736@gmail.com","Rajasthan, India","linkedin.com\u002Fin\u002Fmohd-anish-23096635a","https:\u002F\u002Fgithub.com\u002Fmrmolani76","https:\u002F\u002Fwww.instagram.com\u002Fmohdanish.me\u002F","Building Scalable Web Apps","using Modern Technologies","Building secure, scalable, and high-performance web applications using Laravel, Vue.js, Nuxt.js, and MySQL.",[343],{"value":344,"label":345},"3.5+","Yrs Development",[347,349,351],{"html":348},"I'm a \u003Cspan class=\"text-gold font-medium\">Full Stack Developer\u003C\u002Fspan> passionate about building secure, scalable, and high-performance web applications. I enjoy solving complex problems and creating modern digital experiences with clean, maintainable code.",{"html":350},"I specialize in \u003Cspan class=\"text-gold font-medium\">Laravel\u003C\u002Fspan>, \u003Cspan class=\"text-foreground\">Vue.js\u003C\u002Fspan>, \u003Cspan class=\"text-foreground\">Nuxt.js\u003C\u002Fspan>, \u003Cspan class=\"text-foreground\">MySQL\u003C\u002Fspan>, and \u003Cspan class=\"text-foreground\">REST APIs\u003C\u002Fspan>, building responsive and scalable applications with a strong focus on performance, security, and code quality.",{"html":352},"With \u003Cspan class=\"text-foreground\">3.5+ years of experience\u003C\u002Fspan>, I've contributed to enterprise-grade applications, including compliance-critical modules for the \u003Cspan class=\"text-foreground\">Complere eQMS\u003C\u002Fspan> platform. I'm committed to continuous learning and building software that is reliable, maintainable, and ready for real-world use.",[354,358,362],{"icon":355,"label":356,"description":357},"lucide:code-2","Build","Scalable, clean web apps",{"icon":359,"label":360,"description":361},"lucide:trending-up","Grow","Marketing-driven results",{"icon":363,"label":364,"description":365},"lucide:shield-check","Ship","Reliable, compliant systems",[367,371,375],{"icon":368,"label":369,"value":370},"lucide:settings","Core Stack","Laravel · Nuxt · Vue · MySQL",{"icon":372,"label":373,"value":374},"lucide:building-2","Currently","Complibued — eQMS Platform",{"icon":376,"label":377,"value":378},"lucide:map-pin","Availability","Open to opportunities",[380,393,402,413],{"title":381,"icon":382,"color":383,"show_on_home":328,"show_on_resume":328,"skills":384},"Backend Development","lucide:database","from-gold-soft to-gold-deep",[19,23,385,386,387,388,389,390,391,392],"Supabase (BaaS)","MySQL","REST APIs","Git","Docker","Redis","GitHub Actions","Cloudflare",{"title":394,"icon":395,"color":383,"show_on_home":328,"show_on_resume":396,"skills":397},"Frontend Development","lucide:code",false,[398,399,400,87,401,235],"Nuxt.js","Vue.js","React","Tailwind CSS",{"title":403,"icon":404,"color":383,"show_on_home":328,"show_on_resume":396,"skills":405},"AI & Automation","lucide:zap",[406,407,408,409,410,411,412],"Prompt Engineering","ChatGPT & Claude","Google Gemini","AI Grok","GitHub Copilot","AI Content Strategy","Workflow Automation",{"title":414,"icon":415,"color":383,"show_on_home":328,"show_on_resume":328,"skills":416},"Development","lucide:wrench",[19,23,399,398,235,87,401,387,386,417],"Git & GitHub",[419],{"role":327,"company":420,"note":421,"period":422,"description":423,"stack":424,"color":383,"icon":425,"points":426},"Complibued","Complere eQMS — Pharmaceutical SaaS","2023 – Present","Building Complere eQMS, a cloud-based Quality Management System for regulated life sciences using Laravel and Nuxt.js. Developed compliance-critical modules — Document Control, LMS, Events, CAPA, Change Control, Audit, and Risk Assessment.","Laravel · Vue\u002FNuxt · MySQL · Tailwind CSS","lucide:folder-git-2",[427,430,432,434,436,439,441,443],{"text":428,"surface":429},"Developing and maintaining a pharma-focused eQMS platform using Laravel and Nuxt.js.","resume",{"text":431,"surface":429},"Built compliance-critical modules: Document Control, Training (LMS), Event Handling, CAPA, Change Control (CR), Audit, and Risk Assessment (RA).",{"text":433,"surface":429},"Implemented approval workflows, version control, and immutable audit trails aligned to 21 CFR Part 11.",{"text":435,"surface":429},"Collaborated with QA teams to meet pharmaceutical compliance standards.",{"text":437,"surface":438},"Built Document Control & LMS (training) modules","home",{"text":440,"surface":438},"Implemented CAPA and Event management workflows",{"text":442,"surface":438},"Developed Change Control (CR) with impact-assessed approvals",{"text":444,"surface":438},"Delivered Audit & Risk Assessment (RA) modules with audit trails",[446,451,455,460],{"degree":447,"school":448,"period":449,"score":450},"M.Sc. (Computer Science)","MDS University, Ajmer","2023 – 2025","73%",{"degree":452,"school":448,"period":453,"score":454},"BCA","2020 – 2023","71%",{"degree":456,"school":457,"period":458,"score":459},"Senior Secondary (12th)","RBSE, Ajmer","2018 – 2019","68.80%",{"degree":461,"school":457,"period":462,"score":463},"Secondary (10th)","2016 – 2017","48.75%",[465,482,499],{"title":466,"slug":467,"description":468,"why":469,"category":470,"image":471,"emoji":472,"link":473,"is_active":328,"stack":474,"features":476,"metrics":481},"Inventory Manager","inventory-manager","Professional inventory management system for tracking stock, orders, and enterprise operations. Powered by Supabase auth and a relational MySQL backend.","Stock and order tracking needed a reliable source of truth for enterprise operations. This system was built so teams can monitor inventory, manage orders, and report status from one authenticated app.","Enterprise","bg-gradient-to-br from-gold-soft\u002F15 via-gold\u002F5 to-transparent","📦","https:\u002F\u002Fruby-enterprise.vercel.app\u002F",[399,475,386,401,87],"Supabase",[477,478,479,480],"Stock Tracking","Order Management","User Authentication","Reporting & Analytics",[],{"title":483,"slug":484,"description":485,"why":486,"category":487,"image":488,"emoji":489,"link":490,"is_active":328,"stack":491,"features":493,"metrics":498},"Random Video Chat","random-video-chat","Omegle-style platform for spontaneous 1-on-1 video conversations with strangers. Uses WebRTC for peer-to-peer video and Supabase Realtime for matchmaking and signaling.","I wanted to explore real-time peer connections without a heavy media server. The app was built to practice WebRTC + realtime matchmaking and deliver instant 1-on-1 video chat with no account friction.","Real-time","bg-gradient-to-br from-gold\u002F15 via-gold\u002F5 to-transparent","🎥","https:\u002F\u002Fomegle-seven-xi.vercel.app\u002F",[399,492,475,401,87],"WebRTC",[494,495,496,497],"Peer-to-Peer Video","Random Matchmaking","Realtime Signaling","No Sign-up Required",[],{"title":500,"slug":501,"description":502,"why":503,"category":504,"image":488,"emoji":505,"link":506,"is_active":328,"stack":507,"features":515,"metrics":524},"Nexro","nexro","Multi-tenant retail web app for GST billing and inventory — products, purchases, sales, POS, quotations, supplier ledgers, and reports. Landing page: nexro.me.","Retail shops were juggling billing, stock, purchases, and supplier dues across sheets and separate tools. Nexro was built as a multi-tenant SaaS so each shop gets its own data on a shared Laravel + Nuxt stack, with GST invoices, live stock, and day-to-day ops from one login.","Web App \u002F SaaS","🏪","https:\u002F\u002Fnexro.me",[508,509,510,511,401,87,386,512,513,514,389],"Laravel 12","Nuxt 4","Vue 3","Vuetify 3","stancl\u002Ftenancy","Laravel Sanctum","Spatie Permission",[516,517,518,519,520,521,522,523],"Multi-tenant shop isolation","GST billing & POS","Inventory with SKU \u002F barcode \u002F serial","Purchases & supplier ledger","Quotations → invoice","Sales, stock & dues reports","Thermal & A4 print","Region-aware landing (nexro.me)",[525,528,531],{"value":526,"label":527},"1","Product platform",{"value":529,"label":530},"7+","Core modules",{"value":532,"label":533},"MT","Multi-tenant",[535,536],"Hindi","English",[259,538,539],"Video Content","New Tools & Tech",[]]