PHP

★ How to add a spotlight-like search field to your Laravel app

[AdSense-A]

As developers, we tend to like shortcuts to speed up our workflow. One of the tools I'm using to speed up doing stuff on my Mac is Raycast. It offers a lovely command palette that allows opening apps and URLs, working with clipboard history, and much more.

Wouldn't it be nice to also add such a command palette to a Laravel app? This way, power users of your app can get around quickly and perform small tasks without having to click around.

The good news is that there's already a package to add such a thing: Spotlight by Philo Hermans. In this blog post, I'd like to show how we use this fantastic package at Oh Dear.

(more…)

By , ago
PHP

Extensible Blade Components

In this post, Marcus explains the fundamentals of Blade components. A great introduction or review, this post walks you through the process of creating an extensible button component that contains the code common between button Read more…

By , ago
PHP

Laravels Command Bus

In Laravel 5.1 the Command Bus was replaced with Dispatchable Jobs, we can still use them but let us also look at how to add a Command Bus. Read more

By , ago
PHP

Adapter Pattern in PHP

Of all of the design patterns you could use in your code, the adapter pattern is one of my all time favourites. It allows you to abstract the implementation to an adapter that implements an Read more…

By , ago