<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: joukhar</title>
    <description>The latest articles on DEV Community by joukhar (@joukhar).</description>
    <link>https://dev.to/joukhar</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F925819%2Fe6083ee5-8d26-4fbd-bc40-743e0b6d445b.jpeg</url>
      <title>DEV Community: joukhar</title>
      <link>https://dev.to/joukhar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joukhar"/>
    <language>en</language>
    <item>
      <title>Must-Try Canva Apps for Creators in 2025</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Fri, 29 Nov 2024 21:50:22 +0000</pubDate>
      <link>https://dev.to/joukhar/must-try-canva-apps-for-creators-in-2025-395f</link>
      <guid>https://dev.to/joukhar/must-try-canva-apps-for-creators-in-2025-395f</guid>
      <description>&lt;p&gt;Are you a creator or developer who uses Canva? If so, you're in for a treat. Canva apps have made it easier than ever to produce stunning visuals. Here’s a roundup of the best Canva apps for 2025, including some tailored for developers!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Canva Apps?&lt;/strong&gt;&lt;br&gt;
Canva apps provide specific tools that save time and expand your creative potential. Whether it’s extracting video frames or turning code into stunning visuals, there’s an app for everything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Top Canva Apps for 2025&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;All Free Icons : Import and use any free icon from popular libraries like: fontawesome, mui and more...&lt;/li&gt;
&lt;li&gt;Video Frames: Extract crystal-clear still frames from any video.&lt;/li&gt;
&lt;li&gt;Avatar Generator: Build personalized avatars effortlessly.&lt;/li&gt;
&lt;li&gt;Code to Image: Transform code into shareable visuals with syntax highlighting.&lt;/li&gt;
&lt;li&gt;YouTube Thumbnail Downloader: Edit YouTube thumbnails directly in Canva.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Dev-Friendly Features&lt;/strong&gt;&lt;br&gt;
For developers, the Code to Image app is a game-changer. Showcase your work with polished code visuals, perfect for blogs, portfolios, or social media.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How to Install&lt;/strong&gt;&lt;br&gt;
Find these apps in the Canva App Marketplace. Installation is a breeze, and they integrate directly into the Canva editor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pro Tip:&lt;/strong&gt; Combine apps like Video Frames and Code to Image for a workflow that’s both efficient and creative.&lt;/p&gt;

</description>
      <category>design</category>
      <category>ui</category>
    </item>
    <item>
      <title>🚀 Exciting News for Aspiring Developers! 🚀</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Fri, 22 Sep 2023 16:23:07 +0000</pubDate>
      <link>https://dev.to/joukhar/exciting-news-for-aspiring-developers-385d</link>
      <guid>https://dev.to/joukhar/exciting-news-for-aspiring-developers-385d</guid>
      <description>&lt;p&gt;Are you eager to embark on your coding journey but wondering where to start? 🤔 Look no further! 🌟&lt;/p&gt;

&lt;p&gt;📚 Introducing: "Should I Learn Python Before Mojo?" 📚&lt;/p&gt;

&lt;p&gt;🌐 Explore the debate at BuiltByBuilder.com 🌐&lt;/p&gt;

&lt;p&gt;👉 Are you confused about the best way to kickstart your coding adventure?&lt;br&gt;
👉 Wondering if Python is the perfect foundation for mastering Mojo?&lt;br&gt;
👉 Seeking expert insights to make an informed choice?&lt;/p&gt;

&lt;p&gt;Look no further! Our latest blog post tackles this dilemma head-on, offering you a clear roadmap to success. 🛤️&lt;/p&gt;

&lt;p&gt;🧠 Here's what you'll gain:&lt;br&gt;
✅ Expert advice from seasoned developers&lt;br&gt;
✅ Insights into Python's role in your coding journey&lt;br&gt;
✅ Clarity on whether to learn Python before diving into Mojo&lt;/p&gt;

&lt;p&gt;📌 Don't miss this golden opportunity to set your coding path straight! 📌&lt;/p&gt;

&lt;p&gt;💥 Visit BuiltByBuilder.com now and empower yourself with knowledge! 💥&lt;/p&gt;

