I enjoy sharing knowledge. So enjoy the list of tutorials below.

March 12, 2021

Static Form Submission To Laravel Using Next.js [Part 1]

We shall consider an interesting way to implement your own way of handling static forms with a Laravel application and a static website such as Next.js or even things like Svelte, Gatsby and the list...

10 min read →

March 11, 2021

Static Form Submission To Laravel Using Next.js Api [Part 2]

This post will go through setting up your Next.js application to send your static form data to your Laravel application we setup in part one. If you haven't gone through that one yet,...

8 min read →

July 6, 2020

Use Morph Map names to resolve Model for Laravel Gate Policies

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.

4 min read →