Although there's many ways to do this in Laravel, the simplest way is with a piece of web middleware. The setup When an authe...
Read morePosts
The other day, I wrote an article on how to achieve a similar effect to computed properties in Alpine.js. The approach that I...
Read moreAt its core, Alpine depends on an x-data attribute. At the time of writing this article, there isn't any other way to let Alp...
Read moreI've been trying to use Alpine.js more and more throughout my projects, both personal and professional. At work, most of the ...
Read moreFor anyone who has used PHP before, you're probably familiar with the array_unique() function. You would use it like this: ar...
Read moreFor example, after a model gets created I don't want anyone to be able to update that record again. Instead, it should get ov...
Read moreIf you're a part of the Laravel community, you've probably already heard of Alpine. It's a minimalistic JavaScript framework ...
Read more