Really great answer on StackOverflow, take a look:
Jul 25, 2019
3
Level 4
Difference between Gates and Middleware
So I’ve read this article about gates/policies
https://www.google.com/amp/s/appdividend.com/amp/2017/12/13/laravel-gates-tutorial-example-scratch/
And My question was, whats the difference between writing a middleware and gates. In this scenario, I could have used a middleware to block the user from accessing route correct? Can someone please show me other cases used for gates instead of middleware?
Please or to participate in this conversation.