Skip to content

From the blog

How to Trigger a Livewire Method from Outside a Livewire Component

Alpine.js and Livewire are two of the most popular JavaScript frameworks for Laravel. Alpine is a lightweight framework that allows you to add interactivity to your web pages without having to write a lot of code. Livewire is a framework that allows you to build interactive web pages with server-side logic. Alpine and Livewire work … Continued

Thoughts on using Laravel Corcel in Production

The idea of Laravel Corcel is very appealing. I’ve worked on two projects with Corcel. The projects were built years apart from each other by two entirely different teams. Corcel is a collection of PHP classes built on top of Eloquent ORM (from Laravel framework), that provides a fluent interface to connect and get data directly from a WordPress database.You can … Continued

How to Test File Uploads in Laravel

Laravel makes it really easy to test if a file was uploaded in phpunit. Lets take a look at what it it takes to test for files. Lets say that we have a method containing the following code that we want to test. The corresponding test that would provide coverage for that code is the … Continued

Time Saving Shell Aliases For Laravel Sail

I find it tiring to type the same long commands out repeatedly. When working locally, I’m currently using Laravel Sail for my environment. Laravel Sail describes itself using the following. Laravel Sail is a light-weight command-line interface for interacting with Laravel’s default Docker development environment. Sail provides a great starting point for building a Laravel application … Continued