Export an Eloquent Collection to a CSV with League CSV
A tutorial on using the League/CSV package to export a Laravel Eloquent collection to a downloadable CSV file.
A tutorial on using the League/CSV package to export a Laravel Eloquent collection to a downloadable CSV file.
Explains Laravel 5.0's Eloquent attribute casting feature, which automatically converts model attributes to specific data types like boolean or integer.
A discussion of different approaches to organizing PHP class namespaces, focusing on modularity and cohesion in small-to-medium apps.
An introduction to PHP namespaces, explaining their purpose, syntax, and how to use them for better code organization.
A guide to customizing FOSUserBundle in Symfony, covering redirect targets and flash messages for version 1.3.
A guide to the new event and handler system in Laravel 5.0, explaining how to create and bind them.
A tutorial on how to re-enable the Whoops error handler in Laravel 5.0, providing prettier error pages for debugging.
A guide on upgrading a Laravel 4 application to Laravel 5 by starting from a fresh install and migrating code.
Explains the new Commands & Handlers feature in Laravel 5.0, using a 'Duplicate Talk' example from a conference app.
A WordPress code snippet to restrict authors to only view their own posts in the admin post overview.
A WordPress code snippet to restrict authors to only view their own uploaded images in the media library.
A technical guide on setting up a Sculpin static site generator blog and deploying it using Laravel Forge.
A tutorial showing how to create a simple HTML redirect page, with both a PHP-enhanced version and a plain HTML/JavaScript version.
A guide to improving Drupal site performance by identifying and removing unused modules to reduce memory footprint and optimize server response.
A guide to installing and using PHP-CS-Fixer to automatically format PHP code according to PSR-2 standards.
Explains how Laravel 5.0 simplifies environment detection using PHP dotenv and the .env file for configuration management.
An analysis of why image hosting websites struggle to remain profitable without sacrificing quality and user experience, using Imgur as a case study.
Explores the now-removed Event Annotations feature in Laravel 5.0, which allowed binding event listeners using code annotations.
Explains the new Middleware feature in Laravel 5.0, which replaces the traditional filter-style architecture for handling HTTP requests.
Explains the removed Route Annotations feature in Laravel 5.0, which allowed defining routes via PHP DocBlock comments in controllers.