&lt;p&gt;🔗 Click here to read the full article: &lt;a href="https://www.builtbybuilder.com/blog/learn-python-before-mojo"&gt;builtbybuilder.com/blog/learn-python-before-mojo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🚀 Don't let uncertainty hold you back. Start your coding journey with confidence today! 🚀&lt;/p&gt;

&lt;h1&gt;
  
  
  BuiltByBuilder #CodingJourney #Python #Mojo #LearnToCode #ProgrammingTips #EmpowerYourself #DeveloperLife
&lt;/h1&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
      <category>mojo</category>
    </item>
    <item>
      <title>🚀 Transform Your Web Apps: Migrate from Node.js to Bun.js with Ease! 🚀</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Sun, 17 Sep 2023 14:38:06 +0000</pubDate>
      <link>https://dev.to/joukhar/transform-your-web-apps-migrate-from-nodejs-to-bunjs-with-ease-hjf</link>
      <guid>https://dev.to/joukhar/transform-your-web-apps-migrate-from-nodejs-to-bunjs-with-ease-hjf</guid>
      <description>&lt;p&gt;🚀 **** 🚀&lt;/p&gt;

&lt;p&gt;👉 Are you ready to take your web development to the next level? Learn how to seamlessly transition from Node.js to Bun.js with our comprehensive step-by-step guide!&lt;/p&gt;

&lt;p&gt;🔥 Unleash the full potential of your applications with Bun.js:&lt;br&gt;
✅ Enhanced Performance&lt;br&gt;
✅ Improved Scalability&lt;br&gt;
✅ Simplified Package Management&lt;/p&gt;

&lt;p&gt;📚 Dive deep into the world of Bun.js with our expert insights. Discover the future of web development and stay ahead in the game.&lt;/p&gt;

&lt;p&gt;🌐 Don't miss this opportunity to boost your skills and upgrade your projects! Read the full article now.&lt;/p&gt;

&lt;p&gt;👉 Read more: &lt;a href="https://www.builtbybuilder.com/blog/migrate-nodejs-to-bunjs-guide"&gt;builtbybuilder.com/blog/migrate-nodejs-to-bunjs-guide&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  NodejsToBunjs #WebDevelopment #TechnologyUpgrade #BunjsMigration #ExpertInsights
&lt;/h1&gt;

</description>
      <category>nodejstobunjs</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
    <item>
      <title>🚀 Introducing Bun.js: A Modern JavaScript Runner! 🚀</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Thu, 14 Sep 2023 17:06:24 +0000</pubDate>
      <link>https://dev.to/joukhar/introducing-bunjs-a-modern-javascript-runner-1772</link>
      <guid>https://dev.to/joukhar/introducing-bunjs-a-modern-javascript-runner-1772</guid>
      <description>&lt;p&gt;Are you ready to supercharge your JavaScript development? Look no further! 👀&lt;/p&gt;

&lt;p&gt;At BuiltByBuilder.com, we're excited to introduce you to &lt;strong&gt;Bun.js&lt;/strong&gt;, your new go-to JavaScript runner that will transform the way you code. 🚀&lt;/p&gt;

&lt;p&gt;🌟 &lt;strong&gt;Key Features:&lt;/strong&gt; 🌟&lt;br&gt;
✅ &lt;strong&gt;Blazing Fast Performance:&lt;/strong&gt; Say goodbye to slow development cycles. Bun.js is built for speed, ensuring rapid execution of your JavaScript code.&lt;br&gt;
✅ &lt;strong&gt;Versatility:&lt;/strong&gt; Whether you're working on web apps, APIs, or server-side scripting, Bun.js has you covered. It's versatile enough to handle any JavaScript project.&lt;br&gt;
✅ &lt;strong&gt;Effortless Integration:&lt;/strong&gt; Seamlessly integrate Bun.js into your existing workflow, making it a breeze to adopt and get started.&lt;br&gt;
✅ &lt;strong&gt;Developer-Friendly:&lt;/strong&gt; We designed Bun.js with developers in mind, offering an intuitive interface and robust documentation to support your coding journey.&lt;/p&gt;

