{%title%}
{%description%}
Laravel
I mainly work on Laravel as my PHP framework, so this is a central category of projects that relate to the Laravel PHP framework with tips and also projects.
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...
9 min read →November 28, 2020
How to Get Paddle PayLinks from a backend API Controller in Laravel
This is the follow up post to using a renderless component for Paddle paylinks. Sometimes you may have na application that has a few subscription options, sometimes not. If you have a few...
4 min read →November 13, 2020
Dynamically load Cashier Paddle buttons with renderless component
A project I have been working on has been in need of an improved billing system, with the release of the cashier-paddle package I was able to add some subscriptions to the app. Working with the...
5 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.
3 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.
11 min read →