Protecting Routes with Invoke

Protect Laravel Routes with Invoke
Photo by Pixabay

Chris Cornutt has a new tutorial showing how to implement the Invoke package with Laravel to restrict routes.

For those not familiar with Invoke:

The Invoke system helps you protect your application based on the endpoints and the URI requested. It uses a configuration file (or array of settings) to define the permissions needed to request a resource. For example, it will let you define things like:

“For this endpoint, I want to allow only authenticated users that have the group named ‘test’ to get through”.

Chris goes through the installation, setup, and creates an example middleware.

Visit Resource →


Filed in: Laravel Tutorials / Routing


Newsletter

Join the weekly newsletter and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Senior PHP/Laravel Developer: Your Dream Work Environment
Remote
iPhone Photography School
In-house Laravel Developer.
Gold Coast / Australia
MXstore
Laravel Developer
Oak Brook, IL
Tidal Commerce
Senior Backend Engineer
Santa Monica only
Saatchi Art
Senior Laravel Developer
San Francisco
Stitch Labs
Senior Software Developer
South Jordan, UT
Lendio
Full-Stack Developer
Paris, France
Wingly