&lt;p&gt;💡 &lt;strong&gt;Why Choose Bun.js?&lt;/strong&gt; 💡&lt;br&gt;
✨ &lt;strong&gt;Optimized Code Execution:&lt;/strong&gt; Bun.js optimizes your JavaScript code for enhanced performance, reducing load times and boosting user experiences.&lt;br&gt;
✨ &lt;strong&gt;Real-Time Debugging:&lt;/strong&gt; Easily identify and resolve issues with Bun.js's built-in debugging tools, saving you time and headaches.&lt;br&gt;
✨ &lt;strong&gt;Community-Driven:&lt;/strong&gt; Join a vibrant community of developers using Bun.js and tap into a wealth of knowledge and resources.&lt;/p&gt;

&lt;p&gt;🌐 &lt;strong&gt;Get Started Today!&lt;/strong&gt; 🌐&lt;br&gt;
Ready to experience the future of JavaScript development? Head over to BuiltByBuilder.com and explore Bun.js now:&lt;br&gt;
👉 &lt;a href="https://www.builtbybuilder.com/blog/bunjs-js-runner-comparison"&gt;Explore Bun.js&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Don't miss out on this game-changing JavaScript runner! 🔥 Upgrade your coding journey with Bun.js and witness the difference.&lt;/p&gt;

&lt;p&gt;🚀 &lt;strong&gt;BuiltByBuilder.com&lt;/strong&gt; - Where Innovation Meets Excellence 🚀&lt;/p&gt;

&lt;h1&gt;
  
  
  BunJS #JavaScript #DeveloperTools #BuiltByBuilder #CodingRevolution
&lt;/h1&gt;

</description>
      <category>bunjs</category>
      <category>javascript</category>
      <category>programming</category>
      <category>webdev</category>
    </item>
    <item>
      <title>🌟 Uncover the Secret to Server Stability! 🌟</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Sun, 10 Sep 2023 20:58:01 +0000</pubDate>
      <link>https://dev.to/joukhar/uncover-the-secret-to-server-stability-3mn6</link>
      <guid>https://dev.to/joukhar/uncover-the-secret-to-server-stability-3mn6</guid>
      <description>&lt;p&gt;Is server downtime keeping you up at night? Worried about the cost of disruptions? We have the solution! 💡&lt;/p&gt;

&lt;p&gt;Dive into our latest guide: "How to Know If Your Server Was Down for FREE Apache2." This article reveals:&lt;/p&gt;

&lt;p&gt;✅ Expert tips for monitoring server health.&lt;br&gt;
✅ Swift alerts to tackle downtime.&lt;br&gt;
✅ Troubleshooting advice for Apache2 server hiccups.&lt;br&gt;
✅ Best of all, it's completely FREE!&lt;/p&gt;

&lt;p&gt;Take charge of your website's uptime. Read the article now and ensure your server operates flawlessly! 💻&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://www.builtbybuilder.com/blog/server-downtime-detection-apache2"&gt;Explore Here&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  ServerStability #Apache2 #WebMaintenance #devops
&lt;/h1&gt;

</description>
      <category>serverstability</category>
      <category>devops</category>
      <category>apache2</category>
      <category>webmaintenance</category>
    </item>
    <item>
      <title>🚀 Unlock Your Full Potential with Free VPS Providers in 2023! 🚀</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Tue, 05 Sep 2023 20:32:43 +0000</pubDate>
      <link>https://dev.to/joukhar/unlock-your-full-potential-with-free-vps-providers-in-2023-3jnd</link>
      <guid>https://dev.to/joukhar/unlock-your-full-potential-with-free-vps-providers-in-2023-3jnd</guid>
      <description>&lt;p&gt;Are you a student looking to level up your tech game without emptying your wallet? Look no further! Our latest blog post reveals the ultimate guide to the Best and Free VPS Providers for Students in 2023.&lt;/p&gt;

