A Laravel package to impersonate users

A great feature of Laravel Spark is it’s ability to impersonate other users. As an admin you can view all screens as if you are logged in as another user. This allows you to easily spot a problem that your user might be reporting. Laravel-impersonate is a package, made by MarceauKa and Thibault Chazottes that […]

Continue reading →

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 →