I wanted to change the default
laravel.log file name for an application I'm working on. This is hard-coded into Laravel core, and so I had to get a bit fancy to do it. See how!
Here's a little bit about content negotiation in your Laravel application.
When we use Symfony's Console component to write CLI commands in PHP (and you should!), we're almost always writing any output to "stdout". This isn't necessarily good.
In this article, I'm going to cover an example of implementing some business logic in our usual Active Record patterns, and then I'll show how the same logic can be applied using the Data Mapper pattern. In both cases, we'll see how we can move our business logic into our business entities, thus avoiding anemic business domain. We'll also cover pros and cons of the two styles of ORMs and how they affect the way we write our code.
Lots of people have been asking about how to install HHVM with Nginx for use with Laravel. Here's how! This will cover material used in Vaprobash, my project for configuring Ubuntu virtual machine with Vagrant.
Laravel's documentation on Database Transactions describes wrapping our database calls within a closure. What if we need more power? Let's dig in to see what's going on behind the scenes, and what tools we have to work with Database Transactions in Laravel.
As of Laravel 4.1, the framework now uses StackPHP's implementation of Symfony's HttpKernel. This means we can add our own middleware to our HTTP layer! Here's how.
PHP's PDO has many attribute options you can configure. Here's how to set those in Laravel.
How to use raw queries safely.
Here's how to use multiple database connections within Laravel 4