Skip to content

From the blog

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