Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

murze.be:
★ When to use Gate::after in Laravel
Apr 24, 2019 @ 19:00:01

In a Laravel app policies are a great way to organize authorization logic that revolves around models. For the longest time, I've been using Gate::before to allow superadmins to do anything they want. While working on a new app, it finally clicked how Gate::after can be useful too. I'd like to shar...

tagged:

Link: https://murze.be/when-to-use-gateafter-in-laravel


Trending Topics: