Nov 2024Reservable models in LaravelHere's how developers can use Laravel's atomic cache locks to easily reserve Eloquent models and prevent duplicate processing or stampeding failures in background tasks.
Nov 2024Make 5x faster outbound requests in LaravelLaravel Octane users can unlock a hidden 10x performance boost for outbound HTTP requests by simply reusing established connections instead of creating fresh ones for every call.
Nov 2024Setting up Tailscale and Synology for sharing video filesAfter struggling to share massive video files through clunky cloud syncing, a remote production duo discovered that combining a Synology NAS with Tailscale created a seamless, private network for editing footage from anywhere.
Nov 2024Configuring (and viewing!) logs in LaravelFrom simple file-based debugging to advanced production monitoring with Sentry and Telescope, this guide walks you through maximizing Laravel's flexible logging system.
Sep 2024SQLite is not weakly typed!Despite common misconceptions about its data integrity, SQLite is not weakly typed but rather "flexibly typed," allowing developers to choose between relaxed data inputs or strict enforcement depending on their needs.
Sep 2024Finding missing orders with a recursive CTEWhen a paid order vanished from our database, I used a SQL recursive CTE to bridge the gap in our unconventional numbering system and track down the missing record.
Sep 2024Clean up after yourselfStop leaving digital messes behind and start writing code that tidies up its own stray files and running processes using these two effective strategies.
Sep 2024Laravel's higher order collection proxiesTurn your repetitive code blocks into sleek one-liners by mastering the magic of Laravel's higher-order collection proxies.
Aug 2024Don't undo what you haven't doneToggling a setting off and then blindly turning it back on seems harmless, but that simple logic is actually a hidden trap that can catastrophic unexpected bugs in your code.
Aug 2024File based routing in Inertia.jsStreamline your Inertia-powered Laravel application by routing entire directories of static pages with a single line of code using this custom router macro.
Dec 2023Shipping SQLite to Lambda (with Laravel Vapor)While running SQLite on a serverless platform usually sounds like a recipe for data disaster, using the database as a read-only distribution mechanism for static content turns it into a powerful, self-contained deployment strategy.
Dec 2023Creating a custom Laravel Pulse cardDiving into the undocumented source code of the newly released Laravel Pulse reveals just how easy it is to build a custom card for monitoring outdated Composer dependencies.
Nov 2023Rendering Blade components in MarkdownUnlock the ability to use dynamic Blade components within your static Markdown files using these two distinct parsing strategies for Laravel applications.
Nov 2023Targeting only inline code elements with Tailwind TypographyDevelopers struggling to style inline code differently than code blocks within Tailwind's Typography plugin can now deploy a simple custom variant to gain granular control.
Nov 2023Self-healing URLs in LaravelLearn how to build resilient, SEO-friendly URLs in Laravel that mimic the self-healing structure used by giants like Amazon and Medium.
Nov 2023Read the docs like a bookReading technical documentation cover-to-cover, rather than treating it like a reference manual, is the single most underrated strategy for fast-tracking your career and mastering your tools.
Aug 2022Is COUNT(*) slow in MySQL?Contrary to popular belief, using an asterisk in your database queries isn't always a performance killer, especially when it comes to counting rows.
Feb 2022Adding a microservice to your monolithDevelopers can now sidestep the complex choice between monolithic architecture and microservices by running serverless functions directly within their Laravel applications using a new package called Sidecar.
Jan 2022Efficient MySQL pagination using deferred joinsBy combining deferred joins with covering indexes, developers can supercharge standard offset pagination in database queries, turning sluggish deep-page loads into near-instant results without sacrificing direct page access.
Jan 2022Inertia server side rendering on Laravel VaporInertia.js users on serverless platforms can now enjoy fully-featured server-side rendering thanks to a new package that delegates the heavy lifting to AWS Lambda instead of a long-running Node process.
Jan 2022Using Ziggy with Inertia server side renderingWhile Inertia's new server-side rendering is wicked fast, getting it to play nice with the popular Ziggy library requires a few clever configuration tweaks to bypass the missing window object.
Nov 2021Bitmasking in Laravel and MySQLBitmasks offer a powerful, efficient strategy for developers to compress multiple boolean flags into a single integer, saving memory and streamlining database storage.
Nov 2021Using Laravel's schema builder outside of migrationsWhile Laravel's schema builder is traditionally reserved for migrations, developers can leverage it anywhere in their application to create on-the-fly temporary tables that drastically speed up complex data processing.
Nov 2021Efficient distance querying in MySQLOptimize your application's slow geospatial searches by combining bounding boxes with a unique indexing strategy that allows MySQL to scan thousands of rows instead of millions.
Jul 2021The exceeding cleverness of Laravel's atomic database locksLaravel sidesteps complex native database locking mechanisms by cleverly relying on a simple primary key constraint to guarantee uniqueness across all supported drivers.
Jul 2021Fixing images on Laravel Vapor with League\CommonmarkFixing broken markdown images on your Laravel Vapor site is easier than you think with this custom Commonmark extension that automatically routes asset URLs to the correct cloud location.
Apr 2021Separate marketing + app sites with Laravel Jetstream and Inertia.jsBy separating your Laravel Jetstream application into an Inertia-powered dashboard and a standard Blade marketing site, you can leverage the best of both worlds for a flexible, high-performance developer experience.
Apr 2021Blogging with markdown in LaravelAfter rebuilding his personal website countless times, a developer details the fast and simple "no-database" stack he finally settled on using Laravel and Markdown.
Jan 2021Is making software Sisyphean?Just like the mythical figure Sisyphus condemned to roll a boulder for eternity, software developers must accept that their work is never truly finished, but rather an endless act of careful gardening.
Oct 2020Handling large CSVs with LaravelParsing massive CSV files can quickly become a nightmare of memory leaks and hidden data errors, but implementing strict validation, streaming techniques, and parallel processing can turn a multi-gigabyte headache into a manageable routine.
Oct 2020Ensuring consistent polymorphic relationships with LaravelSoftware developer reveals how using Laravel traits and polymorphic relationships helped tame a chaotic database of disparate professional licenses into a single, searchable master list without losing critical source data.
Aug 2020Realtime spreadsheets with LaravelUsing tools like Laravel Echo and Pusher, developer Aaron Francis constructed a real-time, collaborative spreadsheet in just a few days, earning a feature from the component library Handsontable.
May 2020Laravel pseudo daemonsLearn how to speed up your Laravel data processing without the headache of complex server configurations by using "pseudo-daemons" to keep your scheduled commands running continuously.
Jun 2016Introducing Vue ModelA new Vue.js plugin called vue-model promises to streamline frontend development by transforming plain data into rich, RESTful models with built-in state management for common CRUD actions.
Jan 2014Hosting an advanced Yii2 app on HerokuDeploying the Yii2 Advanced Template to Heroku requires bridging the gap between its separate frontend and backend directories using a custom .htaccess file and a modified request component.
Sep 2013Encrypting and encoding information in URLs with PHPFaced with a time-tracking compliance problem, one developer found the solution in porting a clever Ruby snippet to PHP that generates secure, spam-proof URLs for daily email reports.
Sep 2013My Aperture backup strategyAfter a teenage tech disaster wiped out his files, this photographer built an automated, three-tiered backup system so bulletproof that even corrupted data doesn't stand a chance.
Jul 2013Remaking "Snake" in ExcelA former accountant bored on a flight has resurrected the nostalgic cell phone classic "Snake" by programming a fully playable version directly inside a Microsoft Excel spreadsheet.
Jun 2013Using MySQL triggers to ensure immutabilityBootstrapping developers often default to application code for solving data integrity problems, but shifting that logic to the database layer with MySQL triggers offers a far more robust and clutter-free solution.
Jun 2013Yii and the asset pipeline: part 2To solve the persistent headaches of managing static files on cloud hosting, a developer has released Mantis Manager, a tool that automates asset minification and publishing for the Yii framework.
May 2013Scheduling jobs with YiiOffloading computationally expensive tasks to a background process is essential for keeping your web application responsive, and this guide shows you exactly how to achieve that using a simple MySQL queue and Heroku Scheduler.
May 2013Automating Yii migrations on HerokuBy hacking Heroku's boot script to run Yii migrations instantly upon deployment, developers can finally bypass the dreaded "catch 22" of keeping live code in sync with database structures.
Apr 2013Wrangling timezones in PHP, MySQL, and YiiManaging user timezones in a web application is a notoriously messy business, but adhering to a strict strategy of storing GMT values and relying on named timezones in both PHP and MySQL can turn chaos into consistency.
Apr 2013Importing transactions into MintWhile Mint lacks a native import feature for historical financial data, you can bypass this major limitation with a clever workaround involving freelance data entry and automated macro software.
Apr 2013Yii, Heroku, and the asset pipelineDeploying a PHP application on Heroku's ephemeral file system requires a clever combination of Amazon S3 storage and custom caching solutions to prevent assets from disappearing with every code push.
Feb 2013How I use Evernote and IFTTTWhile many people rely on Google Drive or iCloud for storage, this writer argues that a powerful combination of a portable Doxie scanner, IFTTT automation, and Evernote offers the ultimate system for archiving both physical documents and digital memories.
Feb 2013Idea extraction gone terribly wrongAn entrepreneur's attempt to conduct market research on a lawn care forum backfired spectacularly when members accused him of deceptive tactics, teaching him a harsh lesson about the importance of transparency over clever extraction techniques.
Jan 2013Carving the statue of DavidJust as Michelangelo saw a masterpiece hidden inside a raw block of marble, this first-time developer is chipping away at a new SaaS product in hopes of revealing the David within.