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

★ When to use Gate::after in Laravel
Apr 24, 2019 @ 14: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...


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

Trending Topics: