PHP code example of willfd / auth0middlewarepackage
1. Go to this page and download the library: Download willfd/auth0middlewarepackage library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
willfd / auth0middlewarepackage example snippets
use willfd\auth0middlewarepackage\MiddlewarePackageServiceProvider;
...
return [
MiddlewarePackageServiceProvider::class
];
$middleware->alias([
'package' => Auth0AuthenticateMiddleware::class,
]);
Route::middleware('package:write:example-scope')
bash
php artisan vendor:publish