<?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: Tarun Korat</title>
    <description>The latest articles on Forem by Tarun Korat (@tarunkorat).</description>
    <link>https://forem.com/tarunkorat</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%2F3607124%2F918d0b58-1d27-4d9a-b75f-3ef64c5903a3.jpg</url>
      <title>Forem: Tarun Korat</title>
      <link>https://forem.com/tarunkorat</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/tarunkorat"/>
    <language>en</language>
    <item>
      <title>How to Submit Your Laravel Package to LaraCommunity</title>
      <dc:creator>Tarun Korat</dc:creator>
      <pubDate>Sat, 06 Dec 2025 10:07:41 +0000</pubDate>
      <link>https://forem.com/tarunkorat/how-to-submit-your-laravel-package-to-laracommunity-26fi</link>
      <guid>https://forem.com/tarunkorat/how-to-submit-your-laravel-package-to-laracommunity-26fi</guid>
      <description>&lt;p&gt;Built an awesome Laravel package? Let me show you how to get it in front of thousands of developers in just 5 minutes!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why This Matters&lt;/strong&gt;&lt;br&gt;
You've spent weeks (maybe months) building a package that solves a real problem. Now it's time to share it with the world. But here's the thing—just putting it on GitHub and Packagist isn't enough. You need visibility.&lt;/p&gt;

&lt;p&gt;That's where LaraCommunity comes in.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quick Stats: What You Get&lt;/strong&gt;&lt;br&gt;
When you submit your package to LaraCommunity:&lt;/p&gt;

&lt;p&gt;⚡ Auto-sync with GitHub (stars, issues, updates)&lt;br&gt;
📊 Analytics on views, bookmarks, and downloads&lt;br&gt;
💬 Reviews &amp;amp; Ratings from the community&lt;br&gt;
🔍 SEO Benefits (Google indexing + search visibility)&lt;br&gt;
🆓 Completely Free (no fees, no premium tiers)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before You Submit: The Checklist&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Make sure your package has:&lt;br&gt;
✅ &lt;strong&gt;Must Have&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Public GitHub repository&lt;/li&gt;
&lt;li&gt;Valid composer.json with license&lt;/li&gt;
&lt;li&gt;Basic README with usage examples&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;🎯 &lt;strong&gt;Should Have (Recommended)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Listed on Packagist&lt;/li&gt;
&lt;li&gt;Automated tests&lt;/li&gt;
&lt;li&gt;Clear documentation&lt;/li&gt;
&lt;li&gt;Version tags&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;💡 &lt;strong&gt;Nice to Have&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CI/CD (GitHub Actions)&lt;/li&gt;
&lt;li&gt;Code coverage badge&lt;/li&gt;
&lt;li&gt;Changelog&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The 5-Step Process&lt;/strong&gt;&lt;br&gt;
Step 1: Login &amp;amp; Navigate&lt;br&gt;
Profile dropdown → "Submit Package"&lt;/p&gt;

&lt;p&gt;Step 2: Fill the Form (5 Minutes Max)&lt;br&gt;
You only need these fields:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Composer Package Name
vendor/package-name
Must match your composer.json. This is what developers use to install:
bashcomposer require vendor/package-name&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Auto-Sync Magic ✨&lt;/strong&gt;&lt;br&gt;
Click submit and watch the magic happen:&lt;br&gt;
From GitHub:&lt;br&gt;
✓ Repository description&lt;br&gt;
✓ Star count&lt;br&gt;
✓ Fork count&lt;br&gt;
✓ Open issues&lt;br&gt;
✓ Last commit date&lt;br&gt;
✓ License type&lt;br&gt;
✓ Topics/tags&lt;br&gt;
From Packagist:&lt;br&gt;
✓ Download stats&lt;br&gt;
✓ Latest version&lt;br&gt;
✓ PHP requirements&lt;br&gt;
✓ Laravel compatibility&lt;br&gt;
✓ Dependencies&lt;br&gt;
All. Automatically. Updated. Daily. 🎊&lt;br&gt;
No manual updates ever needed!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Admin Review (Usually 24 Hours)&lt;/strong&gt;&lt;br&gt;
Every submission goes through a quick quality check:&lt;br&gt;
What we verify:&lt;/p&gt;

