Blog | Page 2 | Mozex

 Blog 
======

 Thoughts on Laravel, PHP, software architecture, and building developer tools.

    [ Use Laravel's route(), url(), and asset() Helpers Inside Markdown 
-------------------------------------------------------------------

 ](https://mozex.dev/blog/11-use-laravels-route-url-and-asset-helpers-inside-markdown)

 I had a Laravel project designed to be white-labeled. Swap an env file, change the domain, and the whole application launches as a completely different product. The problem was the Markdown files.

   Apr 6, 2026   ·  5 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Open Source ](https://mozex.dev/blog/tags/open-source) [ Markdown ](https://mozex.dev/blog/tags/markdown)  

  [ How a Rejected PR Became Laravel Scout Bulk Actions 
-----------------------------------------------------

 ](https://mozex.dev/blog/10-how-a-rejected-pr-became-laravel-scout-bulk-actions)

 If you've used Laravel Scout on a project with more than a couple of searchable models, you know the drill. You change something in your toSearchableArray(), and now you need to flush and reimport every model's index. Two commands per model. Manually. One at a time. On a project with ten searchable models, that's twenty commands to rebuild your search indexes.

   Apr 3, 2026   ·  4 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Open Source ](https://mozex.dev/blog/tags/open-source)  

  [ Why I Built a PHP Client for Anthropic's Claude API 
-----------------------------------------------------

 ](https://mozex.dev/blog/9-why-i-built-a-php-client-for-anthropics-claude-api)

 In May 2024, I published the first version of anthropic-php, a PHP client for Anthropic's Claude API. Nearly two years later, when I wrote this post in April 2026, it had passed 370,000 downloads, more than any other dedicated Anthropic client for PHP at the time. This is the story of why I built it, what it can do, and why I think packages born from real necessity tend to be the good ones.

   Apr 2, 2026   ·  9 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Open Source ](https://mozex.dev/blog/tags/open-source) [ AI ](https://mozex.dev/blog/tags/ai) [ Anthropic ](https://mozex.dev/blog/tags/anthropic)  

  [ My Zero-Downtime Deployment Setup for Laravel 
-----------------------------------------------

 ](https://mozex.dev/blog/8-my-zero-downtime-deployment-setup-for-laravel)

 I've been deploying Laravel applications for over a decade. Started with custom bash scripts. Moved to Laravel Envoy. Then Laravel Envoyer, which worked great for a long time. Eventually moved away from it to Ploi.io so I could manage deployments and servers in one place. Each tool taught me something the previous one didn't. And the biggest lesson wasn't about tools at all. It was about the small practices around deployment that separate "mostly works" from "actually works every time." Zero-downtime deployment is widely available now. Most hosting panels and deployment services support it out of the box. But to get the most out of it, there are practices you need to get right. That's what this post covers.

   Apr 1, 2026   ·  14 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Tutorial ](https://mozex.dev/blog/tags/tutorial) [ DevOps ](https://mozex.dev/blog/tags/devops)  

  [ WooCommerce to Laravel Migration: The Parts Nobody Talks About 
----------------------------------------------------------------

 ](https://mozex.dev/blog/6-woocommerce-to-laravel-migration-the-parts-nobody-talks-about)

 If you've run a WooCommerce store long enough, you've felt the slowdown. Pages take longer to load. The admin panel becomes sluggish. Checkout starts timing out during traffic spikes. You throw caching at it, upgrade your hosting, install optimization plugins. It helps for a while. Then it doesn't. I've been building with PHP and Laravel for over ten years, and I've migrated production WooCommerce stores to custom Laravel applications. Not as a theoretical exercise, but because the stores hit a wall that no amount of WordPress optimization could fix. Here's what that process actually looks like, including the parts the generic migration guides conveniently skip.

   Mar 29, 2026   ·  11 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Architecture ](https://mozex.dev/blog/tags/architecture) [ WooCommerce ](https://mozex.dev/blog/tags/woocommerce)  

  [ Which AI Package Should You Actually Use in Laravel? 
------------------------------------------------------

 ](https://mozex.dev/blog/5-which-ai-package-should-you-actually-use-in-laravel)

 Eighteen months ago, using Claude or GPT from a Laravel app meant writing raw HTTP calls or using whatever half-maintained wrapper you could find on Packagist. Today there are four solid options, all actively maintained, all with real download numbers behind them. I maintain one of them. anthropic-php and its Laravel companion anthropic-laravel have a combined 597,000 installs on Packagist. I've been building and shipping AI features in PHP since before most of these packages existed. So when people ask me "which one should I use?", I have opinions. They might surprise you. Here's the honest breakdown.

   Mar 28, 2026   ·  10 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Open Source ](https://mozex.dev/blog/tags/open-source) [ AI ](https://mozex.dev/blog/tags/ai)  

  [ Why I Built My Own Laravel Modules Package 
--------------------------------------------

 ](https://mozex.dev/blog/4-why-i-built-my-own-laravel-modules-package)

 In late 2023, I was working on a large Laravel project and hit a point where the app/ directory had become a mess. Models, controllers, services, policies, listeners, jobs, notifications, all thrown into flat directories with no logical grouping. Everything related to billing lived next to everything related to user management. Finding anything required memorizing file names instead of following a structure. I knew the answer was modular architecture. Break the application into self-contained modules where each module owns its models, controllers, migrations, routes, views, and everything else related to that feature. I'd seen this pattern work in other frameworks and it made perfect sense for Laravel. So I looked at what was available. I tried several packages. None of them clicked. I started building my own solution inside that project. As it grew and I wanted the same structure in my other projects, I extracted it into an open-source package: mozex/laravel-modules.

   Mar 27, 2026   ·  13 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Open Source ](https://mozex.dev/blog/tags/open-source) [ Architecture ](https://mozex.dev/blog/tags/architecture)  

  [ Wispr Flow: Why I Dictate Everything Instead of Typing 
--------------------------------------------------------

 ](https://mozex.dev/blog/3-wispr-flow-why-i-dictate-everything-instead-of-typing)

 This is the first post in what I plan to be a collection of tools and software I use regularly. No sponsorships, no affiliate links, no partnerships. Just software that changed how I work, shared because I think you might benefit from it too. Let's start with the one that had the biggest impact on my daily routine: Wispr Flow.

   Mar 24, 2026   ·  8 min read   ·  [ Developer Tools ](https://mozex.dev/blog/tags/developer-tools) [ Productivity ](https://mozex.dev/blog/tags/productivity)  

  [ Fixing Pest Sharding for Modular Laravel Applications 
-------------------------------------------------------

 ](https://mozex.dev/blog/2-fixing-pest-sharding-for-modular-laravel-applications)

 When Pest v4 dropped, one feature got my attention right away: test sharding. My CI pipelines were painfully slow, and splitting tests across parallel GitHub Actions runners seemed like the obvious fix. I upgraded, configured the shards, pushed to CI, and waited. Every shard ran every test. Shard 1 of 4? Full suite. Shard 3 of 4? Full suite. My "optimization" made things four times worse.

   Mar 24, 2026   ·  13 min read   ·  [ Laravel ](https://mozex.dev/blog/tags/laravel) [ PHP ](https://mozex.dev/blog/tags/php) [ Testing ](https://mozex.dev/blog/tags/testing) [ Pest ](https://mozex.dev/blog/tags/pest) [ GitHub Actions ](https://mozex.dev/blog/tags/github-actions)  

  [ My Claude Code Status Line: Usage, Pace, and Context at a Glance 
------------------------------------------------------------------

 ](https://mozex.dev/blog/1-my-claude-code-status-line-usage-pace-and-context-at-a-glance)

 I've been using Claude Code as my daily driver for a while now. One thing that kept bugging me was not knowing where I stood with my usage limits until I actually hit them. Claude Code has a status line feature that lets you run a custom script and display whatever you want at the bottom of the terminal. I built one that shows me everything I care about in a single line. Freek Van der Herten wrote a nice post about his own status line showing the repo name and context window percentage. That was my starting point, but I wanted more: rate limit tracking, reset countdowns, and a pace indicator that tells me whether I'm burning through my weekly budget too fast.

   Mar 22, 2026   ·  11 min read   ·  [ Claude Code ](https://mozex.dev/blog/tags/claude-code) [ Bash ](https://mozex.dev/blog/tags/bash) [ Developer Tools ](https://mozex.dev/blog/tags/developer-tools)  

    [   Newer posts ](https://mozex.dev/blog)    

###  Stay in the Loop 

 Get the latest posts delivered to your inbox - on your schedule.

   Every New Post Weekly Digest Monthly Digest  

  Subscribe   Subscribing...  

   No spam. Unsubscribe anytime.

   ![Mozex](https://mozex.dev/images/mozex/profile-128.webp)

###  Mozex 

 Laravel Specialist

 Senior Laravel Specialist & Consultant. Building developer tools and open-source packages.

 [   ](https://github.com/mozex) [   ](https://www.linkedin.com/in/mozex) [   ](https://x.com/mozexdev) [   ](https://mozex.dev/blog/feed) 

###  Browse by Topic 

  [ Laravel  22  ](https://mozex.dev/blog/tags/laravel) [ PHP  22  ](https://mozex.dev/blog/tags/php) [ Open Source  7  ](https://mozex.dev/blog/tags/open-source) [ DevOps  6  ](https://mozex.dev/blog/tags/devops) [ Database  5  ](https://mozex.dev/blog/tags/database) [ Developer Tools  4  ](https://mozex.dev/blog/tags/developer-tools) [ AI  4  ](https://mozex.dev/blog/tags/ai) [ Claude Code  3  ](https://mozex.dev/blog/tags/claude-code) [ Testing  3  ](https://mozex.dev/blog/tags/testing) [ Performance  3  ](https://mozex.dev/blog/tags/performance) [ Architecture  3  ](https://mozex.dev/blog/tags/architecture) [ Tutorial  3  ](https://mozex.dev/blog/tags/tutorial) [ Bash  2  ](https://mozex.dev/blog/tags/bash) [ Anthropic  2  ](https://mozex.dev/blog/tags/anthropic) [ WooCommerce  2  ](https://mozex.dev/blog/tags/woocommerce) [ Productivity  1  ](https://mozex.dev/blog/tags/productivity) [ Markdown  1  ](https://mozex.dev/blog/tags/markdown) [ MCP  1  ](https://mozex.dev/blog/tags/mcp) [ GitHub Actions  1  ](https://mozex.dev/blog/tags/github-actions) [ Pest  1  ](https://mozex.dev/blog/tags/pest) [ Code Review  1  ](https://mozex.dev/blog/tags/code-review) [ Windows  1  ](https://mozex.dev/blog/tags/windows)  

###  Need expert Laravel help? 

 I offer consulting, code reviews, and custom development for Laravel applications.

 [ View Services   ](https://mozex.dev#services)
