Welcome 0_o

You have arrived at Reece May's spot of static text

I enjoy programming and building things that work. If there is a bug somewhere I find how to fix it.

This website is a central place for any articles tutorials or tips I share. I will also share the occasional riddle or two.

July 6, 2020

Use Morph Map names to resolve Model for Laravel Gate Policies 4 min read

When using the Blade directives in Laravel for authorizing resources and actions such as the @can and @cannot you have to place the classes full path into the function, eg @can(\App\User::class) or @can('App\User').

I had a cunning plan to extend the way the Gate class resolves the models in the same way as it does with Policy classes.

Read →

July 3, 2020

Hello There

The classic first post on the new website story.

1 min read →

December 21, 2019

Custom Token Authentication for Laravel

Integrate with the default Laravel Auth system for API requests. And log the requests that come through, whether successful or not.

14 min read →