thisismhp/laravel_auth_except

v1.1.1 2020-03-27 20:31 UTC

This package is auto-updated.

Last update: 2020-03-27 20:33:31 UTC


README

A php class for laravel framework that add routes except to authenticate middleware

Usage

In app/Http/Middleware/Authenticate.php change

use Illuminate\Auth\Middleware\Authenticate as Middleware;

with

use LaravelAuthExcept\Authenticate as Middleware;

and fill except array like below :

$except = ['/foo', '/bar' => ['GET', 'POST'], '/api/zee' => 'GET'];

we not support dynamic route yet. ('post/{id}');

#TODO

Add support for dynamic routes.