<?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>Forem: SHIVAM GUPTA</title>
    <description>The latest articles on Forem by SHIVAM GUPTA (@shivambkl).</description>
    <link>https://forem.com/shivambkl</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%2F1265129%2F0a60cf29-b262-4e60-a869-38fd18a8cd70.png</url>
      <title>Forem: SHIVAM GUPTA</title>
      <link>https://forem.com/shivambkl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/shivambkl"/>
    <language>en</language>
    <item>
      <title>🔥 Laravel 12 in 2025 – Clean Code, Powerful Helpers, Modern Auth – What’s New?</title>
      <dc:creator>SHIVAM GUPTA</dc:creator>
      <pubDate>Thu, 17 Jul 2025 17:53:08 +0000</pubDate>
      <link>https://forem.com/shivambkl/laravel-12-in-2025-clean-code-powerful-helpers-modern-auth-whats-new-252m</link>
      <guid>https://forem.com/shivambkl/laravel-12-in-2025-clean-code-powerful-helpers-modern-auth-whats-new-252m</guid>
      <description>&lt;p&gt;🚀 Top Laravel 12 Features You’ll Love&lt;br&gt;
🔹 1. Modern Starter Kits&lt;br&gt;
   React (with TypeScript + shadcn/ui), Vue (Inertia), and Livewire (with            Flux/Volt) – fully tailored for modern frontend stacks.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;laravel new project-name --kit=react

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

&lt;/div&gt;



&lt;p&gt;🔹 2. Collection &amp;amp; String Enhancements&lt;br&gt;
💡 containsOneItem() – No more manual count checks!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;collect([5])-&amp;gt;containsOneItem(); // true
collect([1, 2])-&amp;gt;containsOneItem(); // false

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

&lt;/div&gt;



&lt;p&gt;💡 Str::reverse()&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;use Illuminate\Support\Str;

echo Str::reverse('Laravel'); // "levaraL"

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

&lt;/div&gt;



&lt;p&gt;💡 ifEmpty() / unlessEmpty()&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;collect([])-&amp;gt;ifEmpty(fn() =&amp;gt; logger('No items')); // logs 'No items'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🔹 3. Built-in WorkOS AuthKit&lt;br&gt;
Add Passkey, SSO, or Social Login using a Laravel-native integration with WorkOS.&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 laravel/authkit
php artisan authkit:install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;➡️ Great for teams needing secure onboarding without reinventing login flows.&lt;br&gt;
 🔹 4. Anonymous Migrations by Default&lt;br&gt;
No more migration class name collisions 🎉&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;return new class extends Migration {
    public function up(): void {
        Schema::create('posts', function (Blueprint $table) {
            $table-&amp;gt;id();
            $table-&amp;gt;string('title');
        });
    }
};

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

&lt;/div&gt;



&lt;p&gt;And clean conditional broadcasting:&lt;/p&gt;

&lt;p&gt;⚙️ Bonus:&lt;br&gt;
Laravel 12 supports PHP 8.2/8.3, works with older tools like Fortify, and is smoother to upgrade with very few breaking changes.&lt;/p&gt;

&lt;p&gt;🧠 What I like:&lt;br&gt;
✅ Laravel is focusing more on DX (Developer Experience)&lt;br&gt;
✅ Auth is becoming cleaner + scalable&lt;br&gt;
✅ Tools like debug()-&amp;gt;suggest() (AI powered!) &lt;/p&gt;

&lt;p&gt;💬 What do you think?&lt;br&gt;
Are you upgrading to Laravel 12 or waiting for the next LTS?&lt;/p&gt;

&lt;p&gt;Drop your thoughts! 👇&lt;/p&gt;

&lt;h1&gt;
  
  
  Laravel12 #Laravel #PHP #WebDevelopment #CleanCode #DevTips #LaravelCommunity #FullStackDeveloper
&lt;/h1&gt;

</description>
      <category>laravel</category>
      <category>webdev</category>
      <category>coding</category>
      <category>ai</category>
    </item>
    <item>
      <title>🧠Scaling Laravel? Think Queries, Caching, and Clean Architecture</title>
      <dc:creator>SHIVAM GUPTA</dc:creator>
      <pubDate>Sun, 06 Jul 2025 07:08:35 +0000</pubDate>
      <link>https://forem.com/shivambkl/scaling-laravel-think-queries-caching-and-clean-architecture-3119</link>
      <guid>https://forem.com/shivambkl/scaling-laravel-think-queries-caching-and-clean-architecture-3119</guid>
      <description>&lt;p&gt;As Laravel developers, it’s easy to focus purely on controllers, routes, and models. But real performance gains often come from design decisions, not just syntax tweaks.&lt;/p&gt;

&lt;p&gt;💡 Here’s one I’ve learned over time: Always plan your data access strategy early. Eloquent is powerful, but without careful use of eager loading, indexing, and caching — it can become your bottleneck.&lt;/p&gt;

&lt;p&gt;✅ Use with() and load() smartly. &lt;br&gt;
✅ Avoid deeply nested loops with database calls.&lt;br&gt;
✅ Use Laravel’s cache (like remember() or tagged cache) to store frequent queries. &lt;br&gt;
✅ Structure your queries to reduce joins when not necessary.&lt;br&gt;
✅ Use Eloquent selectively — For bulk operations or complex joins, &lt;strong&gt;don't hesitate to drop to raw queries or DB::table().&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🎯 Clean code is good. Efficient code is better. Scalable architecture is best.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let your Laravel app breathe — give it performance, not just features&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>performance</category>
    </item>
    <item>
      <title>Ensuring Robustness: The Crucial Role of Null Handling in Backend Responses</title>
      <dc:creator>SHIVAM GUPTA</dc:creator>
      <pubDate>Thu, 07 Mar 2024 18:07:09 +0000</pubDate>
      <link>https://forem.com/shivambkl/ensuring-robustness-the-crucial-role-of-null-handling-in-backend-responses-2b9l</link>
      <guid>https://forem.com/shivambkl/ensuring-robustness-the-crucial-role-of-null-handling-in-backend-responses-2b9l</guid>
      <description>&lt;p&gt;&lt;br&gt;
&lt;code&gt;first rule for learning in programming&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;What i am seeing right while coding ...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Importance to handle null for the response from backend
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Handling null or undefined values in the response from a backend is crucial for building robust and reliable software applications.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;-Always be optimised with your code&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Try to write or call redundant method by some helper methods.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>laravel</category>
      <category>vue</category>
    </item>
  </channel>
</rss>
