Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yabhq/flightdeck

Level up your Laravel API
https://github.com/yabhq/flightdeck

api laravel php token

Last synced: 29 days ago
JSON representation

Level up your Laravel API

Awesome Lists containing this project

README

        

# FlightDeck - Level up your Laravel API

[![Latest Version on Packagist](https://img.shields.io/packagist/v/yabhq/flightdeck.svg?style=flat-square)](https://packagist.org/packages/yabhq/flightdeck)
[![CircleCI](https://img.shields.io/circleci/project/github/yabhq/flightdeck/master.svg)](https://circleci.com/gh/yabhq/flightdeck)
[![Quality Score](https://img.shields.io/scrutinizer/g/yabhq/flightdeck.svg?style=flat-square)](https://scrutinizer-ci.com/g/yabhq/flightdeck)
[![Total Downloads](https://img.shields.io/packagist/dt/yabhq/flightdeck.svg?style=flat-square)](https://packagist.org/packages/yabhq/flightdeck)

## Installation

You can install the package via composer:

```bash
composer require yabhq/flightdeck
```

## Usage

Generate new API key for authorization
```bash
php artisan flightdeck:generate app1
```

List all available API keys
```bash
php artisan flightdeck:list
```

## Multi-Auth

FlightDeck makes authenticating users with multiple guards a breeze.

Suppose you wish to add support for login, logout and token refreshing for a hypothetical "customer" user type.

Simply extend the FlightDeck `AuthController` class as follows:

```php
guard('customer');
}
}
```

You can also extend `FlightDeckForgotPasswordController` and `FlightDeckResetPasswordController` in a similar way.

## Testing

``` bash
composer test
```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## Security

If you discover any security related issues, please email us instead of using the issue tracker.

## Credits

- [Chris Blackwell](https://github.com/chrisblackwell)
- [Jim Hlad](https://github.com/jimhlad)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.