Laravel authorization best practices and tips

When using roles and permissions, only authorize based on permissions  With the Laravel Permission package by Spatie, you get access to roles and permissions. They provide the ability to assign…

How to use authorization in Laravel: Gates, policies, roles and permissions

In a previous entry, I mentioned the importance of hand-in-hand authorization and authentication. Now, let’s talk about the many ways that Laravel provides to apply authorization to your application.  The…

Authentication vs. authorization: Which one should you use, and when?

What’s the difference between authentication and authorization? Does it matter which you use — or do you need both? Are they the secure app’s chicken and egg conundrum? Let’s dive…