&lt;p&gt;Discover the key benefits:&lt;br&gt;
✅ Access powerful virtual servers at absolutely no cost!&lt;br&gt;
✅ Secure your data with state-of-the-art technology.&lt;br&gt;
✅ Ideal for students pursuing tech-related fields.&lt;br&gt;
✅ Enhance your resume with real-world experience.&lt;br&gt;
✅ Explore global hosting options for diverse projects.&lt;/p&gt;

&lt;p&gt;📚 Don't miss out on this incredible resource to supercharge your tech skills and career prospects. Read the full article now! 👇&lt;/p&gt;

&lt;p&gt;Read More &lt;a href="https://www.builtbybuilder.com/blog/free-vps-for-students-2023"&gt;Post Link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tag a friend who needs this!&lt;/p&gt;

&lt;h1&gt;
  
  
  VPSforStudents #TechSkills #FreeVPS #StudentResources #2023TechGuide
&lt;/h1&gt;

</description>
      <category>vpsforstudents</category>
      <category>techskills</category>
      <category>freevps</category>
      <category>studentresources</category>
    </item>
    <item>
      <title>How to Deploy a Laravel Project to Namecheap Shared Hosting 🚀</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Thu, 20 Jul 2023 01:04:46 +0000</pubDate>
      <link>https://dev.to/joukhar/how-to-deploy-a-laravel-project-to-namecheap-shared-hosting-23pd</link>
      <guid>https://dev.to/joukhar/how-to-deploy-a-laravel-project-to-namecheap-shared-hosting-23pd</guid>
      <description>&lt;p&gt;Hey developers! Ready to take your Laravel project live on Namecheap Shared Hosting? Follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Prepare your Laravel project by removing unnecessary dependencies and setting file permissions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Compress your project into a zip archive.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Access Namecheap cPanel and upload the zip file to the public_html directory.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a new MySQL database and update the .env file with the database details.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Run composer install to install dependencies.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Generate a new application key and clear the cache using artisan commands.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Update the url key in config/app.php to match your domain name.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Test your deployment by visiting your domain.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For the full guide, check out &lt;a href="https://www.builtbybuilder.com/blog/laravel-deployment-on-namecheap"&gt;builtbybuilder.com/blog/laravel-deployment-on-namecheap&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Happy coding! 🚀&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>devops</category>
      <category>tutorial</category>
      <category>builtbybuilder</category>
    </item>
    <item>
      <title>The Best 13 ChatGPT Prompts for Web Developers.</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Sun, 09 Jul 2023 18:54:00 +0000</pubDate>
      <link>https://dev.to/joukhar/the-best-13-chatgpt-prompts-for-web-developers-5c06</link>
      <guid>https://dev.to/joukhar/the-best-13-chatgpt-prompts-for-web-developers-5c06</guid>
      <description>&lt;p&gt;🌐 Calling All Web Developers: Unlock the Power of AI-Powered Coding! 🚀💻&lt;/p&gt;

&lt;p&gt;!NOTE : POST LINK BELOW&lt;/p&gt;

&lt;p&gt;Are you a web developer seeking innovative ways to enhance your coding prowess? Look no further! We're thrilled to present our latest blog post, "The Best 13 ChatGPT AI Prompts for Web Developers." 🤖✨&lt;/p&gt;

&lt;p&gt;🔥 Explore the possibilities with our handpicked collection of AI prompts designed to revolutionize your web development journey. From streamlining workflows to conquering coding challenges, these prompts will ignite your creativity and propel your projects to new heights. 💡💪&lt;/p&gt;

&lt;p&gt;📚 In this comprehensive blog post, we delve into the fascinating world of AI-powered web development. Discover how ChatGPT AI can become your indispensable companion, offering invaluable insights, problem-solving capabilities, and limitless inspiration. 🌐✨&lt;/p&gt;

&lt;p&gt;You will learn:&lt;br&gt;
✅ Fresh perspectives on tackling complex coding conundrums.&lt;br&gt;
✅ Time-saving techniques to optimize your development process.&lt;br&gt;
✅ Cutting-edge ideas to transform your web projects into masterpieces.&lt;/p&gt;

