PHP code example of lamhuyvu92 / valentin-laravel-aws-cognito
1. Go to this page and download the library: Download lamhuyvu92/valentin-laravel-aws-cognito 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/ */
lamhuyvu92 / valentin-laravel-aws-cognito example snippets
'providers' => [
...
lamhuyvu92\LaravelAwsCognito\ServiceProvider::class,
...
]
protected $middlewareGroups = [
'api' => [
...
lamhuyvu92\LaravelAwsCognito\Middleware\CognitoAuthenticationMiddleware,
...
],
];
protected $routeMiddleware = [
...
'aws-cognito' => lamhuyvu92\LaravelAwsCognito\Middleware\CognitoAuthenticationMiddleware,
...
];
'guards' => [
'aws-cognito' => [
'driver' => 'aws-cognito',
'provider' => 'eloquent',
],
],
bash
# Install Composer
curl -sS https://getcomposer.org/installer | php
php artisan vendor:publish --provider="lamhuyvu92\LaravelAwsCognito\ServiceProvider"