&lt;p&gt;✅ Repository is accessible&lt;br&gt;
✅ Valid open-source license&lt;br&gt;
✅ Clear documentation&lt;br&gt;
✅ Genuinely useful for Laravel devs&lt;br&gt;
✅ No security concerns&lt;/p&gt;

&lt;p&gt;Timeline:&lt;/p&gt;

&lt;p&gt;⏰ Typical: 24-48 hours&lt;br&gt;
🚀 Established maintainers: 2-6 hours&lt;br&gt;
📅 Weekend: Reviewed by Monday&lt;/p&gt;

&lt;p&gt;You'll get an email either way!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: You're Live! 🚀&lt;/strong&gt;&lt;br&gt;
Your package now has:&lt;/p&gt;

&lt;p&gt;Dedicated Page with all the bells and whistles&lt;br&gt;
Search Visibility (findable by name, keywords, category)&lt;br&gt;
Your Profile showcasing all your packages&lt;br&gt;
Review System for community feedback&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>development</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Introducing Laravel Asset Cleaner: Safely Remove Unused Assets from Your Laravel Projects</title>
      <dc:creator>Tarun Korat</dc:creator>
      <pubDate>Wed, 12 Nov 2025 06:51:11 +0000</pubDate>
      <link>https://forem.com/tarunkorat/introducing-laravel-asset-cleaner-safely-remove-unused-assets-from-your-laravel-projects-2pj9</link>
      <guid>https://forem.com/tarunkorat/introducing-laravel-asset-cleaner-safely-remove-unused-assets-from-your-laravel-projects-2pj9</guid>
      <description>&lt;p&gt;Introducing Laravel Asset Cleaner: Safely Remove Unused Assets from Your Laravel Projects&lt;/p&gt;

&lt;p&gt;Have you ever inherited a Laravel project and wondered, "Are we actually using all these images?" or "Is this old JavaScript file still needed?" You're not alone.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤔 The Problem
&lt;/h2&gt;

&lt;p&gt;Over time, Laravel projects accumulate digital clutter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Images from old designs&lt;/li&gt;
&lt;li&gt;Unused Vue/React components&lt;/li&gt;
&lt;li&gt;Forgotten CSS files&lt;/li&gt;
&lt;li&gt;Legacy JavaScript libraries&lt;/li&gt;
&lt;li&gt;Font files that nobody uses&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These unused assets:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;✘ Bloat your repository&lt;/li&gt;
&lt;li&gt;✘ Slow down deployments&lt;/li&gt;
&lt;li&gt;✘ Confuse new developers&lt;/li&gt;
&lt;li&gt;✘ Make maintenance harder&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But how do you know what's safe to delete? Manual checking is time-consuming and error-prone. Delete the wrong file, and you break production.&lt;/p&gt;

&lt;h2&gt;
  
  
  💡 The Solution: Laravel Asset Cleaner
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;Laravel Asset Cleaner&lt;/strong&gt; to solve this exact problem. It's a package that:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Scans&lt;/strong&gt; your entire Laravel project for assets&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Detects&lt;/strong&gt; which files are actually being used&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reports&lt;/strong&gt; unused assets with details&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Safely removes&lt;/strong&gt; them with automatic backups&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🚀 Quick Start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Install&lt;/span&gt;
composer require tarunkorat/laravel-asset-cleaner

&lt;span class="c"&gt;# Publish config&lt;/span&gt;
php artisan vendor:publish &lt;span class="nt"&gt;--tag&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;asset-cleaner-config

&lt;span class="c"&gt;# Scan for unused assets&lt;/span&gt;
php artisan assets:scan

&lt;span class="c"&gt;# Preview what will be deleted&lt;/span&gt;
php artisan assets:delete &lt;span class="nt"&gt;--dry-run&lt;/span&gt;

&lt;span class="c"&gt;# Delete with automatic backup&lt;/span&gt;
php artisan assets:delete
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ✨ Key Features
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Smart Detection
&lt;/h3&gt;