&lt;p&gt;Ready to embark on a coding adventure like no other? Click here to read the full blog post: [Insert Blog Post Link]&lt;/p&gt;

&lt;p&gt;🌟 Join a vibrant community of web developers who are harnessing the power of AI to reshape the digital landscape. Share this post with your fellow coding enthusiasts, tag your developer friends, and let's inspire each other to achieve greatness. 💼👥&lt;/p&gt;

&lt;p&gt;🔓 Unleash your coding potential and unlock a world of possibilities today! Don't miss out on this game-changing resource. 💻💡&lt;/p&gt;

&lt;h1&gt;
  
  
  WebDevelopment #AIProgramming #CodingTips #DeveloperCommunity #ChatGPTAI #WebDevInsights #AIRevolution
&lt;/h1&gt;

&lt;p&gt;👉 We're eager to hear your thoughts! Visit our blog, leave a comment, and let us know which AI prompt resonates with you the most. Join the conversation and become a part of the AI-powered web development movement! 💬✨&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.builtbybuilder.com/blog/best-13-chatgpt-prompts"&gt;builtbybuilder.com/blog/best-13-chatgpt-prompts&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  AI #WebDevelopment #Coding #Developers #BlogPost #Tech #AIPrompts #ChatGPTAI
&lt;/h1&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>chatgpt</category>
      <category>aiprompts</category>
    </item>
    <item>
      <title>how to edit .env file programmatically in Laravel</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Fri, 07 Jul 2023 20:11:04 +0000</pubDate>
      <link>https://dev.to/joukhar/how-to-edit-env-file-programmatically-in-laravel-404f</link>
      <guid>https://dev.to/joukhar/how-to-edit-env-file-programmatically-in-laravel-404f</guid>
      <description>&lt;p&gt;To programmatically edit the &lt;code&gt;.env&lt;/code&gt; file in Laravel, you have two options. You can either create a Laravel function or use a package specifically designed for this purpose. I will explain both options below.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 1: Laravel Function
&lt;/h2&gt;

&lt;p&gt;Here's an example of a Laravel function that allows you to programmatically edit the &lt;code&gt;.env&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;

&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;Illuminate\Support\Facades\File&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;updateEnvFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;array&lt;/span&gt; &lt;span class="nv"&gt;$data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$envFile&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;base_path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'.env'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;File&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$envFile&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;File&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$envFile&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

        &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$data&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nv"&gt;$key&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nv"&gt;$search&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$key&lt;/span&gt;&lt;span class="s2"&gt;="&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="nv"&gt;$replace&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$key&lt;/span&gt;&lt;span class="s2"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$value&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;strpos&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$content&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$search&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!==&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nv"&gt;$content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;preg_replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/^&lt;/span&gt;&lt;span class="nv"&gt;$search&lt;/span&gt;&lt;span class="s2"&gt;.*$/m"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$replace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$content&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
                &lt;span class="nv"&gt;$content&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;PHP_EOL&lt;/span&gt; &lt;span class="mf"&gt;.&lt;/span&gt; &lt;span class="nv"&gt;$replace&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
            &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="nc"&gt;File&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;put&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$envFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$content&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The function &lt;code&gt;updateEnvFile&lt;/code&gt; accepts an array of key-value pairs. The keys represent the environment variable names, and the values represent the new values for those variables.&lt;/li&gt;
&lt;li&gt;The function first checks if the &lt;code&gt;.env&lt;/code&gt; file exists using the &lt;code&gt;File::exists&lt;/code&gt; method provided by Laravel's Filesystem. If the file doesn't exist, it returns &lt;code&gt;false&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;If the file exists, it reads the content of the &lt;code&gt;.env&lt;/code&gt; file using the &lt;code&gt;File::get&lt;/code&gt; method.&lt;/li&gt;
&lt;li&gt;For each key-value pair, it searches for the corresponding key in the content of the file. If the key is found, it replaces the existing value with the new value using the &lt;code&gt;preg_replace&lt;/code&gt; function. If the key is not found, it appends a new line with the key-value pair at the end of the content.&lt;/li&gt;
&lt;li&gt;Finally, it writes the modified content back to the &lt;code&gt;.env&lt;/code&gt; file using the &lt;code&gt;File::put&lt;/code&gt; method.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To use this function, you can pass an array of key-value pairs representing the variables you want to update:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;updateEnvFile&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
    &lt;span class="s1"&gt;'APP_ENV'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'production'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'APP_DEBUG'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'false'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This example updates the &lt;code&gt;APP_ENV&lt;/code&gt; and &lt;code&gt;APP_DEBUG&lt;/code&gt; variables in the &lt;code&gt;.env&lt;/code&gt; file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Option 2: Laravel Package
