<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Himanshu Gautam on Medium]]></title>
        <description><![CDATA[Stories by Himanshu Gautam on Medium]]></description>
        <link>https://medium.com/@himanshugautamdev?source=rss-11a7f5515808------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*V3UgCpKcicXdKG6rl21TnA.jpeg</url>
            <title>Stories by Himanshu Gautam on Medium</title>
            <link>https://medium.com/@himanshugautamdev?source=rss-11a7f5515808------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:27:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@himanshugautamdev/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How a VS Code Extension Supply Chain Attack Works]]></title>
            <link>https://himanshugautamdev.medium.com/how-a-vs-code-extension-supply-chain-attack-works-d63f2fb91740?source=rss-11a7f5515808------2</link>
            <guid isPermaLink="false">https://medium.com/p/d63f2fb91740</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Himanshu Gautam]]></dc:creator>
            <pubDate>Thu, 28 May 2026 08:11:27 GMT</pubDate>
            <atom:updated>2026-05-28T08:11:27.907Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fqOCDAsKdAL8dKbVC2MOLg.png" /></figure><p>The scariest cybersecurity attacks today don’t always target servers directly…</p><p>Sometimes they target the developer. 👨‍💻</p><p>A single malicious VS Code extension update can silently:</p><p>✅ Steal GitHub tokens<br>✅ Access private repositories<br>✅ Leak internal source code<br>✅ Exfiltrate secrets &amp; credentials</p><h3>⚠️ Attack Flow</h3><p>1️⃣ Developer installs a trusted extension<br>2️⃣ Attacker pushes a malicious update<br>3️⃣ Malicious code steals tokens &amp; secrets<br>4️⃣ Hacker gains repository access<br>5️⃣ Internal data gets exfiltrated</p><p>This is exactly why software supply chain security has become one of the biggest threats in modern software development.</p><h3>🔐 What Attackers Can Steal</h3><ul><li>GitHub Tokens</li><li>SSH Keys</li><li>AWS Credentials</li><li>CI/CD Secrets</li><li>Internal Documentation</li><li>Source Code</li></ul><h3>🛡️ How to Protect Yourself</h3><p>✔ Audit installed extensions regularly<br>✔ Disable automatic extension updates<br>✔ Rotate tokens and credentials frequently<br>✔ Use least-privilege access policies<br>✔ Install only verified extensions<br>✔ Monitor suspicious developer activity</p><h3>💡 The Biggest Lesson</h3><p>Attackers don’t always break the system.</p><p>They break the trust inside the ecosystem.</p><p>Modern cybersecurity is no longer just about securing servers…</p><p>It’s about securing developer tools, IDEs, packages, workflows, and the entire software supply chain.</p><h4><a href="https://bharattodaytech.com/posts/github-hack-vscode-extension-supply-chain-attack">📖 Read More</a></h4><h3>👨‍💻 About the Author</h3><p>Hi, I’m Himanshu Gautam — a software developer sharing practical tech solutions, tools, and guides to help you solve real-world problems faster.</p><p>🌐 Explore more: <a href="https://himanshugautam.in/">https://himanshugautam.in</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d63f2fb91740" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Node.js Event Loop Explained with Real-Time Examples (Complete Beginner to Advanced Guide)]]></title>
            <link>https://blog.devgenius.io/node-js-event-loop-explained-with-real-time-examples-complete-beginner-to-advanced-guide-bef3f354b38c?source=rss-11a7f5515808------2</link>
            <guid isPermaLink="false">https://medium.com/p/bef3f354b38c</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[event-loop]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Himanshu Gautam]]></dc:creator>
            <pubDate>Thu, 21 May 2026 19:43:49 GMT</pubDate>
            <atom:updated>2026-05-22T09:41:26.154Z</atom:updated>
            <content:encoded><![CDATA[<p>Learn how the Node.js Event Loop actually works internally with real-world backend examples, callback queues, promises, async/await, and production-ready architecture understanding.</p><p>Node.js Event Loop is one of the most important concepts every backend developer should understand deeply.</p><p>Many developers use Node.js daily, but very few truly understand:</p><ul><li>How Node.js handles thousands of users</li><li>Why Node.js is non-blocking</li><li>How async code actually works internally</li><li>Why callbacks, promises, and async/await work</li></ul><p>In this article, we’ll understand the Node.js Event Loop from beginner to advanced level using <strong>real-world examples</strong>, <strong>production scenarios</strong>, and <strong>code samples</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*azwxdp7A_mo71hXhCIDaaA.png" /></figure><h3>What is Event Loop in Node.js?</h3><p>Node.js runs on a <strong>single thread</strong>.</p><p>But still…</p><p>It can handle:</p><ul><li>Thousands of API requests</li><li>Database operations</li><li>File uploads</li><li>Sockets</li><li>Real-time chat</li><li>Streaming</li></ul><p>The reason behind this power is:</p><h3>Full Detailed Guide</h3><p>👉 Please check the complete step-by-step solution here:</p><p><a href="https://bharattodaytech.com/posts/nodejs-event-loop-explained-with-real-time-backend-examples">Read More</a></p><h3>👨‍💻 About the Author</h3><p>Hi, I’m Himanshu Gautam — a software developer sharing practical tech solutions, tools, and guides to help you solve real-world problems faster.</p><p>🌐 Explore more: <a href="https://himanshugautam.in/">https://himanshugautam.in</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bef3f354b38c" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/node-js-event-loop-explained-with-real-time-examples-complete-beginner-to-advanced-guide-bef3f354b38c">Node.js Event Loop Explained with Real-Time Examples (Complete Beginner to Advanced Guide)</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel Observer vs Listener: Real Differences with Practical Examples]]></title>
            <link>https://blog.devgenius.io/laravel-observer-vs-listener-real-differences-with-practical-examples-3bed56ddee9a?source=rss-11a7f5515808------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bed56ddee9a</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Himanshu Gautam]]></dc:creator>
            <pubDate>Thu, 21 May 2026 19:04:33 GMT</pubDate>
            <atom:updated>2026-05-22T09:41:15.994Z</atom:updated>
            <content:encoded><![CDATA[<p>Confused between Laravel Observers and Listeners? Learn the real difference with real-world Laravel examples, scalable architecture patterns, event-driven workflows, and production-ready backend practices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tsKrwRjsb1b4KnfnnlD7yw.png" /></figure><p>Laravel developers often get confused between Observers and Listeners.</p><p>And honestly… that confusion is completely normal.</p><p>Because both are powerful. Both react to events. Both help automate logic. And both help keep controllers clean.</p><p>But internally, they solve very different architectural problems.</p><p>Once you truly understand where each one should be used, your Laravel applications become:</p><ul><li>Cleaner</li><li>More scalable</li><li>Easier to maintain</li><li>Better structured</li></ul><p>Good architecture is not about writing more code.</p><p>It’s about writing smarter code.</p><h3>Why Understanding Observer vs Listener Matters</h3><p>In small Laravel projects, developers often place everything inside controllers.</p><p>Initially, it works fine.</p><p>But as the project grows:</p><ul><li>Controllers become massive</li><li>Business logic gets duplicated</li><li>Code becomes difficult to maintain</li><li>Scaling becomes painful</li></ul><p>This is exactly where Laravel’s Observers and Listeners help.</p><p>They allow developers to build clean, modular, and scalable applications.</p><h3>Full Detailed Guide</h3><p>👉 Please check the complete step-by-step solution here:</p><p><a href="https://bharattodaytech.com/posts/laravel-observer-vs-listener-real-examples">Read More</a></p><h3>👨‍💻 About the Author</h3><p>Hi, I’m Himanshu Gautam — a software developer sharing practical tech solutions, tools, and guides to help you solve real-world problems faster.</p><p>🌐 Explore more: <a href="https://himanshugautam.in/">https://himanshugautam.in</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bed56ddee9a" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/laravel-observer-vs-listener-real-differences-with-practical-examples-3bed56ddee9a">Laravel Observer vs Listener: Real Differences with Practical Examples</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laravel Service Container vs Service Provider — Explained with a Real Example]]></title>
            <link>https://blog.devgenius.io/laravel-service-container-vs-service-provider-explained-with-a-real-example-4a4f5afbf936?source=rss-11a7f5515808------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a4f5afbf936</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Himanshu Gautam]]></dc:creator>
            <pubDate>Tue, 12 May 2026 19:10:36 GMT</pubDate>
            <atom:updated>2026-05-13T09:10:37.691Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qPbYjH6tq-aKWH6Y_zHGcQ.png" /></figure><p>If you are learning Laravel seriously, one of the most important concepts you must understand is:</p><ul><li>Service Container</li><li>Service Provider</li><li>Dependency Injection</li><li>Bindings</li><li>Bootstrapping</li></ul><p>Most beginners get confused by these concepts because, internally, they work together.</p><p>In this article, we will explore the differences between Laravel Service Container and Service Provider using a real Payment Gateway example.</p><p>Simple definition:</p><blockquote><em>Service Container automatically creates and provides required class objects.</em></blockquote><h4>Simple Example</h4><pre>class PaymentService<br>{<br>    public function pay()<br>    {<br>        return &quot;Payment Successful&quot;;<br>    }<br>}</pre><p>Now inside controller:</p><pre>class PaymentController extends Controller<br>{<br>    public function pay(PaymentService $payment)<br>    {<br>        return $payment-&gt;pay();<br>    }<br>}</pre><h3>Full Detailed Guide</h3><p>👉 Please check the complete step-by-step solution here:</p><p><a href="https://bharattodaytech.com/posts/laravel-service-container-vs-service-provider">Read More</a></p><h3>👨‍💻 About the Author</h3><p>Hi, I’m Himanshu Gautam — a software developer sharing practical tech solutions, tools, and guides to help you solve real-world problems faster.</p><p>🌐 Explore more: <a href="https://himanshugautam.in/">https://himanshugautam.in</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a4f5afbf936" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/laravel-service-container-vs-service-provider-explained-with-a-real-example-4a4f5afbf936">Laravel Service Container vs Service Provider — Explained with a Real Example</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Claude Code Tutorial: Build a Senior Engineer System with CLAUDE.md (2026)]]></title>
            <link>https://blog.devgenius.io/claude-code-tutorial-build-a-senior-engineer-system-with-claude-md-2026-288030f9b58b?source=rss-11a7f5515808------2</link>
            <guid isPermaLink="false">https://medium.com/p/288030f9b58b</guid>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[ai-coding-workflow]]></category>
            <category><![CDATA[claude-code]]></category>
            <dc:creator><![CDATA[Himanshu Gautam]]></dc:creator>
            <pubDate>Mon, 06 Apr 2026 16:44:58 GMT</pubDate>
            <atom:updated>2026-04-07T08:37:53.572Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SShzF0gPyvP2z1y5qq1ryg.png" /></figure><p>Most developers use Claude Code like a fast autocomplete. The engineers getting real leverage aren’t prompting differently — they’re building context systems. Here’s the complete Claude Code tutorial to do exactly that.</p><pre>Table of Contents<br><br>Why Claude Code fails without a context system<br>The 4-layer Claude Code setup<br>Layer 1: How to write a CLAUDE.md file that works<br>Layer 2: Claude Code slash commands - stop repeating yourself<br>Layer 3: Claude Code skills - create domain specialists<br>Layer 4: MCP integrations - connect your real workflow<br>Before vs after: the real difference in output quality<br>How to start: from zero to a senior engineer system in 5 steps<br>FAQs about Claude Code setup</pre><h3>Why Claude Code fails without a context system</h3><p>Every Claude Code session starts from scratch. No memory of your naming conventions, your architecture decisions, your security rules, or the fact that you use single-action controllers. You open the terminal, and you’re effectively onboarding a new developer — every single time.</p><p>Most developers respond to this by writing longer, more detailed prompts. That helps slightly, but it doesn’t solve the core problem: prompts are ephemeral. They disappear when the session ends, and you write the same instructions again tomorrow.</p><blockquote>“The goal isn’t a better prompt. The goal is a codebase that is permanently legible to Claude.”</blockquote><p>This Claude Code tutorial shows you a file-based context system that loads automatically, enforces your standards without reminders, and gets smarter the more you invest in it.</p><h3>The 4-layer Claude Code setup</h3><p>The system has four layers, each serving a distinct purpose. You can implement them one at a time — the value compounds as you add each one.</p><h4><strong>Layer 1. </strong>claude.md — the brain</h4><p>Project’s long-term memory. Tech stack, architecture rules, naming conventions. Claude reads this first, automatically, every session.</p><h4><strong>Layer 2</strong>. claude/commands/ — automated workflows</h4><p>Custom slash commands that trigger complex, repeatable logic. Type /review Instead of re-explaining your entire review process.</p><h4><strong>Layer 3</strong>. claude/skills/ — specialized intelligence</h4><p>Deep-dive playbooks for complex domains — security audits, module generation, API design checks. Turns Claude into a domain specialist.</p><h4><strong>Layer 4</strong>. mcp.json — external tool connections</h4><p>Connect Claude Code to GitHub PRs, Jira tickets, and your database. It reads your actual work, not just your codebase.</p><h3>The folder structure</h3><p>Create this in your project root. Claude Code detects the .claude/ folder and CLAUDE.md automatically runs on startup:</p><pre>my-laravel-app/<br>├── CLAUDE.md ← The Brain (read first, every session)<br>├── .claude/<br>│ ├── settings.json ← Auto-lint &amp; test hooks<br>│ ├── commands/<br>│ │ └── review.md ← /review command logic<br>│ └── skills/<br>│ └── security-audit/<br>│ └── SKILL.md ← Security specialist playbook<br>├── .mcp.json ← GitHub / Jira / DB connections<br>└── … (your standard app files)</pre><h3>Layer 1: How to write a CLAUDE.md file that works</h3><p>CLAUDE.md is the single most impactful file in this entire Claude Code setup. Think of it as the onboarding document you’d hand a senior engineer on their first day — stack, rules, patterns, non-negotiables. Claude reads it before doing anything else.</p><p>Here’s what a well-structured CLAUDE.md looks like for a multi-tenant Laravel application:</p><pre># Project: TenantFlow (Multi-Tenant SaaS) — Laravel 11<br><br>## Tech Stack<br>- Framework: Laravel 11 (PHP 8.3)<br>- Database: PostgreSQL (Single DB, tenant_id scoping)<br>- Auth: Laravel Breeze + Inertia.js (Vue 3)<br>- Testing: Pest<br><br>## Architecture Rules<br>- Every Eloquent model MUST use App\Traits\BelongsToTenant<br>- Controllers: Single Action only — __invoke() method exclusively<br>- Validation: FormRequest classes only, never inside controllers<br>- Security: Never use User::all() — always scope via Tenant::current()<br><br>## Coding Standards<br>- declare(strict_types=1) in every PHP file<br>- Formatting: PSR-12 enforced via Laravel Pint<br>- Enums: PHP 8.1 Backed Enums for all status fields<br><br>## Testing Requirements<br>- Pest for all feature and unit tests<br>- Every new feature needs a TenantIsolationTest</pre><p>Notice what this does. It’s not a prompt — it’s a constraint system. Every piece of code Claude generates now automatically passes through these filters. It stops generating patterns your project doesn’t use, and it stops asking you to explain your standards for the tenth time.</p><p>Even a minimal CLAUDE.md with just your tech stack and two or three hard rules will noticeably improve output consistency from your very first session. Start there.</p><h3>Layer 2: Claude Code slash commands — stop repeating yourself</h3><p>How often do you find yourself typing the same review instructions into Claude Code? “Check for N+1 queries, make sure there’s no validation in the controller, verify the tenant scope is applied…” Slash commands replace that entire ritual with a single word.</p><p>Create .claude/commands/review.md and define your process once:</p><pre># Command: /review<br># Triggers: type /review in the Claude Code terminal<br><br>Steps:<br>1. Run php artisan pint --test to check PSR-12 formatting<br>2. Scan all new code for missing tenant_id scopes<br>3. Verify all new models use the BelongsToTenant trait<br>4. Check for N+1 query issues in Eloquent relationships<br>5. Confirm no validation logic exists inside controllers<br>6. Verify all API responses use JsonResource wrappers<br>7. Output a senior-developer style summary with suggested fixes</pre><p>From now on, typing /review runs all seven checks against your specific standards. No re-explaining, no forgetting a step. The command is version-controlled alongside your code, so new team members get the same review process automatically.</p><p>You can build commands for anything that’s repetitive: /make-module to scaffold a full feature, /audit-api to review endpoint design, /check-perf for query performance analysis.</p><h3>Layer 3: Claude Code skills — create domain specialists</h3><p>Commands are shortcuts. Skills are depth. A skill file is a detailed playbook that transforms Claude Code into a specialist for one specific area of your codebase. Where a command runs a checklist, a skill provides full context, judgment, and automated checks for a complex domain.</p><p>For a multi-tenant application, data isolation is the most critical area to get right. One unscoped query and Tenant A can read Tenant B’s private data. Here’s a security skill that turns Claude into someone whose entire job is catching exactly that:</p><pre># Skill: Multi-Tenant Security Auditor<br><br>Objective:<br>Data from Tenant A must be completely inaccessible to Tenant B.<br>Any data leak is a critical production incident.<br><br>Audit Checklist:<br>- Database: Verify tenant_id in WHERE clause of all Eloquent queries<br>- Migrations: Check for unsignedBigInteger(&#39;tenant_id&#39;)-&gt;index()<br>- Storage: File uploads stored at storage/app/tenants/{tenant_id}/<br>- Middleware: IdentifyTenant applied to all authenticated route groups<br>- API: Internal IDs never exposed in any API response<br><br>Automated Check — run immediately when skill is active:<br>grep -r &quot;Model::all()&quot; .<br>grep -r &quot;::all()&quot; app/<br>Flag every result as Critical Risk — missing tenant scope.</pre><p>Skills are particularly powerful for complex business logic, compliance requirements, or any area where mistakes have serious consequences. Some skills worth building for most projects: a performance audit skill that catches expensive query patterns, an API design skill that enforces your versioning and response format standards, and a test coverage skill that ensures every new feature has adequate tests.</p><h3>Layer 4: MCP integrations — connect your real workflow</h3><p>MCP (Model Context Protocol) servers take the Claude Code setup to its final level. Instead of Claude only knowing your codebase, it can now read your GitHub PRs, Jira tickets, database schema, and deployment logs in real time.</p><p>Your .mcp.json defines these connections:</p><pre><br>  &quot;mcpServers&quot;: {<br>    &quot;github&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [&quot;-y&quot;, &quot;@modelcontextprotocol/server-github&quot;]<br>    },<br>    &quot;postgres&quot;: {<br>      &quot;command&quot;: &quot;npx&quot;,<br>      &quot;args&quot;: [&quot;-y&quot;, &quot;@modelcontextprotocol/server-postgres&quot;],<br>      &quot;env&quot;: { &quot;DATABASE_URL&quot;: &quot;${DATABASE_URL}&quot; }<br>    }<br>  }<br>}</pre><p>With MCP connected, you can ask Claude Code things like “look at the open PRs and tell me which ones have missing tests” or “check the database and show me queries running without an index.” This is where the system starts feeling less like a tool and more like an actual collaborator who is plugged into your entire workflow.</p><h3>Before vs after: the real difference in output quality</h3><p>Let’s make this concrete. Same task — building a secure login feature for a multi-tenant Laravel app — two approaches:</p><h4>Without the Claude Code context system</h4><p>You type: “Write a login controller for my Laravel app.” Claude returns a generic AuthController with multiple methods, validates inside the controller, skips the tenant scope check entirely, and ignores your project’s directory structure. You fix it manually.</p><h4>With CLAUDE.md + commands + skills</h4><p>Claude reads CLAUDE.md, generates a single __invoke LoginController, scopes authentication to Tenant::current(), and creates a LoginRequest for validation. You type /review — it catches a missing rate limiter and adds it. Laravel Pint runs automatically. The code is correct before you open it.</p><p>The difference is not that Claude generates better code on its own. The difference is that you have built a system that makes the correct output the default output.</p><h3>How to start: from zero to a senior engineer system in 5 steps</h3><p>Don’t try to build all four layers in one session. Here’s a progression that delivers value at each step:</p><p><strong>01. </strong>Create CLAUDE.md in your project root. List your tech stack, two or three architecture rules, and your main coding standard. This alone is worth doing today — it immediately improves Claude Code output on every task.</p><p><strong>02. </strong>Add .claude/settings.json with a postToolUse hook pointing to your linter. Auto-formatting means you never manually fix indentation or trailing whitespace in AI-generated code again.</p><p><strong>03. </strong>Write your first slash command for the review you run most often. Code quality, security scoping, test coverage — pick the one you currently explain manually every time and automate it first.</p><p><strong>04. </strong>Build one skill file for the highest-risk area of your codebase. Security audits, multi-tenant isolation, payment processing logic — wherever a mistake has serious consequences is where a skill file pays the most.</p><p><strong>05. </strong>Connect MCP servers when you’re ready for the full system. Start with GitHub for PR awareness, then add your database for schema-aware queries.</p><h4>Note :</h4><p>Never store API keys, database credentials, or secrets in CLAUDE.md or any file under .claude/. These files are typically committed to version control. Use .env files or .claude/settings.local.json (add this to .gitignore) for anything sensitive.</p><h3>FAQs about Claude Code setup</h3><h4>Does CLAUDE.md work for projects other than Laravel?</h4><p>Yes — CLAUDE.md works with any tech stack. The file format is just plain markdown. The same principles apply to Node.js, Django, Rails, Next.js, or any other framework. Adjust the architecture rules and examples to match your project’s conventions.</p><h4>Where do these files live — are they local or cloud-synced?</h4><p>CLAUDE.md and the .claude/ folder are local to your project directory. Claude Code is an agentic tool that interacts directly with your file system, so these files exist alongside your source code and should be committed to version control so your entire team benefits from the same context.</p><h4>How is this Claude Code tutorial different from just writing a detailed system prompt?</h4><p>A system prompt lasts one session. The file-based context system described in this Claude Code tutorial is persistent, version-controlled, composable (commands and skills build on each other), and automatically shared across your entire team. It compounds in value over time instead of disappearing when the terminal closes.</p><h4>Can I use this Claude Code setup for a non-PHP or non-Laravel project?</h4><p>Absolutely. The 4-layer system — CLAUDE.md, commands, skills, MCP — is framework-agnostic. A Node.js project would reference ESLint instead of Pint, Jest instead of Pest, and different architecture patterns, but the structure and approach are identical. The Laravel examples in this tutorial are illustrative, not prescriptive.</p><h3>Final thought</h3><p>There is a framing shift worth making explicit here. Most engineers ask “How do I get better outputs from Claude Code?” The better question is: “How do I make my codebase permanently legible to an AI collaborator?”</p><p>The CLAUDE.md file you write today will improve every session you have with Claude Code indefinitely. The slash commands you define this week will save you from re-explaining your standards for years. That is the kind of leverage that compounds — and it starts with a single markdown file in your project root.</p><h3>👨‍💻 About the Author</h3><p>Hi, I’m Himanshu Gautam — a software developer sharing practical tech solutions, tools, and guides to help you solve real-world problems faster.</p><p>🌐 Explore more: <a href="https://himanshugautam.in/">https://himanshugautam.in</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=288030f9b58b" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/claude-code-tutorial-build-a-senior-engineer-system-with-claude-md-2026-288030f9b58b">Claude Code Tutorial: Build a Senior Engineer System with CLAUDE.md (2026)</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Fix DNS_PROBE_STARTED Error on Mac (5-Minute Easy Fix) [2026]]]></title>
            <link>https://blog.devgenius.io/how-to-fix-dns-probe-started-error-on-mac-5-minute-easy-fix-2026-3e83942d4ec6?source=rss-11a7f5515808------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e83942d4ec6</guid>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[wifi]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[dns]]></category>
            <dc:creator><![CDATA[Himanshu Gautam]]></dc:creator>
            <pubDate>Wed, 25 Mar 2026 06:29:10 GMT</pubDate>
            <atom:updated>2026-03-26T09:19:57.119Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re seeing the error <strong>“DNS_PROBE_STARTED”</strong> on your Mac, even though your internet is connected, don’t worry — this is a common DNS issue and can be fixed in just a few minutes.</p><p>In this guide, you’ll learn <strong>what causes this error and how to fix it step-by-step in under 5 minutes</strong>.</p><h3>What is the DNS_PROBE_STARTED Error?</h3><p>The <strong>DNS_PROBE_STARTED error</strong> happens when your Mac is unable to properly connect to a DNS (Domain Name System) server.</p><p>👉 In simple words:<br> Your system cannot translate a website name (like google.com) into its IP address.</p><p>In this guide, you’ll learn:</p><ul><li>What causes this error</li><li>Quick fixes that actually work</li><li>Step-by-step solutions (beginner-friendly)</li></ul><p>👉 Let’s fix it in under <strong>5 minutes</strong>.</p><h3>What is DNS_PROBE_STARTED Error?</h3><p>The <strong>DNS_PROBE_STARTED</strong> error occurs when your Mac fails to connect to a DNS (Domain Name System) server.</p><p>👉 <strong>Simple explanation:</strong><br> Your system cannot convert a website name (like google.com) into its actual IP address.</p><h3>🚨 Why This Error Happens</h3><p>Common reasons include:</p><ul><li>Incorrect DNS settings</li><li>Network connection glitches</li><li>Browser cache issues</li><li>macOS network bugs</li><li>Router or ISP DNS problems</li></ul><h3>Full Detailed Guide</h3><p>👉 Please check the complete step-by-step solution here:<br><a href="https://bharattodaytech.com/posts/dns-probe-started-error-mac-fix"> https://bharattodaytech.com/posts/dns-probe-started-error-mac-fix</a></p><h3>👨‍💻 About the Author</h3><p>Hi, I’m Himanshu Gautam — a software developer sharing practical tech solutions, tools, and guides to help you solve real-world problems faster.</p><p>🌐 Explore more: <a href="https://himanshugautam.in/">https://himanshugautam.in</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e83942d4ec6" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/how-to-fix-dns-probe-started-error-on-mac-5-minute-easy-fix-2026-3e83942d4ec6">How to Fix DNS_PROBE_STARTED Error on Mac (5-Minute Easy Fix) [2026]</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best Free Online PDF Tools for 2026 (Merge, Split, Compress PDFs Instantly)]]></title>
            <link>https://blog.devgenius.io/best-free-online-pdf-tools-for-2026-merge-split-compress-pdfs-instantly-196ff02c5b64?source=rss-11a7f5515808------2</link>
            <guid isPermaLink="false">https://medium.com/p/196ff02c5b64</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Himanshu Gautam]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 04:53:43 GMT</pubDate>
            <atom:updated>2026-03-19T12:18:59.529Z</atom:updated>
            <content:encoded><![CDATA[<p>Working with PDF files is a daily task for students, professionals, and businesses. Whether you need to merge documents, compress files for email, or extract specific pages, having the right tool can save a lot of time.</p><p>Many PDF tools online require paid subscriptions or add watermarks to your files. Recently, I found a simple and powerful website that provides free PDF tools directly in the browser.</p><p>Try it here: <a href="https://pdfcraftor.com/">https://pdfcraftor.com/</a></p><h4><strong>What is PDFCraftor?</strong></h4><p>PDFCraftor is an all-in-one online toolkit that helps you manage and edit PDF files quickly. It offers tools to merge, split, compress, convert, and secure PDFs without installing any software.</p><p>The platform is designed to make document management easy with a simple interface and fast processing.</p><h4><strong>🛠 Key Features</strong></h4><h4><strong>Merge PDF</strong></h4><p>Combine multiple PDF files into one document. Useful for:</p><ul><li>Combining reports</li><li>Merging scanned pages</li><li>Joining invoices</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SVGojjM1wo0rFti8q_YkvA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u4bwjsS4V5r_-vzScI5O1Q.png" /></figure><h4>Split PDF</h4><p>Need only a few pages from a large document? The Split PDF tool lets you extract specific pages or divide a PDF into multiple files instantly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l38bS8YXXiOYvP4dloL7XA.png" /></figure><h4>Compress PDF</h4><p>Large PDFs can be difficult to share via email or upload. This tool reduces file size while maintaining document quality so you can easily send documents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ipZ8dtSzeiOPk6CDxN1kBg.png" /></figure><h4>Convert &amp; Edit PDFs</h4><p>You can also:</p><ul><li>Convert PDF to images</li><li>Convert images to PDF</li><li>Add watermark</li><li>Rotate pages</li><li>Protect PDF with a password</li><li>Unlock PDF files</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OeY4KT7aPy4XWrN4xwj7Xg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OY81tk2rGPp_mFuB4G6-2Q.png" /></figure><p>All tools are available in one place.</p><h4>⚡ Why Use PDFCraftor?</h4><p>✔ Completely free</p><p>✔ No installation required</p><p>✔ Works on mobile and desktop</p><p>✔ Simple and fast interface</p><p>✔ <strong>Your files are encrypted and automatically deleted within 24 hours — no data stored on servers</strong></p><p>✔ Secure file processing</p><h4>Start Using It</h4><p>If you regularly work with documents, this tool can save time and effort.</p><p>👉 <strong>Use it now: </strong><a href="https://pdfcraftor.com/"><strong>https://pdfcraftor.com/</strong></a></p><h4>Share With Friends</h4><p>If this tool helps you manage your PDF files faster, share it with friends and colleagues who work with PDFs daily.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=196ff02c5b64" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/best-free-online-pdf-tools-for-2026-merge-split-compress-pdfs-instantly-196ff02c5b64">Best Free Online PDF Tools for 2026 (Merge, Split, Compress PDFs Instantly)</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Set Up OpenVPN on Linux (Step-by-Step Guide)]]></title>
            <link>https://blog.devgenius.io/how-to-set-up-openvpn-on-linux-step-by-step-guide-9406d2cdd78f?source=rss-11a7f5515808------2</link>
            <guid isPermaLink="false">https://medium.com/p/9406d2cdd78f</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[vpn]]></category>
            <category><![CDATA[openvpn]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Himanshu Gautam]]></dc:creator>
            <pubDate>Wed, 21 May 2025 17:49:34 GMT</pubDate>
            <atom:updated>2025-05-27T16:59:11.270Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve accessed the <strong>OpenVPN Access Server</strong> interface and your device is detected as Linux, you’re in the right place. This guide walks you through setting up OpenVPN on a Linux system using both <strong>GUI</strong> (with NetworkManager) and <strong>CLI</strong> (terminal-based) methods.</p><h3>Prerequisites</h3><ul><li>A Linux system (Ubuntu/Debian preferred)</li><li>Access to your OpenVPN Access Server portal</li><li>Administrator privileges (sudo access)</li></ul><h3>Step 1: Visit the OpenVPN Access Server Page</h3><p>Open your web browser (Firefox, Chrome, etc.) and navigate to your organization’s OpenVPN Access Server URL:</p><pre>https://vpn.myVPNName.in:555/?src=connect</pre><h3>Log In (If Required)</h3><p>You may be prompted to log in using your credentials. If you’ve forgotten them, click <strong>“Change Password”</strong> (if available) or contact your VPN administrator.</p><h3>Step 2: Download Your OpenVPN Profile</h3><ol><li>Scroll to the <strong>Available Connection Profiles</strong> section</li><li>Click on <strong>“Yourself (user-locked profile)”</strong>.</li><li>This will download a .ovpn file (e.g., client.ovpn) to your default downloads folder (~/Downloads).</li></ol><h3>Step 3: Install OpenVPN on Linux</h3><pre>sudo apt update<br>sudo apt install openvpn</pre><h3>Step 4: (Optional): Install NetworkManager Plugin for GUI</h3><p>If you prefer using a GUI to manage VPN connections, install the NetworkManager plugin:</p><pre>sudo apt install network-manager-openvpn</pre><h3>Step 5: Import the Profile Using NetworkManager (GUI Method)</h3><ol><li>Open your system’s <strong>Network Settings</strong>.</li><li>Go to the <strong>VPN</strong> section.</li><li>Choose <strong>Import from file</strong>.</li><li>Select the .ovpn file you downloaded earlier.</li><li>Enter your VPN username and password (same as the Access Server login).</li><li>Save and <strong>Connect</strong> to the VPN.</li></ol><h3>Step 6: Connect Using Terminal (CLI Method)</h3><p>Prefer command-line? Here’s how:</p><ol><li>Navigate to your downloads folder:</li></ol><pre>cd ~/Downloads</pre><p>2. Run the OpenVPN client:</p><pre>sudo openvpn --config client.ovpn</pre><p>3. Enter your VPN credentials when prompted.</p><h3>Step 7: Verify VPN Connection</h3><p>To check if your VPN is connected and your IP has changed, run:</p><pre>curl ifconfig.me</pre><p>You should see a new IP address reflecting your VPN’s network.</p><h3>Step 8: Check File Permissions (If Needed)</h3><p>If OpenVPN fails to read the file, ensure correct permissions:</p><pre>ls -l ~/Downloads/client.ovpn</pre><p>If necessary, update the file permissions:</p><pre>chmod 644 ~/Downloads/client.ovpn</pre><h3>Step 9:Additional Cleanup (Optional)</h3><p>Free up space by removing unused kernel packages:</p><pre>sudo apt autoremove</pre><p>RADHE RADHE<br>राधे राधे<br>जय सनातन</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9406d2cdd78f" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/how-to-set-up-openvpn-on-linux-step-by-step-guide-9406d2cdd78f">How to Set Up OpenVPN on Linux (Step-by-Step Guide)</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Build a Laravel Desktop App with Electron — Create.]]></title>
            <link>https://blog.devgenius.io/how-to-build-a-laravel-desktop-app-with-electron-create-b5085ae9dddd?source=rss-11a7f5515808------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5085ae9dddd</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[electronjs]]></category>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[desktop-app]]></category>
            <dc:creator><![CDATA[Himanshu Gautam]]></dc:creator>
            <pubDate>Wed, 23 Apr 2025 06:47:56 GMT</pubDate>
            <atom:updated>2025-04-24T13:34:53.221Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Build a Laravel Desktop App with Electron — Create. AppImage and .dmg Installers (Linux/macOS)</h3><p>In this guide, you’ll learn how to convert a Laravel web application into a native desktop app using <strong>Electron</strong>. This tutorial covers everything: Laravel setup, Electron integration, solving common errors, and building .AppImage (Linux) or .dmg (macOS) files.</p><h3>Official Website :</h3><p><a href="https://nativephp.com/docs/desktop/1/getting-started/installation">Installation - NativePHP desktop v1</a></p><h3>When &amp; Why should you use a Native Laravel app?</h3><h3>When to Use :</h3><ul><li>When building a custom web app with specific frontend and backend needs.</li><li>When you want full control over authentication, routing, and structure.</li><li>When you don’t need bundled frontend tools like Tailwind, Inertia, or Livewire.</li></ul><h3>Why Use Electron with Laravel?</h3><p>Laravel is a robust backend framework. Electron allows wrapping your web app into a native window. Together, they make a powerful stack for:</p><p>Admin panels, <br>internal tools,<br>CRM dashboard, <br>Offline desktop systems</p><h3>Step-by-Step Setup</h3><h3>1. Create a Laravel Project</h3><pre>composer create-project laravel/laravel myApp<br>cd myApp</pre><p>Update your .env file with database config:</p><pre>DB_DATABASE=myapp_db<br>DB_USERNAME=root<br>DB_PASSWORD=</pre><p>Create the database and run migrations:</p><pre>php artisan config:clear<br>php artisan migrate<br>php artisan serve</pre><p>Verify the app at <a href="http://127.0.0.1:8000/">http://127.0.0.1:8000</a></p><h3>2. Install Laravel UI (Optional Auth Setup)</h3><pre>composer require laravel/ui<br>php artisan ui bootstrap --auth<br>npm install &amp;&amp; npm run dev</pre><p>This adds login/register screens and Bootstrap UI.</p><h3>3. Set up Electron Project</h3><p>Navigate to the parent directory:</p><pre># Step 1: Go up from Laravel folder<br>cd ..<br><br># Step 2: Create and enter Electron folder<br>mkdir electron-app &amp;&amp; cd electron-app<br><br># Step 3: Initialize Node.js project<br>npm init -y<br><br># Step 4: Install Electron<br>npm install --save-dev electron<br><br># Step 5: Install Electron Packager (for builds)<br>npm install --save-dev electron-packager</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*ueVomOQa7NYVxmoHrxh8uw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*XGld1ATrQ6jmLMQ_M3oTrw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*M-PMK7iUMcqLE4QpuZmBfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RGIp3M05rR8_8mhyLZzmwA.png" /></figure><p>Create a main.js file:</p><pre>const { app, BrowserWindow } = require(&#39;electron&#39;);<br><br>function createWindow() {<br>  const win = new BrowserWindow({<br>    width: 1200,<br>    height: 800,<br>    webPreferences: {<br>      nodeIntegration: false<br>    }<br>  });<br><br>  win.loadURL(&quot;http://127.0.0.1:8000&quot;); // Laravel server URL<br>}<br><br>app.whenReady().then(createWindow);</pre><p>Update package.json:</p><pre>{<br>  &quot;name&quot;: &quot;electron-laravel-app&quot;,<br>  &quot;version&quot;: &quot;1.0.0&quot;,<br>  &quot;main&quot;: &quot;main.js&quot;,<br>  &quot;scripts&quot;: {<br>    &quot;start&quot;: &quot;electron .&quot;<br>  },<br>  &quot;devDependencies&quot;: {<br>    &quot;electron&quot;: &quot;^35.2.0&quot;,<br>    &quot;electron-packager&quot;: &quot;^17.1.2&quot;<br>  }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2oEoeGbOdEkePXPJYutOAA.png" /></figure><h3>4. Run Electron Project</h3><p>Start the Laravel server</p><pre>cd myApp<br>php artisan serve</pre><p>Start the Electron app</p><pre>cd ../electron-app<br>npm start<br>//Your Laravel app will open in a native window through Electron</pre><h3>5. Building Native Apps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*cNcAK6Bt3MFJqrJgBKYTqg.png" /></figure><h3>For Linux (.AppImage)</h3><pre>npx electron-packager . laravel-electron-linux \<br>  --platform=linux \<br>  --arch=x64 \<br>  --out=dist \<br>  --overwrite</pre><p>You will get:</p><pre>dist/laravel-electron-linux-x64/<br><br>apk generated directory</pre><h3>macOS (.app / .dmg)</h3><pre>npx electron-packager . laravel-electron-mac \<br>  --platform=darwin \<br>  --arch=x64 \<br>  --out=dist \<br>  --overwrite</pre><p>For .dmg builds:</p><pre>npm install --save-dev electron-builder</pre><p>Update package.json:</p><pre>&quot;build&quot;: {<br>  &quot;appId&quot;: &quot;com.laravel.native.app&quot;,<br>  &quot;mac&quot;: { &quot;target&quot;: &quot;dmg&quot; },<br>  &quot;linux&quot;: { &quot;target&quot;: &quot;AppImage&quot; }<br>}</pre><p>Then build:</p><pre>npx electron-builder build --mac<br>npx electron-builder build --linux</pre><h3>Common Errors &amp; Fixes</h3><h3>❌ Error: could not find driver</h3><p><strong>Solution:</strong> Install the PHP MySQL driver</p><pre>sudo apt install php-mysql</pre><p>Then restart Apache or PHP-FPM.</p><h3>❌ Error: Invalid tag name &quot;^latest&quot;</h3><p><strong>Solution:</strong> Use a valid version tag.</p><pre>npm install --save-dev electron@latest</pre><p>Then:</p><pre>npm install --save-dev electron-packager</pre><h3>Conclusion</h3><p>Created a Laravel web app<br>Wrapped it in Electron<br>Solved errors<br>Generated native builds for Linux and macOS</p><p>RADHE RADHE<br>राधे राधे<br>जय सनातन</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5085ae9dddd" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/how-to-build-a-laravel-desktop-app-with-electron-create-b5085ae9dddd">How to Build a Laravel Desktop App with Electron — Create.</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Fix PHP SQLite Driver Not Found Error in Ubuntu (PHP 8.4)]]></title>
            <link>https://blog.devgenius.io/how-to-fix-php-sqlite-driver-not-found-error-in-ubuntu-php-8-4-924d37c7b724?source=rss-11a7f5515808------2</link>
            <guid isPermaLink="false">https://medium.com/p/924d37c7b724</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[php]]></category>
            <category><![CDATA[sqlite]]></category>
            <category><![CDATA[php84]]></category>
            <dc:creator><![CDATA[Himanshu Gautam]]></dc:creator>
            <pubDate>Fri, 07 Feb 2025 06:21:26 GMT</pubDate>
            <atom:updated>2025-02-07T15:09:54.116Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Are you facing an issue where PHP throws a <strong>“could not find the driver (Connection: sqlite)”</strong> error or an <strong>“Unable to load dynamic library ‘pdo_sqlite’”</strong> error? 🤔</p><p>This issue often happens when upgrading PHP versions and the <strong>SQLite drivers are not properly installed or configured</strong>. In this guide, I’ll walk you through the <strong>easy steps</strong> to fix this error and get your Laravel or PHP project working smoothly.</p><h3>Step 1: Check Your PHP Version</h3><p>First, check which PHP version is currently active on your system by running:</p><pre>php -v</pre><p>If you see an error like this:</p><pre>PHP Warning: PHP Startup: Unable to load dynamic library <br>&#39;pdo_sqlite&#39; ... cannot open shared object file: No such file or directory</pre><p>It means the <strong>SQLite PDO extension is missing or misconfigured</strong></p><h3>Step 2: Verify Installed PHP Versions</h3><p>Since you recently upgraded PHP, your system might still be using an <strong>older PHP version</strong>. Check the active PHP version:</p><pre>update-alternatives --display php</pre><p>If it’s still pointing to an <strong>older version (e.g., PHP 8.1)</strong>, manually set PHP 8.4 as the default:</p><pre>sudo update-alternatives --config php</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*AyuOOnm9L5nC0KvRi47MgA.png" /></figure><p>Choose <strong>PHP 8.4</strong> from the list.</p><h3>Step 3: Remove Old PHP Versions (Optional but Recommended)</h3><p>If your system is still referencing old PHP 8.1 packages, remove them:</p><pre>sudo apt-get remove --purge php8.1 php8.1-cli php8.1-common php8.1-sqlite3 php8.1-pdo php8.1-pdo-sqlite<br>sudo apt-get autoremove</pre><p>This ensures no conflicts between versions.</p><h3>Step 4: Install and Enable SQLite for PHP 8.4</h3><p>Now, install and enable the missing <strong>SQLite drivers</strong>:</p><pre>sudo apt-get install php8.4-sqlite3 php8.4-pdo php8.4-pdo-sqlite<br>sudo phpenmod -v 8.4 sqlite3<br>sudo phpenmod -v 8.4 pdo_sqlite</pre><p>Verify if the modules are enabled:</p><pre>php -m | grep -E &#39;pdo|sqlite&#39;</pre><p>✅ Expected Output:</p><pre>pdo<br>pdo_sqlite<br>sqlite3</pre><h3>Step 5: Restart Services</h3><p>To apply the changes, restart Apache and PHP-FPM:</p><pre>sudo systemctl restart apache2<br>sudo systemctl restart php8.4-fpm</pre><p>Now, test your Laravel or PHP project:</p><h3>Conclusion</h3><p>By following these steps, you have successfully:<br>✅ Set PHP 8.4 as the default version<br>✅ Removed conflicting old PHP versions <br>✅ Installed and enabled SQLite support <br>✅ Restarted necessary services</p><p>Now your Laravel or PHP application should be running without SQLite errors.</p><p>RADHE RADHE<br>राधे राधे<br>जय सनातन</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=924d37c7b724" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/how-to-fix-php-sqlite-driver-not-found-error-in-ubuntu-php-8-4-924d37c7b724">How to Fix PHP SQLite Driver Not Found Error in Ubuntu (PHP 8.4)</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>