&lt;p&gt;The package scans multiple locations for asset references:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Blade Templates:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="{{ asset('images/logo.png') }}"&amp;gt;
&amp;lt;script src="{{ mix('js/app.js') }}"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;JavaScript/Vue/React:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Logo&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./images/logo.png&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;Header&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./components/Header.vue&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;CSS/SCSS:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;background-image&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="nt"&gt;url&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;'../images/banner.jpg'&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;span class="k"&gt;@import&lt;/span&gt; &lt;span class="s2"&gt;'components/button.css'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;PHP Controllers:&lt;/strong&gt;&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="nv"&gt;$image&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Image&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nf"&gt;make&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;public_path&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'images/product.jpg'&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;asset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'images/logo.png'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Strict Matching (No False Positives!)
&lt;/h3&gt;

&lt;p&gt;A common problem with asset detection is false positives. For example, a file named &lt;code&gt;error.svg&lt;/code&gt; might match every occurrence of the word "error" in your code.&lt;/p&gt;

&lt;p&gt;Laravel Asset Cleaner uses &lt;strong&gt;strict boundary checking&lt;/strong&gt; to avoid this:&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="c1"&gt;// ❌ Won't match these:&lt;/span&gt;
&lt;span class="s1"&gt;'error'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s1"&gt;'Error message'&lt;/span&gt;
&lt;span class="k"&gt;throw&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Error&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;// ✅ Will match these:&lt;/span&gt;

&lt;span class="n"&gt;import&lt;/span&gt; &lt;span class="n"&gt;icon&lt;/span&gt; &lt;span class="n"&gt;from&lt;/span&gt; &lt;span class="s1"&gt;'./error.svg'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Debug Mode
&lt;/h3&gt;

&lt;p&gt;Not sure why a file is marked as used? Use debug mode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;php artisan assets:debug resources/images/logo.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Output:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;✓ File exists
Path: resources/images/logo.png
Size: 45 KB
🔎 Searching for references...
✓ Found 2 file(s) with references:
• resources/views/layouts/app.blade.php
Match: &amp;lt;img src="{{ asset('images/logo.png') }}"&amp;gt;
• resources/js/components/Header.vue
Match: import logo from '@/images/logo.png'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Safety Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;💾 &lt;strong&gt;Automatic Backups&lt;/strong&gt; - Creates timestamped backups before deletion&lt;/li&gt;
&lt;li&gt;🛡️ &lt;strong&gt;Protected Files&lt;/strong&gt; - Configure files that should never be deleted&lt;/li&gt;
&lt;li&gt;👁️ &lt;strong&gt;Dry Run Mode&lt;/strong&gt; - Preview changes without deleting anything&lt;/li&gt;
&lt;li&gt;✅ &lt;strong&gt;Verification&lt;/strong&gt; - Confirms files were actually deleted&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  📊 Real-World Results
&lt;/h2&gt;

&lt;p&gt;I tested this on several production Laravel applications:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Project 1:&lt;/strong&gt; E-commerce site (3 years old)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Found: 156 unused files&lt;/li&gt;
&lt;li&gt;Freed: 23MB&lt;/li&gt;
&lt;li&gt;Time saved: ~8 hours of manual checking&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Project 2:&lt;/strong&gt; SaaS application (2 years old)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Found: 89 unused files&lt;/li&gt;
&lt;li&gt;Freed: 12MB&lt;/li&gt;
&lt;li&gt;Cleaned up: 30 old component files&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Project 3:&lt;/strong&gt; Agency project (5 years old)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Found: 203 unused files&lt;/li&gt;
&lt;li&gt;Freed: 31MB&lt;/li&gt;
&lt;li&gt;Repository size reduced by 35%&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🎯 Common Use Cases
&lt;/h2&gt;

&lt;h3&gt;
  
  
  After Refactoring
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Just removed old components?&lt;/span&gt;
php artisan assets:scan &lt;span class="nt"&gt;--type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;js
php artisan assets:delete &lt;span class="nt"&gt;--type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Before Production Deploy
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Clean everything up&lt;/span&gt;
php artisan assets:scan
php artisan assets:delete &lt;span class="nt"&gt;--force&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Optimize Images
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Find unused images&lt;/span&gt;
php artisan assets:scan &lt;span class="nt"&gt;--type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;img
php artisan assets:delete &lt;span class="nt"&gt;--type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;img
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  CI/CD Integration
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Generate report in CI pipeline&lt;/span&gt;
php artisan assets:scan &lt;span class="nt"&gt;--json&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; unused-assets.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ⚙️ Configuration
&lt;/h2&gt;