&lt;/h2&gt;

&lt;p&gt;Alternatively, you can use a Laravel package like "vlucas/phpdotenv" to manage the &lt;code&gt;.env&lt;/code&gt; file programmatically. This package provides a simple API for working with &lt;code&gt;.env&lt;/code&gt; files.&lt;/p&gt;

&lt;p&gt;To use the "vlucas/phpdotenv" package, you need to install it using Composer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer require vlucas/phpdotenv
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once the package is installed, you can update the &lt;code&gt;.env&lt;/code&gt; file using the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;?php&lt;/span&gt;

&lt;span class="kn"&gt;use&lt;/span&gt; &lt;span class="nc"&gt;Dotenv\Dotenv&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;function&lt;/span&gt; &lt;span class="n"&gt;updateEnvFile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;array&lt;/span&gt; &lt;span class="nv"&gt;$data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nv"&gt;$envFile&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;base_path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'.env'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;file_exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$envFile&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$dotenv&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Dotenv&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;createMutable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;base_path&lt;/span&gt;&lt;span class="p"&gt;());&lt;/span&gt;
        &lt;span class="nv"&gt;$dotenv&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

        &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$data&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="nv"&gt;$key&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nb"&gt;putenv&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$key&lt;/span&gt;&lt;span class="s2"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$value&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
            &lt;span class="nv"&gt;$dotenv&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;setEnvironmentVariable&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$value&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="nv"&gt;$dotenv&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;

        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;First, you need to require the &lt;code&gt;Dotenv&lt;/code&gt; class from the "vlucas/phpdotenv" package.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;updateEnvFile&lt;/code&gt; function is similar to the previous example but with a few changes.&lt;/li&gt;
&lt;li&gt;It loads the existing &lt;code&gt;.env&lt;/code&gt; file using the &lt;code&gt;Dotenv::createMutable&lt;/code&gt; method.&lt;/li&gt;
&lt;li&gt;For each key-value pair, it sets the environment variable using &lt;code&gt;putenv&lt;/code&gt; and updates the in-memory environment variables using &lt;code&gt;$dotenv-&amp;gt;setEnvironmentVariable&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Finally, it saves the changes back to the &lt;code&gt;.env&lt;/code&gt; file using &lt;code&gt;$dotenv-&amp;gt;save()&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can use this function in the same way as the previous example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight php"&gt;&lt;code&gt;&lt;span class="nf"&gt;updateEnvFile&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;
    &lt;span class="s1"&gt;'APP_ENV'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'production'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="s1"&gt;'APP_DEBUG'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'false'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both options allow you to programmatically edit the &lt;code&gt;.env&lt;/code&gt; file in Laravel. Choose the option that best suits your project requirements and preferences.&lt;/p&gt;

&lt;p&gt;For more posts like this, visit our website: &lt;a href="https://www.builtbybuilder.com"&gt;builtbybuilder.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Our Blog : &lt;a href="https://www.builtbybuilder.com/blogs"&gt;builtbybuilder.com/blogs&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>programming</category>
      <category>backend</category>
      <category>tips</category>
    </item>
    <item>
      <title>🚀 Obfuscate Tailwind Classes in Laravel with Vitejs! 🎯</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Fri, 07 Jul 2023 19:24:26 +0000</pubDate>
      <link>https://dev.to/joukhar/obfuscate-tailwind-classes-in-laravel-with-vitejs-1l6l</link>
      <guid>https://dev.to/joukhar/obfuscate-tailwind-classes-in-laravel-with-vitejs-1l6l</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aMgHv4BG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3fvrz98f5gkk13soy250.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aMgHv4BG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3fvrz98f5gkk13soy250.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🚀 Obfuscate Tailwind Classes in Laravel with Vitejs! 🎯&lt;/p&gt;

