https://github.com/buildwithyab/flightdeck
Level up your Laravel API
https://github.com/buildwithyab/flightdeck
api laravel php token
Last synced: over 1 year ago
JSON representation
Level up your Laravel API
- Host: GitHub
- URL: https://github.com/buildwithyab/flightdeck
- Owner: buildwithyab
- License: mit
- Created: 2019-04-05T14:33:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-08T21:24:56.000Z (over 1 year ago)
- Last Synced: 2025-04-09T23:10:04.662Z (over 1 year ago)
- Topics: api, laravel, php, token
- Language: PHP
- Homepage:
- Size: 191 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# FlightDeck - Level up your Laravel API
[](https://packagist.org/packages/yabhq/flightdeck)
[](https://circleci.com/gh/yabhq/flightdeck)
[](https://scrutinizer-ci.com/g/yabhq/flightdeck)
[](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.