<?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 Kajavathanan Thadsanamoorthy on Medium]]></title>
        <description><![CDATA[Stories by Kajavathanan Thadsanamoorthy on Medium]]></description>
        <link>https://medium.com/@kajan746?source=rss-8eb2d4ebe49f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yvFT7gZz3bLfHZ0dgroJdA.jpeg</url>
            <title>Stories by Kajavathanan Thadsanamoorthy on Medium</title>
            <link>https://medium.com/@kajan746?source=rss-8eb2d4ebe49f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 20:44:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kajan746/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[Jensen Huang’s Private Life Is Not Nvidia’s Balance Sheet]]></title>
            <link>https://medium.com/@kajan746/jensen-huangs-private-life-is-not-nvidia-s-balance-sheet-e9efc001e276?source=rss-8eb2d4ebe49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9efc001e276</guid>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[corporate-governance]]></category>
            <category><![CDATA[nvidia]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kajavathanan Thadsanamoorthy]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 09:04:01 GMT</pubDate>
            <atom:updated>2026-11-25T09:04:01.293Z</atom:updated>
            <content:encoded><![CDATA[<p>Why I still trust the vision, even if I don’t defend the man’s choices</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zpo1pPa79PHt82ClNFeS8A.png" /><figcaption>Illustration generated with AI</figcaption></figure><p>Over the past few weeks, my feed has been full of one topic: Jensen Huang&#39;s affairs. He resigned as Nvidia&#39;s CEO, then the board brought him back days later. Since then everyone has an opinion on what this means for him, for Nvidia and for the AI industry.</p><p>Here&#39;s mine. I think we&#39;re mixing up two very different questions.</p><h3>What actually happened</h3><p>Huang admitted he was unfaithful to his wife. One of the relationships was with Alice Huang, a former executive at Megaspeed, a Singapore-based Nvidia cloud partner. Reports say US intelligence officials suspected she was working on behalf of Chinese intelligence. The US Justice Department has said it hasn&#39;t reached a conclusion on that, and Singapore found no basis to prosecute her in its own investigation. Nvidia has said it has no reason to believe national security or company secrets were compromised.</p><p>So, based on what&#39;s public today, nobody has shown that he sold secrets or betrayed his country. If the suspicions about her turn out to be true, the story looks less like a CEO who betrayed his company and more like a powerful man who was targeted. That&#39;s a serious lapse in judgment, but being targeted isn&#39;t the same as being a traitor.</p><h3>Personal failure is not business failure</h3><p>I&#39;m not glorifying the affairs. They&#39;re wrong, and they hurt real people. But that&#39;s a problem for Jensen, his family and the people close to him to deal with.</p><p>If someone asked me, &quot;Can you trust Jensen Huang in a personal relationship?&quot; my honest answer would be no, not on this record. That&#39;s fair.</p><p>But that&#39;s not the question most of us are actually asking. The question is: can we trust his vision for Nvidia and for AI?</p><h3>The part I don&#39;t think we should ignore</h3><p>To be fair, there&#39;s one point where the personal and the professional do overlap. One of the reported relationships was with an executive who reported to him. That&#39;s a legitimate governance question, and the board is right to investigate it properly. Companies need clear rules on relationships with direct reports, and those rules should apply to the CEO first.</p><p>That&#39;s a reason for better oversight. I don&#39;t think it&#39;s a reason to rewrite the history of what he built.</p><h3>The vision speaks for itself</h3><p>Huang has led Nvidia since he co-founded it in 1993. He bet on GPUs for general computing long before AI was fashionable, built CUDA when few people saw the point, and positioned Nvidia at the centre of the AI boom we&#39;re all living through now. A lot of the progress engineers like me use every day runs on hardware and software his company made possible.</p><p>You can question his personal choices. It&#39;s much harder to question his vision.</p><h3>What the share price actually told us</h3><p>If investors really thought his private life was the problem, the stock would have moved most on the affair news. It didn&#39;t. It moved most on whether Jensen Huang would keep running Nvidia.</p><p>When he admitted the affair on November 8, shares dipped as the market braced for what might come next. The real shock came when he resigned on November 12: the stock fell as much as 14% that morning and hit its lowest price in a year. Over the weeks from his admission to his reinstatement, Nvidia lost nearly a third of its value.</p><p>Then, on November 23, the board brought him back. Nothing about the affairs had changed. The stock jumped 31.5% in a single day and added nearly $1 trillion in market value.</p><p>The affairs were the same on both days. The only thing that changed was who was leading the company. That tells you what the market was actually pricing in: his leadership, not his personal life.</p><h3>The people who build Nvidia voted too</h3><p>The market wasn&#39;t the only one sending a message. So were Nvidia&#39;s own engineers.</p><p>Days after Jensen stepped down, Darrell Dai, a senior robotics research engineer, announced he was leaving the company. &quot;Jensen&#39;s vision and the engineering culture he shaped were important reasons I wanted to stay,&quot; he wrote. His post got more than 100,000 likes. Around the same time, an internal letter to Nvidia&#39;s board warned that &quot;irreplaceable talent at Nvidia is now contemplating departing&quot; unless he was reinstated.</p><p>Then he came back. According to CNBC, employees on three floors cheered and chanted his name as he walked into headquarters, and cupcakes reading &quot;Jensen is back&quot; went around the office. Even Darrell Dai said he was open to returning.</p><p>Engineers don&#39;t throw their careers behind a CEO because of his personal life. They do it because they believe in where he&#39;s taking the company. The people closest to the work made it clear that, for them, Nvidia&#39;s direction and Jensen&#39;s vision are the same thing.</p><h3>My answer</h3><p>So if someone asks me whether they can trust Jensen Huang&#39;s vision, or whether Nvidia&#39;s future still looks strong with him at the helm, my answer is yes.</p><p>We should judge the person and the leader on separate merits: hold him accountable where his conduct affects the company, and leave the rest to the people it actually hurt.</p><p>That’s just my opinion. I’d like to hear where you draw the line.</p><p><em>This is a personal opinion, not investment advice.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9efc001e276" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Won’t Take Your Job. The Person Using AI Will.]]></title>
            <link>https://medium.com/@kajan746/ai-wont-take-your-job-the-person-using-ai-will-fe218572ba7c?source=rss-8eb2d4ebe49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe218572ba7c</guid>
            <category><![CDATA[agentic-workflow]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[future-of-work]]></category>
            <category><![CDATA[adopting-ai]]></category>
            <dc:creator><![CDATA[Kajavathanan Thadsanamoorthy]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 06:06:28 GMT</pubDate>
            <atom:updated>2026-11-02T06:06:28.187Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BmwpYLz_U7BD_GfJ37d-jg.jpeg" /></figure><p>Everyone is asking whether AI will take their job. It is an understandable question, and it is the wrong one.</p><p>Ask it in any office, studio, or engineering team and you will hear two loud camps. One says machines are coming for every role that involves a keyboard. The other says it is all autocomplete with good marketing. Both are arguing about the tool. Neither is describing what is actually happening: people who learn to work with AI are quietly pulling ahead of people who do not.</p><p>That gap is not about who types faster or who knows the cleverest prompt. It is about where each person spends their attention. This post is about that split, and about how to land on the right side of it without hype or panic.</p><h4>What AI already does well</h4><p>Credit where it is due: AI is genuinely good at a wide range of everyday work. It can draft a first version of almost anything, summarize a long document, translate between formats, clean up messy notes, generate boilerplate, suggest test cases, explain unfamiliar code, and offer a first-pass answer to a problem you can then check.</p><p>Notice what these tasks have in common. They are commodity work: well understood, easy to verify, and low in consequence if the first attempt is imperfect. A marketer gets a rough outline in seconds. An analyst gets a starting query. A developer gets scaffolding instead of a blank file. A manager gets a clean summary of a long thread.</p><p>If you are still doing all of that entirely by hand, you are not being more careful. You are spending your most valuable hours on the least valuable part of the job. That is not a moral failing, but it is a competitive risk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*uF7nYkoOfkIffyd5.gif" /></figure><h4>What breaks when you outsource judgment</h4><p>The trouble starts when people let AI make the decisions instead of the drafts. A model will happily produce something that looks confident, reads well, and quietly rests on a wrong assumption.</p><p>Three failure patterns show up again and again:</p><p>Plausible but wrong. Models are optimized to sound right. A summary can drop the one caveat that mattered. A calculation can be off in a way that only shows up at scale. A recommendation can ignore a constraint you never mentioned. The more fluent the output, the easier it is to skip the checking.</p><p>No stake in the outcome. AI does not feel the cost of being wrong. It will not be the one explaining a mistake to a customer, a regulator, or a teammate who inherited the mess. Accountability stays with people, whether or not they wrote the first draft.</p><p>Missing context. Most real decisions depend on things that are not in the prompt: the history of a project, an unspoken preference, a political reality, the incident from last quarter. A tool cannot weigh what it was never told, and people often forget how much they never wrote down.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*wZ6GQF3R4kIFgpjc" /></figure><p>None of this is an argument against using AI. It is an argument for being clear about which part of the job you are handing over: the typing or the thinking.</p><h4>The real split: amplify judgment or compete on easy tasks</h4><p>Here is the honest version of the debate. It is not humans versus AI. It is two groups of people.</p><p>The first group uses AI to compress the easy work, then reinvests the time in the things that need a human: framing the problem, weighing trade-offs, talking to the people affected, and owning the outcome. Their output goes up, and so does the quality of their decisions.</p><p>The second group competes with AI on tasks AI already wins. They hand-craft first drafts, hand-write boilerplate, and hand-assemble reports that a tool can produce in seconds, and they treat speed as a virtue in itself. They are not worse professionals. They are simply racing a machine on its home turf, and that is a race with a predictable ending.</p><p>Organizations notice this faster than individuals do. When one person ships twice as much considered work as the person next to them, the question stops being whether AI is good enough and starts being why one workflow changed and the other did not.</p><h4>How to work with AI day to day</h4><p>Think of AI as a fast, tireless, slightly overconfident junior colleague. You would not let that colleague make the final call on something important, but you would gladly let them do the legwork. In practice:</p><p>Use it to explore, not to decide. Ask for three approaches, a list of risks, or the strongest counterargument to your plan. Comparing options is cheap. Choosing between them is your job.</p><p>Use it to draft, then review it like someone else’s work. Read the output with the same suspicion you would give a new hire’s first attempt. Check names, numbers, and claims. Test it against messy, real-world cases, not just the tidy example.</p><p>Use it to learn faster. Ask it to explain an unfamiliar topic, list the usual pitfalls, or quiz you. Then verify the important parts against a primary source.</p><p>Use it for the boring documents. Meeting notes, status updates, checklists, and first-draft documentation all improve when a draft takes minutes instead of hours.</p><p>Protect what is sensitive. Passwords, personal data, and anything confidential should stay out of tools you do not control. Speed is never worth that trade.</p><p>Give it context. The quality of the output tracks the quality of what you provide: the goal, the audience, the constraints, and an example of good. Vague input produces confident mush.</p><h4>A simple operating model: when to use AI and when not to</h4><p>A rule of thumb that holds up well: the cheaper a mistake is to detect and undo, the more freely you should use AI. The more expensive or irreversible it is, the more human judgment you need.</p><p>Let AI lead on low-risk, easy-to-verify work: first drafts, formatting, summaries, brainstorming, routine code, and anything where you can check the result in a minute.</p><p>Let AI assist, with you firmly in charge, on medium-risk work: analysis that informs a decision, customer-facing content, anything that touches shared data or other people’s time. Review closely and keep a record of what you changed.</p><p>Keep humans in charge of high-risk work: decisions about people, money, safety, legal exposure, and anything that would be painful to reverse. AI can offer options and surface blind spots, but a named person signs off.</p><p>A useful test before you hit send: if this turns out to be wrong, who pays, and can it be undone? If the answer is uncomfortable, slow down.</p><h4>What stays human</h4><p>Strip away the tools and the part of the job that remains is the part that was always hardest. Judgment is knowing when the textbook answer is wrong for this team, this deadline, and this level of risk. Taste is knowing what good looks like and when something is merely adequate. Relationships are listening for what someone actually needs, building trust, and keeping people aligned when plans change. Ownership is being the person who answers when things go wrong.</p><p>Systems thinking sits underneath all of it: understanding how the pieces fit together, where they are fragile, and what a change here will break over there. People who understand systems get more from AI, not less, because they know what to ask, what to doubt, and what to leave alone.</p><p>None of that disappears when drafts get cheaper. If anything, it becomes the main event.</p><h4>Closing</h4><p>So it is not AI versus humans. It is people who use AI to amplify their judgment, and people who compete with AI on tasks AI already wins. The first group spends their time on decisions, relationships, and the problems that matter. The second group is racing a machine at something it does well.</p><p>You do not need to become an expert overnight. Pick one repetitive task this week, hand the first draft to a tool, and spend the time you saved on the part only you can do. Then do it again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*atazNL7KkEki1m4M.gif" /></figure><p>Which side are you on? And what is the one task you stopped doing by hand this year that you wish you had handed off sooner?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe218572ba7c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Welcome to the world of Vibe Coding]]></title>
            <link>https://medium.com/@kajan746/welcome-to-the-world-of-vibe-coding-aaa3c1d593f1?source=rss-8eb2d4ebe49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaa3c1d593f1</guid>
            <dc:creator><![CDATA[Kajavathanan Thadsanamoorthy]]></dc:creator>
            <pubDate>Fri, 26 Sep 2025 13:01:32 GMT</pubDate>
            <atom:updated>2025-09-26T13:01:32.765Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bDCZFI8Le_mEoDSvLfmI9w.png" /></figure><p>In today’s fast-paced digital world, coding has become more than just a technical skill — it’s a form of expression, creativity, and problem-solving. While traditional coding often emphasizes strict rules and logical precision, a new trend is emerging: <strong>Vibe Coding</strong>.</p><h3>What is Vibe Coding?</h3><p>Vibe Coding is not about following rigid instructions or building the next billion-dollar app. Instead, it’s about <em>coding for the flow</em>. It’s a mindset where you experiment, play with code, and enjoy the process rather than obsess over the outcome. Think of it as the artistic side of programming - where you write code to express ideas, create fun projects, or simply relax.</p><h3>Why Vibe Coding Matters</h3><p><strong>Encourages Creativity</strong>: Vibe Coding lets you approach technology like art. You can create music with code, generate abstract visuals, or build quirky mini-projects that reflect your personality.</p><p><strong>Reduces Pressure</strong>: Unlike professional coding environments where deadlines and performance dominate, Vibe Coding allows you to enjoy programming stress-free.</p><p><strong>Boosts Learning</strong>: Experimenting without fear of mistakes helps you learn faster and think more creatively.</p><p><strong>Community &amp; Fun</strong>: Many developers share their vibe projects online, inspiring others and creating a space where coding feels playful, not intimidating.</p><h3>How to Get Started with Vibe Coding</h3><ul><li><strong>Pick a Playground</strong> — Use platforms like Bolt.new, Lovable.dev or replit.com. These are beginner-friendly and perfect for quick experiments.</li><li><strong>Follow Your Curiosity</strong> — Want to make a bouncing ball game, a business website, or a generative song? Just try it out.</li><li><strong>Forget Perfection</strong> — Vibe Coding isn’t about polished apps; it’s about enjoying the act of creation.</li><li><strong>Share &amp; Inspire</strong> — Post your experiments on GitHub, CodePen, or social media. Someone out there might get inspired by your vibe.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1mbUToKR-IVsV83C5hpFOA.png" /></figure><h3>The Future of Vibe Coding</h3><p>As coding becomes part of everyday life, Vibe Coding opens the door for more people — not just engineers — to join the fun. It makes programming feel approachable, joyful, and deeply personal.</p><blockquote><strong>Note:</strong> Vibe Coding is intended as a creative and exploratory approach to programming. It should not be considered a structured path for those seeking to learn software engineering fundamentals or pursue a professional career in software development.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaa3c1d593f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ngrok: A Comprehensive Guide to Webhook Integration]]></title>
            <link>https://medium.com/@kajan746/ngrok-a-comprehensive-guide-to-webhook-integration-a1771cb9cc60?source=rss-8eb2d4ebe49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1771cb9cc60</guid>
            <dc:creator><![CDATA[Kajavathanan Thadsanamoorthy]]></dc:creator>
            <pubDate>Wed, 22 Nov 2023 14:03:46 GMT</pubDate>
            <atom:updated>2023-11-22T14:03:46.707Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*yyRGRBHIsXRHw_8LfL8CAA.png" /></figure><p>Webhook integration is a crucial aspect of modern web development, allowing applications to communicate seamlessly in real-time. Ngrok, a powerful tool, plays a pivotal role in simplifying the process of exposing local servers to the internet securely. In this article, we will explore the fundamentals of webhooks, the challenges they present, and how Ngrok addresses these challenges to streamline the development and testing of webhook-enabled applications.</p><h3>Understanding Webhooks</h3><p>Webhooks are mechanisms that enable one application to send real-time data to another when a specific event occurs. This asynchronous communication is vital for scenarios where instant updates or responses are required, such as in messaging apps, payment gateways, and other collaborative platforms.</p><p>Webhooks operate on a simple principle: when an event occurs in the source application, it sends an HTTP POST request to a predefined URL in the destination application. This URL is often referred to as the “callback URL” or “endpoint.” The destination application, in turn, processes the incoming data and takes appropriate actions.</p><h3>Challenges in Webhook Development</h3><p>While the concept of webhooks is straightforward, their implementation poses certain challenges, particularly during development and testing stages. One significant hurdle is exposing a local server to the internet, allowing external services to send requests to the webhook endpoint. This is where Ngrok proves to be an invaluable tool.</p><h3>Introduction to Ngrok</h3><p>Ngrok is a multi-platform tunnelling tool that creates secure tunnels to localhost, making local servers accessible from the internet. It simplifies the process of exposing local services, such as web servers, to external networks, enabling developers to test and interact with webhooks in a real-world environment.</p><h3>Key Features of Ngrok:</h3><ol><li><strong>Secure Tunnelling:</strong> Ngrok establishes secure tunnels using HTTPS, ensuring that data transferred between the local server and external services is encrypted.</li><li><strong>Port Forwarding:</strong> It allows developers to expose specific local ports, redirecting incoming requests to the corresponding services.</li><li><strong>Public URLs:</strong> Ngrok generates public URLs for the exposed local servers, eliminating the need for a public IP address or domain name.</li><li><strong>Inspection and Replay:</strong> Ngrok provides a web-based interface that allows developers to inspect HTTP traffic and replay requests. This is particularly useful for debugging and analyzing webhook payloads.</li><li><strong>Authentication and Access Control:</strong> Ngrok allows developers to add authentication to their tunnels, ensuring that only authorized users can access the exposed services.</li><li><strong>Custom Subdomains:</strong> Ngrok provides the option to use custom subdomains for the public URLs, adding flexibility to the testing environment.</li></ol><h3>Getting Started with Ngrok</h3><h4><strong>1. Installation:</strong></h4><p>To get started with Ngrok, you need to download and install the Ngrok client on your local machine. The official website (<a href="https://ngrok.com/">https://ngrok.com/</a>) provides executable files for various operating systems.</p><h4>2. Account Setup:</h4><p>While Ngrok is available for free, creating an account on the Ngrok website provides additional features such as custom subdomains, reserved domains, and access to the Ngrok dashboard.</p><h4>3. Authentication:</h4><p>To authenticate the Ngrok client with your account, you can use the provided authentication token. This token is available in your Ngrok account dashboard.</p><h4>4. Exposing a Local Server:</h4><p>Once installed and authenticated, exposing a local server is as simple as running a command in the terminal or command prompt. For example:</p><pre>ngrok http 3000</pre><p>This command exposes the local server running on port 3000 to the internet. Ngrok generates a public URL (e.g., https://random-subdomain.ngrok.io) that can be used as the webhook endpoint.</p><p>If you have multiple projects in your localhost, configure your virtualhost and run the following command to setup the random domain to your specific project.</p><pre>ngrok http --host-header=projectabc.kj 80 </pre><p>The above command exposes the local server (projectabc.kj) running on port 80 to the internet.</p><h3>Ngrok in Action: Webhook Integration</h3><p>Let’s walk through a scenario where Ngrok facilitates the development and testing of a webhook-integrated application.</p><h4>Scenario: Building a Chat Application</h4><p>Imagine you’re developing a chat application that uses webhooks to notify users about new messages. During development, you need to test the webhook functionality, and Ngrok makes this process seamless.</p><p><strong>Step 1: Set Up a Local Server</strong></p><p>Start by setting up a local server that simulates the chat application. For example, you might have a server running on <a href="http://localhost:3000.">http://localhost:3000.</a></p><p><strong>Step 2: Expose the Local Server with Ngrok</strong></p><p>Run the Ngrok command to expose the local server to the internet:</p><pre>ngrok http 3000</pre><p>Ngrok generates a public URL (e.g., https://random-subdomain.ngrok.io) that forwards requests to your local server.</p><p><strong>Step 3: Configure the Webhook Endpoint</strong></p><p>In your chat application, configure the webhook to use the Ngrok-generated URL (https://random-subdomain.ngrok.io/webhook). This endpoint will receive notifications about new messages.</p><p><strong>Step 4: Test the Webhook</strong></p><p>Send a test message in your chat application. Ngrok forwards the webhook payload to your local server, allowing you to see how the application handles incoming webhook requests.</p><p><strong>Step 5: Debugging with Ngrok</strong></p><p>Use Ngrok’s web interface to inspect the incoming HTTP traffic. This is particularly helpful for debugging and understanding the structure of webhook payloads.</p><h3>Advanced Ngrok Features</h3><p>Beyond the basics, Ngrok offers several advanced features that enhance its utility in webhook development.</p><h4>1. Reserved Domains:</h4><p>Ngrok allows you to reserve a custom subdomain, providing a consistent and easily memorable URL for your exposed services.</p><pre>ngrok http -subdomain=your-subdomain 3000</pre><h4>2. Web Interface:</h4><p>Ngrok provides a web-based interface (http://localhost:4040) that displays information about the active tunnels, incoming requests, and allows for request replay.</p><h4>3. Authtokens:</h4><p>Manage authentication tokens securely by using the authtoken command. This allows for more convenient and secure authentication without entering the token for every tunnel.</p><pre>ngrok authtoken your-auth-token</pre><h4>4. TCP Tunnels:</h4><p>Ngrok supports TCP tunnels, enabling the exposure of non-HTTP services such as databases or custom protocols.</p><pre>ngrok tcp 3306</pre><h3>Best Practices and Considerations</h3><ol><li><strong>Security:</strong></li></ol><ul><li>Always use HTTPS to ensure secure communication between the local server and external services.</li><li>Keep Ngrok authentication tokens secure, and avoid sharing them publicly.</li></ul><p>2. <strong>Environment Configuration:</strong></p><ul><li>Utilize environment variables to configure webhook endpoints dynamically based on the environment (development, testing, production).</li></ul><p>3. <strong>Ngrok Configuration Files:</strong></p><ul><li>Ngrok supports configuration files that allow you to specify settings such as authtokens, tunnels, and logging options. This is particularly useful for managing complex projects.</li></ul><p>4. <strong>Integration Testing:</strong></p><ul><li>Incorporate Ngrok into your continuous integration (CI) pipeline to automate webhook integration testing.</li></ul><h3>Conclusion</h3><p>Ngrok serves as a powerful and versatile tool for simplifying webhook development and testing. Its ability to create secure tunnels, generate public URLs, and provide advanced features makes it an invaluable asset for developers working on applications that rely on real-time communication.</p><p>By incorporating Ngrok into your development workflow, you can streamline the process of exposing local servers, testing webhooks, and debugging applications. Whether you’re building a chat application, payment gateway, or any other webhook-enabled service, Ngrok empowers you to iterate rapidly and ensure the seamless functioning of your real-time communication features.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1771cb9cc60" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Standard practices in PHP development]]></title>
            <link>https://medium.com/@kajan746/standard-practices-in-php-development-6c6a455720f7?source=rss-8eb2d4ebe49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c6a455720f7</guid>
            <dc:creator><![CDATA[Kajavathanan Thadsanamoorthy]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 15:28:44 GMT</pubDate>
            <atom:updated>2023-02-19T15:28:44.876Z</atom:updated>
            <content:encoded><![CDATA[<p>PHP (Hypertext Preprocessor) is a widely used scripting language for web development. It is an open-source language that can be embedded into HTML and used to create dynamic web pages. PHP has become one of the most popular languages for web development due to its versatility, ease of use, and robustness. In this article, we will discuss some standard practices in PHP development that can help developers build scalable and maintainable applications.</p><ol><li><strong>Follow a Standard Naming Convention</strong></li></ol><p>A standard naming convention is essential for writing readable and maintainable code. In PHP development, it is common to follow the PSR (PHP Standard Recommendation) guidelines. These guidelines define standards for coding styles, namespaces, and autoloading. By following a standard naming convention, you can make your code more readable and easier to maintain.</p><p>2. <strong>Use a Code Editor or IDE</strong></p><p>A good code editor or IDE (Integrated Development Environment) can make your development process much more efficient. Code editors and IDEs provide helpful features like syntax highlighting, code completion, and debugging tools. Popular code editors and IDEs for PHP development include Visual Studio Code, PhpStorm, and Sublime Text.</p><p>3. <strong>Use a Version Control System</strong></p><p>Version control systems like Git or SVN are essential for managing code changes and collaborating with other developers. By using a version control system, you can track changes to your code, revert to previous versions, and collaborate with other developers. Version control systems can also help you avoid conflicts when merging code changes.</p><p>4. <strong>Use Prepared Statements</strong></p><p>SQL injection attacks are a common security vulnerability in web applications. Prepared statements can help prevent SQL injection attacks by separating SQL commands from user input. Prepared statements are a type of parameterized query that can be used with most database systems. By using prepared statements, you can improve the security of your PHP applications.</p><p>5. <strong>Use OOP Principles</strong></p><p>Object-Oriented Programming (OOP) principles can help you write more modular, reusable, and maintainable code. OOP principles encourage the use of objects, classes, and inheritance to organize code and reduce redundancy. By using OOP principles, you can write more efficient and scalable PHP applications.</p><p>6. <strong>Use Frameworks and Libraries</strong></p><p>PHP frameworks and libraries can help you write code more efficiently by providing pre-built functionality and tools. Popular PHP frameworks include Laravel, Symfony, and CodeIgniter. These frameworks provide tools for routing, database management, and templating. By using frameworks and libraries, you can save time and focus on writing custom code for your application.</p><p>7. <strong>Use Debugging Tools</strong></p><p>Debugging PHP code can be challenging, especially when dealing with complex applications. Debugging tools like Xdebug and PHPStorm can help you identify and fix errors in your code. These tools provide features like step-by-step debugging, variable inspection, and error tracing. By using debugging tools, you can save time and improve the quality of your PHP applications.</p><p><strong>Conclusion</strong></p><p>PHP is a versatile language for web development, but writing scalable and maintainable PHP applications requires following best practices. By using a standard naming convention, a code editor or IDE, a version control system, prepared statements, OOP principles, frameworks and libraries, and debugging tools, you can write efficient and scalable PHP applications. By following these practices, you can also improve the security and quality of your PHP applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c6a455720f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why ChatGPT is the talk of the town?]]></title>
            <link>https://medium.com/@kajan746/why-chatgpt-is-the-talk-of-the-town-a0d495f6c773?source=rss-8eb2d4ebe49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0d495f6c773</guid>
            <dc:creator><![CDATA[Kajavathanan Thadsanamoorthy]]></dc:creator>
            <pubDate>Wed, 18 Jan 2023 05:20:08 GMT</pubDate>
            <atom:updated>2023-01-18T05:20:08.740Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8eswHphFS3pHGDP8Vj1Mtw.png" /></figure><p>ChatGPT, developed by OpenAI, is a state-of-the-art language model that has gained significant attention in the AI community. There are several reasons why ChatGPT has become the talk of the town:</p><ol><li>Capabilities: ChatGPT is capable of understanding and responding to human language in a natural and conversational manner. It can answer questions, generate text, and even engage in conversation. This makes it a powerful tool for a wide range of applications, such as chatbots, language translation, and content generation.</li><li>Performance: ChatGPT has demonstrated impressive performance on a variety of language tasks. It has set new state-of-the-art benchmarks on several benchmark datasets and has been trained on a massive amount of data. This allows it to generate human-like text that is often indistinguishable from text written by a human.</li><li>Flexibility: ChatGPT is highly flexible and can be fine-tuned for specific tasks and industries. This means that it can be adapted to different domains and can be used for various applications such as customer service, content generation for social media, and language translation.</li><li>Open-source: ChatGPT is open-source, meaning that it is freely available for anyone to use and adapt. This has led to a thriving community of developers and researchers who are working on new applications and ways to improve the model.</li></ol><p>In conclusion, ChatGPT is a powerful language model that has gained attention for its capabilities, performance, flexibility, and open-source nature. Its ability to understand and respond to human language in a natural and conversational manner makes it a valuable tool for a wide range of applications. As AI continues to evolve, it is likely that ChatGPT will continue to play a significant role in the development of new and innovative technologies.</p><p>Note: This article is generated by ChatGPT. And the robot image is generated by another AI tool.</p><p><strong>Welcome to the world of AI</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZZ603MYV9X7VvP29K3hCxQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0d495f6c773" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to upgrade the Laravel version from 6.x to 9.x?]]></title>
            <link>https://medium.com/@kajan746/how-to-upgrade-the-laravel-version-from-6-x-to-9-x-4e711b1cf8f3?source=rss-8eb2d4ebe49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e711b1cf8f3</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[upgrading]]></category>
            <category><![CDATA[laravel-development]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Kajavathanan Thadsanamoorthy]]></dc:creator>
            <pubDate>Wed, 30 Nov 2022 07:10:37 GMT</pubDate>
            <atom:updated>2022-11-30T07:10:37.535Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_dzqx-pHyS9QBsrVva0UUw.png" /></figure><p>Building a product is fun, but when it comes to upgrading, it&#39;s everyone’s nightmare.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/625/1*IOkE_ZyrP99YnRi8QELhdw.jpeg" /></figure><p>Every company has its own favorite projects that were built in its earlier days. So it&#39;s extremely difficult to throw because there are so many stories, such as sleepless nights and emotions, attached to those projects. Now we can consider that as a Legacy Code.</p><h3>Can we upgrade directly from Version 6 to 9?</h3><p>The answer is <strong>NO</strong>. I initially tried to upgrade it directly. But it didn’t work. It was generating so many errors. After updating the dependencies also it didn’t work. So I decided not to do that.</p><pre>Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 255</pre><h3>So How to upgrade the version?</h3><p>We need to upgrade its version by version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*T3uy3YFdtfBLE5HD2cy9yg.gif" /></figure><h3><strong>Let&#39;s begin</strong></h3><h4>Version 6 to 7.x</h4><p>To upgrade it to Laravel version 7, the minimum PHP version you must have is <strong>7.2.5.</strong></p><p>Then you have to update the package versions in the <strong><em>composer.json</em></strong></p><pre>laravel/framework      -&gt; ^7.0<br>nunomaduro/collision   -&gt; ^4.1<br>phpunit/phpunit        -&gt; ^8.5<br>laravel/tinker         -&gt; ^2.5<br>facade/ignition        -&gt; ^2.0</pre><p>Now we need to change the <strong><em>App\Exceptions\Handler.php. </em></strong>Now Handler.php does not support <strong><em>Exception</em></strong>. So instead of that replace <strong>Throwable</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*gohieljJQzfW50RWJ80HmA.png" /></figure><p>After that, we need to make a change in the <strong><em>Config/session.php</em></strong>. Earlier we were passing <strong><em>false </em></strong>as a default value to the environment variable. Now we need to change it to <strong><em>null</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*A-EDV807aDcIpu0usdKEnA.png" /></figure><p>Another change that we need to make it in the command files. Commands should return only <strong><em>integers </em></strong>hereafter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*hOJUxfw9NxxRonFXeMAx8Q.png" /></figure><p>Those are the basic changes that you need to do. Now run the following command. And check the current Laravel version.</p><pre>composer update</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*ouHeicpscX04aC996-sB_w.png" /></figure><p>If it is not upgrade to version <strong><em>7.x</em></strong>, check <a href="https://laravel.com/docs/7.x/upgrade">Laravel documentation</a> for further changes.</p><h4>Version 7.x to 8.x</h4><p>To upgrade it to Laravel version 8, the minimum PHP version you must have is <strong>7.3.0.</strong></p><p>Then you have to update the package versions in the <strong><em>composer.json</em></strong></p><pre>guzzlehttp/guzzle     -&gt; ^7.0.1<br>facade/ignition       -&gt; ^2.3.6<br>laravel/framework     -&gt; ^8.0<br>laravel/ui            -&gt; ^3.0<br>nunomaduro/collision  -&gt; ^5.0<br>phpunit/phpunit       -&gt; ^9.0<br><br>If you are using following optional packages, update them too<br><br>Horizon               -&gt; ^5.0<br>Passport              -&gt; ^10.0<br>Socialite             -&gt; ^5.0<br>Telescope             -&gt; ^4.0</pre><p>Then you need to do a change in the database seeders. Earlier we never had a namespace for database seeders. But from Laravel version 8.x we have to include the namespace for the seeders. Also, we need to rename the seeder folder name from seeds to seeders.</p><pre>So the folder structure would be,<br><br>database/seeds     -&gt;  database/seeders</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/415/1*HGutJVgPg6hkFoDEaZTymQ.png" /></figure><blockquote>After renaming the folder, we need to update the composer.json as well. Also remove the <strong><em>classmap</em></strong> block from the composer.json.</blockquote><pre>&quot;autoload&quot;: {<br>    &quot;psr-4&quot;: {<br>        &quot;App\\&quot;: &quot;app/&quot;,<br>        &quot;Database\\Factories\\&quot;: &quot;database/factories/&quot;,<br>        &quot;Database\\Seeders\\&quot;: &quot;database/seeders/&quot;<br>    }<br>}</pre><p>Laravel version 8 introduced another change in the Routing. In the older versions, we have the namespace mentioned in the RouteServiceProvider with a value of Controller path. This is used to declare the routes. From version 8 they made it null. So we have to set that manually. Else we need to mention the controller path on the route page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*qxJbM3qc2o8dJuQye8pIzQ.png" /><figcaption>Old namespace</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*tsOntvYJ5_TT2N-7vX43Ww.png" /></figure><p>In the routes, you can import the class at the top and use the controller name in the route or you need to mention the full path of the controller.</p><p>Now it&#39;s time to do the composer update. After running the composer update, check the laravel version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*5Y_9YyiRYMT5RtFTa0cmIA.png" /></figure><p>If it is not upgraded to version 8<strong><em>.x</em></strong>, check <a href="https://laravel.com/docs/7.x/upgrade">Laravel documentation</a> for further changes.</p><h4>Version 8.x to 9.x</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*bJdFG89yy4IbPhyRZ1kxMA.gif" /></figure><p>To upgrade it to Laravel version 9, the minimum PHP version you must have is <strong>8.0.2.</strong></p><blockquote><strong>If you want to manage 2 different PHP versions in your windows machine use </strong><a href="https://laragon.org/"><strong>Laragon</strong></a></blockquote><p>Then you have to update the package versions in the <strong><em>composer.json</em></strong></p><pre>laravel/framework          -&gt; ^9.0<br>nunomaduro/collision       -&gt; ^6.1<br>firebase/php-jwt           -&gt; ^6.3<br>kreait/laravel-firebase    -&gt; ^4.2<br>league/flysystem-aws-s3-v3 -&gt; ^3.0<br>league/flysystem-ftp       -&gt; ^3.0<br>league/flysystem-sftp-v3   -&gt; ^3.0</pre><p>Also, replace the following package in the <strong><em>composer.json</em></strong>.</p><pre>facade/ignition             -&gt; &quot;spatie/laravel-ignition&quot;: &quot;^1.0&quot;<br>pusher/pusher-php-server    -&gt; &quot;pusher/pusher-php-server&quot;: &quot;^5.0&quot;</pre><p>If you are using Postgres you have to do a schema modification. The schema configuration option used to configure Postgres connection search paths in your application&#39;s config/database.php the configuration file should be renamed to search_path.</p><p>The nice functionality arrives with Laravel 9.</p><p>The firstOrNew, firstOrCreate, and updateOrCreate methods of the belongsToMany relationship now all take an array of attributes as their first parameter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/1*SMiauQLYqAUjCFOiiago8w.png" /></figure><p>If you are using FILESYSTEM_DRIVER in the .env file, change it to FILESYSTEM_DISK.</p><p>Another important change in version 9 is <strong>Trusted Proxies. Which is located in </strong>app/Http/Middleware/TrustProxies.php</p><p>You need to change the imported library path.</p><pre>use Fideloper\Proxy\TrustProxies as Middleware <strong>-&gt;</strong> use Illuminate\Http\Middleware\TrustProxies as Middleware</pre><p>And you need to change the headers in the same file.</p><pre>// Before...<br>protected $headers = Request::HEADER_X_FORWARDED_ALL;<br> <br>// After...<br>protected $headers =<br>    Request::HEADER_X_FORWARDED_FOR |<br>    Request::HEADER_X_FORWARDED_HOST |<br>    Request::HEADER_X_FORWARDED_PORT |<br>    Request::HEADER_X_FORWARDED_PROTO |<br>    Request::HEADER_X_FORWARDED_AWS_ELB;</pre><p>If you are using firebase include following extensions in your <strong><em>php.ini</em></strong>.</p><pre>extension=sodium<br>extension=php_grpc.dll</pre><p>Change the PHP version to 8 and run composer update.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/868/1*kbLI_V9NYCFt1yRKh05n4A.png" /></figure><p>If it is not upgraded to version 9<strong><em>.x</em></strong>, check <a href="https://laravel.com/docs/9.x/upgrade">Laravel documentation</a> for further changes.</p><p>Yeyyyyyyyyyy!!!!! It&#39;s done!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*U2FLigd3eOcEpLMenF9i7w.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e711b1cf8f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to run Laravel commands in cPanel?]]></title>
            <link>https://medium.com/@kajan746/how-to-run-laravel-commands-in-cpanel-7ded6f87fc5a?source=rss-8eb2d4ebe49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ded6f87fc5a</guid>
            <category><![CDATA[artisan]]></category>
            <category><![CDATA[commands]]></category>
            <category><![CDATA[cpanel]]></category>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Kajavathanan Thadsanamoorthy]]></dc:creator>
            <pubDate>Sun, 15 Mar 2020 16:54:51 GMT</pubDate>
            <atom:updated>2020-03-15T16:54:51.662Z</atom:updated>
            <content:encoded><![CDATA[<p>When you run the Laravel project in AWS or Google cloud, Artisan will handle commands. But in cPanel it will not happen. We need to handle it manually using cron.</p><p>I’ll show you a practical example of commands.</p><p>The following function is to send notifications to members every day at 5 am. So, as usual, I wrote a command for that. But it will not run automatically in cPanel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*7GpXsO1OPFij0RfYeVuSbw.png" /></figure><p>Let&#39;s run it then!</p><p>Go to <strong>cPanel -&gt; ADVANCED -&gt;Cron Jobs. </strong>Then you will see the following form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*bG0NqCKEsmaMXbW5G8qU5w.png" /></figure><p>In that form, you need to mention when to run a command and what to run. You can add custom values or you can select one of the options from the <strong>Common Settings </strong>drop-down list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*EiwLNoY5jkKoB-ehQfKwcA.png" /></figure><p>In my command, I mentioned that I need to run my command every day at 5 am. So I can add values according to that, But I am going to run the scheduler every minute. Because I might write some other commands to run at different times. So the scheduler should be active all the time.</p><p>So in the command field add the following command. My domain name is abc.com. Replace it with your domain.</p><blockquote>php -d register_argc_argv=On /home/abc/abc.com/artisan schedule:run &gt; /dev/null 2&gt;&amp;1</blockquote><p>You should mention the path from the home folder to your project folder. <strong>NOT TO PUBLIC FOLDER.</strong></p><p>Hmm... That’s it.</p><p>Yeeeeyyyyy… You did it!</p><p><strong><em>Have a great day!</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ded6f87fc5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to host Laravel project on cPanel]]></title>
            <link>https://medium.com/@kajan746/how-to-host-laravel-project-on-cpanel-83389d6d31e6?source=rss-8eb2d4ebe49f------2</link>
            <guid isPermaLink="false">https://medium.com/p/83389d6d31e6</guid>
            <category><![CDATA[php]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cpanel]]></category>
            <category><![CDATA[hosting]]></category>
            <category><![CDATA[laravel]]></category>
            <dc:creator><![CDATA[Kajavathanan Thadsanamoorthy]]></dc:creator>
            <pubDate>Tue, 05 Nov 2019 12:54:52 GMT</pubDate>
            <atom:updated>2019-11-05T12:54:52.400Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*Db17wfu9oGzyOIjEzGNaJA.jpeg" /></figure><p>Laravel is the fastest-growing PHP framework. Its mainly used to build scalable web applications. So most of the developers are using AWS to host Laravel applications. Because it&#39;s very easy to pull the code from Git, also can run artisan commands in the terminal. That&#39;s why AWS (EC2) is the favorite hosting provider for most of the developers. But still, some of the companies or developers are using cPanel to host their web applications.</p><blockquote>How hard is that?</blockquote><p><strong>Let&#39;s compare 3 basic tasks that we frequently execute in Laravel</strong></p><ol><li><strong>Uploading Laravel project to the server</strong></li></ol><p>AWS : <em>git clone git@gitlab.com:abc/pqr.git</em> &lt;- It will do the job</p><p>cPanel: Compress your folder and upload it to cPanel-&gt; File manager -&gt; &lt;Your project folder&gt;</p><p><strong>2. Updating your code</strong></p><p>AWS: <em>git pull — — rebase origin develop</em></p><p>cPanel : Copy individual files and upload to the location</p><p><strong>3. Database related operations</strong></p><p>AWS: run artisan commands. Such as <em>php artisan migrate </em>or <em>php artisan db:seed</em></p><p>cPanel: Get a SQL data dump and import it into your database</p><h3>Anyways I’ll get into the topic</h3><h4>Database configurations</h4><ol><li>Go to MySQL Databases in the cPanel home page</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7MJ2g4pWM-d2uBYUDFOEuw.png" /><figcaption>Go to MySQL Databases</figcaption></figure><p>2. Create a new Database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*Cwg0GaWpGmG-jN0y-SwF7A.png" /><figcaption>Create a database</figcaption></figure><p>3. Then create a DB user</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*YFz5RfbvWS-UyPTnjV7oTA.png" /><figcaption>Create a new user</figcaption></figure><p>4. Assign the created user to the newly created database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*o2vN4CwkfuU6a14r2rFgjQ.png" /><figcaption>Assign the user to the database</figcaption></figure><p>5. Now Go to phpMyadmin and import your database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HeGk-Z7OoJlM5iqXdfMpTQ.png" /><figcaption>phpMyAdmin</figcaption></figure><h3>Project Configurations</h3><p>Please follow the steps to host your Laravel project</p><ol><li>Compress your Laravel project</li><li>Go to your cPanel -&gt;File manager</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TgAkJZhPUNVkAzbRIvZE0Q.png" /><figcaption>File manager</figcaption></figure><p>3. Then upload your Laravel project folder and unzip it. Go into your project folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cFENc2zAT2FDYk9-S5cXEg.png" /><figcaption>Your extracted project folder will be like this</figcaption></figure><p>4. Now you need to move your public folder contents into the <strong>public_html</strong> folder. So go back one step. Then you can see the public_html folder. We are doing this because, when someone accesses our website it will check the index.php file in the <strong>public_html</strong> folder. In Laravel public folder contains an index.php file. That&#39;s why we moved the contents.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c5IvK1M5IyADigdnIXv53Q.png" /><figcaption>public_html location</figcaption></figure><p>5. Now we need to modify the index.php file.</p><p>Index.php file usually accesses the vendor folder and bootstrap folder from public folder. Now we moved the public folder into the public_html folder. So now we need to change the paths for vendor folder and bootstrap folder.</p><blockquote>Before</blockquote><p>require __DIR__.’/../vendor/autoload.php’;</p><p>$app = require_once __DIR__.’/../bootstrap/app.php’;</p><blockquote>After</blockquote><p>require __DIR__.’/../&lt;your project folder&gt;/vendor/autoload.php’;</p><p>$app = require_once __DIR__.’/../&lt;your project folder&gt;/bootstrap/app.php’;</p><p>6. Now you need to modify your .env file with new credentials and configurations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*JvZoLbiIw8CigvAAMdy_PQ.png" /></figure><p>You must change the marked configurations from the .env file</p><blockquote>After</blockquote><p>APP_NAME=“<strong>My new project</strong>”<br>APP_ENV=<strong>production</strong><br>APP_KEY=&lt;<strong>your app key</strong>&gt;<br>APP_DEBUG=<strong>false</strong><br>APP_LOG_LEVEL=debug<br>APP_URL= <strong>http://example.com</strong></p><p>DB_CONNECTION=mysql<br>DB_HOST=127.0.0.1<br>DB_PORT=&lt;<strong>port</strong>&gt;<br>DB_DATABASE=<strong>test_sampledb</strong><br>DB_USERNAME=<strong>test_myuser</strong><br>DB_PASSWORD=534@4524U&amp;l;3J$9rj2</p><h3>Yayyyy!!! You did it!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*psd0M9AVuz1Q_O419VBaXw.gif" /></figure><p><strong>Have a good day!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83389d6d31e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>