&lt;p&gt;The package is highly configurable. Here's a snippet from &lt;code&gt;config/asset-cleaner.php&lt;/code&gt;:&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="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="c1"&gt;// Which asset types to clean&lt;/span&gt;
    &lt;span class="s1"&gt;'clean_types'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'js'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'css'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'img'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;

    &lt;span class="c1"&gt;// Enable strict matching&lt;/span&gt;
    &lt;span class="s1"&gt;'strict_matching'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;

    &lt;span class="c1"&gt;// Define asset locations&lt;/span&gt;
    &lt;span class="s1"&gt;'asset_types'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'js'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="s1"&gt;'directories'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'resources/js'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'public/js'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
            &lt;span class="s1"&gt;'extensions'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'js'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'jsx'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'ts'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'tsx'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'vue'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
        &lt;span class="p"&gt;],&lt;/span&gt;
        &lt;span class="s1"&gt;'img'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
            &lt;span class="s1"&gt;'directories'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'resources/images'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'public/images'&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
            &lt;span class="s1"&gt;'extensions'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'jpg'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'png'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'gif'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'svg'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'webp'&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="c1"&gt;// Files that should never be deleted&lt;/span&gt;
    &lt;span class="s1"&gt;'protected_files'&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
        &lt;span class="s1"&gt;'resources/js/app.js'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s1"&gt;'resources/css/app.css'&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🛠️ How It Works Internally
&lt;/h2&gt;

&lt;p&gt;For the curious developers, here's the high-level architecture:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;AssetScanner Service&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Uses Symfony Finder to locate asset files&lt;/li&gt;
&lt;li&gt;Stores assets in memory with metadata (size, type, path)&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Reference Extraction&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Scans all PHP, Blade, JS, CSS files&lt;/li&gt;
&lt;li&gt;Uses regex patterns to find asset references&lt;/li&gt;
&lt;li&gt;Implements strict boundary matching&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Comparison Engine&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Compares found assets vs referenced assets&lt;/li&gt;
&lt;li&gt;Marks unused assets for deletion&lt;/li&gt;
&lt;li&gt;Respects protected files configuration&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Safe Deletion&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creates timestamped backup directory&lt;/li&gt;
&lt;li&gt;Copies files before deletion&lt;/li&gt;
&lt;li&gt;Verifies deletion success&lt;/li&gt;
&lt;li&gt;Cleans up empty directories&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🤝 Contributing
&lt;/h2&gt;

&lt;p&gt;This is my first Laravel package, and I'd love your feedback! The project is open source under the MIT License.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ways to contribute:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🐛 Report bugs&lt;/li&gt;
&lt;li&gt;💡 Suggest features&lt;/li&gt;
&lt;li&gt;📖 Improve documentation&lt;/li&gt;
&lt;li&gt;🔧 Submit pull requests&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/tarunkorat/laravel-asset-cleaner" rel="noopener noreferrer"&gt;https://github.com/tarunkorat/laravel-asset-cleaner&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  📦 Installation &amp;amp; Links
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;composer require tarunkorat/laravel-asset-cleaner
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/tarunkorat/laravel-asset-cleaner" rel="noopener noreferrer"&gt;https://github.com/tarunkorat/laravel-asset-cleaner&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Packagist:&lt;/strong&gt; &lt;a href="https://packagist.org/packages/tarunkorat/laravel-asset-cleaner" rel="noopener noreferrer"&gt;https://packagist.org/packages/tarunkorat/laravel-asset-cleaner&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Documentation:&lt;/strong&gt; Full README on GitHub&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🎉 Conclusion
&lt;/h2&gt;

&lt;p&gt;Laravel Asset Cleaner helps you maintain cleaner, more efficient Laravel projects by safely removing unused assets. It's free, open source, and designed with safety as the top priority.&lt;/p&gt;

&lt;p&gt;Give it a try and let me know what you think! Have questions or suggestions? Drop them in the comments below. 👇&lt;/p&gt;




&lt;p&gt;Star the repo if you find it useful! ⭐&lt;/p&gt;

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

</description>
      <category>laravel</category>
      <category>php</category>
      <category>webdev</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
