Framework code complexity comparison

On his new blog on Medium, Taylor Otwell, creator of Laravel, published some statistics on the code complexity of various popular PHP frameworks. Draw your own conclusion. Last week as I was refactoring and cleaning Laravel for the 5.4 release, Graham Campbell showed me some code complexity statistics for the framework. I decided to compare […]

Continue reading →

Looking back on the year

Laravel News published a nice overview of what happened in the Laravel ecosystem in 2016. As 2016 is coming to a close it’s a great time to look back on the year and see just how much progress has been made. Laravel had a busy year with 5.3 being released, Laracon, updates to all the […]

Continue reading →

Some request filtering macros

In a gist on GitHub Adam Wathan shares some macros that can be used to clean up a request. Allows you to trim things, lowercase things, whatever you want. Pass a callable or array of callables that each expect a single argument: Request::macro(‘filter’, function ($key, $filters) { return collect($filters)->reduce(function ($filtered, $filter) { return $filter($filtered); }, […]

Continue reading →

An unofficial Forge API

You might not know this but Forge already has an API, it’s just not a documented and feature complete one. Open up your dev tools and inspect the web requests being sent while you do various stuff on Forge. Marcel Pociot published a new package called Blacksmith (great name Marcel) that can make calls to […]

Continue reading →

Some people to follow on Twitter

There are a lot of developers active on Twitter. Most of them tweet out interesting links, their opinions or stuff they’re working on. I think Twitter is an excellent tool to stay in touch with what’s going on in the Laravel and PHP community. If you’re looking for some people to follow here are some […]

Continue reading →

Building a switch Blade directive

Inani El Houssain created a switch Blade directive. It’s a good primer if you want to learn how to create Blade directives yourself. One of the good points of Laravel’s framework is that it allows you to make your own components, macros and directives. so today we will make use of Laravel’s Custom Blade directives […]

Continue reading →