&lt;p&gt;Tired of bloated CSS files and lengthy tailwind classes slowing you down? Discover the ultimate solution to streamline your Laravel development process. Introducing "How to Obfuscate Tailwind Classes in Laravel using Vitejs"!&lt;/p&gt;

&lt;p&gt;🔥 Unlock Lightning-Fast Performance 🔥&lt;/p&gt;

&lt;p&gt;Say goodbye to excessive file sizes and hello to blazingly fast load times. Our revolutionary method allows you to seamlessly integrate Vitejs into your Laravel projects, minimizing CSS code and maximizing speed.&lt;/p&gt;

&lt;p&gt;📈 Experience Unparalleled Efficiency 📈&lt;/p&gt;

&lt;p&gt;Developers like you have already experienced a 40% increase in productivity by implementing this technique. With reduced development time and cleaner code, you'll have more resources to focus on what truly matters – building exceptional web applications.&lt;/p&gt;

&lt;p&gt;👉 Don't Miss Out! 👈&lt;/p&gt;

&lt;p&gt;Supercharge your Laravel development today! Click below to learn how to obfuscate Tailwind classes in Laravel using Vitejs. Start creating extraordinary websites effortlessly.&lt;/p&gt;

&lt;p&gt;👨‍💻 Check out our Blogs, it's created only for Laravel Developers! 👩‍💻&lt;/p&gt;

&lt;p&gt;🌐 Learn More: &lt;a href="https://www.builtbybuilder.com/blog/obfuscate-tailwind-classes-in-laravel"&gt;https://www.builtbybuilder.com/blog/obfuscate-tailwind-classes-in-laravel&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tailwindcss</category>
      <category>vite</category>
      <category>obfuscatetailwindcss</category>
      <category>laravel</category>
    </item>
    <item>
      <title>Boost your web development game with FREE web components! 🎉</title>
      <dc:creator>joukhar</dc:creator>
      <pubDate>Thu, 06 Jul 2023 12:44:30 +0000</pubDate>
      <link>https://dev.to/joukhar/boost-your-web-development-game-with-free-web-components-pcj</link>
      <guid>https://dev.to/joukhar/boost-your-web-development-game-with-free-web-components-pcj</guid>
      <description>&lt;p&gt;🚀 Attention Developers! 🚀&lt;/p&gt;

&lt;p&gt;Boost your web development game with FREE web components! 🎉&lt;/p&gt;

&lt;p&gt;Are you tired of spending hours coding the same elements over and over again? Say goodbye to repetitive tasks and hello&lt;br&gt;
to effortless development! 😎&lt;/p&gt;

&lt;p&gt;Introducing our game-changing web components that streamline your coding process. With our extensive library, you'll&lt;br&gt;
have access to a wide range of pre-built components that can be easily integrated into your projects. 🌐&lt;/p&gt;

&lt;p&gt;No matter if you're a beginner or an experienced pro, our components are designed to enhance your workflow, save time,&lt;br&gt;
and deliver outstanding results. 💪&lt;/p&gt;

&lt;p&gt;Don't miss out on this opportunity! Click below to get started and supercharge your development speed, Many Tailwind CSS and Bootstrap Components ⚡️&lt;/p&gt;

&lt;p&gt;👉 Visit &lt;a href="https://www.builtbybuilder.com/components"&gt;builtbybuilder.com/components&lt;/a&gt; now! 👈&lt;/p&gt;

&lt;h1&gt;
  
  
  webdevelopment #coding #developers #webcomponents #productivity
&lt;/h1&gt;

</description>
      <category>webdev</category>
      <category>coding</category>
      <category>tailwindcss</category>
      <category>webcomponents</category>
    </item>
  </channel>
</rss>
