Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyputi committed Apr 4, 2019
1 parent 0360529 commit d2533fd
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions README.md
Expand Up @@ -74,6 +74,11 @@ php artisan passport:install

Edit config/auth.php to suit your needs. A simple example:

```bash
$ mkdir config
$ cp vendor/laravel/lumen-framework/config/auth.php config
```

```php
return [
'defaults' => ['guard' => 'api'],
Expand Down Expand Up @@ -111,7 +116,7 @@ class AuthServiceProvider extends ServiceProvider
* @return void
*/
public function register()
{
{

}

Expand All @@ -121,7 +126,7 @@ class AuthServiceProvider extends ServiceProvider
* @return void
*/
public function boot()
{
{
// register passport routes
Passport::routes();

Expand Down Expand Up @@ -202,7 +207,7 @@ class RevokeOtherTokens
* @return void
*/
public function __construct()
{
{
//
}

Expand All @@ -213,7 +218,7 @@ class RevokeOtherTokens
* @return void
*/
public function handle(AccessTokenCreated $event)
{
{
Token::where(function($query) use($event){
$query->where('user_id', $event->userId);
$query->where('id', '<>', $event->tokenId);
Expand All @@ -238,7 +243,7 @@ class PruneRevokedTokens
* @return void
*/
public function __construct()
{
{
//
}

Expand All @@ -249,7 +254,7 @@ class PruneRevokedTokens
* @return void
*/
public function handle(AccessTokenCreated $event)
{
{
Token::where(function($query) use($event){
$query->where('user_id', $event->userId);
$query->where('id', '<>', $event->tokenId);
Expand Down

0 comments on commit d2533fd

Please sign in to comment.