Speeding Up Laravel Tests with tmpfs (MySQL in RAM)
If your Laravel test suite is painfully slow and does a lot of database work (multi-tenancy, migrations, seeding), the bottleneck is almost certainly disk…
Read postEverything in this archive, newest first.
If your Laravel test suite is painfully slow and does a lot of database work (multi-tenancy, migrations, seeding), the bottleneck is almost certainly disk…
Read postLaravel's $touches property automatically updates parent model timestamps when child models are modified. Basic Usage class Comment extends Model { protected $touches = ['post'];…
Read postRendering Chart.js charts into PDFs with wkhtmltopdf can be surprisingly tricky. wkhtmltopdf uses QtWebKit (an older browser engine), while Chart.js draws on an HTML5…
Read postIn Laravel, a Factory is a class dedicated to generating instances of your Eloquent models. They solve a fundamental problem: your application needs data…
Read postIs your Docker-based development environment sluggish? Do your fans spin up for no reason? If you run docker stats, do you see your MySQL…
Read postLaravel's cache tags feature only works with Redis and Memcached. Using it with other cache drivers (file, database, DynamoDB, array) will throw exceptions. This…
Read postWhen working with Statamic's Bard fieldtype programmatically, you'll often need to convert its structured data to HTML. The documentation doesn't make this obvious, but…
Read postThis guide shows you how to test Statamic addons effectively. Testing addons is different from testing regular PHP packages because they depend on Statamic's…
Read postCreating custom UI components in Statamic addons with AJAX functionality is poorly documented, making it frustrating to implement. This guide shows you exactly how…
Read postThis guide walks you through creating a Statamic addon from scratch. We'll build a real addon that adds functionality to your Statamic installation. What…
Read postWhen developing Laravel projects with Docker and Sail, it’s important that all commands use Sail to ensure the environment is consistent. However, the AI…
Read postWhen trying to add Laravel Sail to an existing project, you often encounter a classic catch-22 situation. You need to run php artisan sail:install…
Read post