{"id":27206152,"url":"https://github.com/buildwithyab/flightdeck","last_synced_at":"2025-04-09T23:10:10.875Z","repository":{"id":48899876,"uuid":"179698167","full_name":"buildwithyab/flightdeck","owner":"buildwithyab","description":"Level up your Laravel API","archived":false,"fork":false,"pushed_at":"2025-01-08T21:24:56.000Z","size":196,"stargazers_count":5,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T23:10:04.662Z","etag":null,"topics":["api","laravel","php","token"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buildwithyab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-05T14:33:07.000Z","updated_at":"2024-08-26T17:34:39.000Z","dependencies_parsed_at":"2025-02-21T17:14:33.220Z","dependency_job_id":"02fddb0a-2222-4f81-adb8-e78023f7442b","html_url":"https://github.com/buildwithyab/flightdeck","commit_stats":null,"previous_names":["buildwithyab/flightdeck"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildwithyab%2Fflightdeck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildwithyab%2Fflightdeck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildwithyab%2Fflightdeck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildwithyab%2Fflightdeck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildwithyab","download_url":"https://codeload.github.com/buildwithyab/flightdeck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125613,"owners_count":21051770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","laravel","php","token"],"created_at":"2025-04-09T23:10:10.306Z","updated_at":"2025-04-09T23:10:10.861Z","avatar_url":"https://github.com/buildwithyab.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlightDeck - Level up your Laravel API\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/yabhq/flightdeck.svg?style=flat-square)](https://packagist.org/packages/yabhq/flightdeck)\n[![CircleCI](https://img.shields.io/circleci/project/github/yabhq/flightdeck/master.svg)](https://circleci.com/gh/yabhq/flightdeck)\n[![Quality Score](https://img.shields.io/scrutinizer/g/yabhq/flightdeck.svg?style=flat-square)](https://scrutinizer-ci.com/g/yabhq/flightdeck)\n[![Total Downloads](https://img.shields.io/packagist/dt/yabhq/flightdeck.svg?style=flat-square)](https://packagist.org/packages/yabhq/flightdeck)\n\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require yabhq/flightdeck\n```\n\n## Usage\n\nGenerate new API key for authorization\n```bash\nphp artisan flightdeck:generate app1\n```\n\nList all available API keys\n```bash\nphp artisan flightdeck:list\n```\n\n## Multi-Auth\n\nFlightDeck makes authenticating users with multiple guards a breeze.\n\nSuppose you wish to add support for login, logout and token refreshing for a hypothetical \"customer\" user type.\n\nSimply extend the FlightDeck `AuthController` class as follows:\n\n```php\n\u003c?php\n\nnamespace App\\Http\\Controllers\\Customer;\n\nuse Yab\\FlightDeck\\Http\\Controllers\\AuthController as FlightAuthController;\n\nclass AuthController extends FlightAuthController\n{\n    /**\n     * Get the guard to be used for login, logout and token refreshes.\n     *\n     * @return \\Illuminate\\Contracts\\Auth\\StatefulGuard\n     */\n    protected function guard()\n    {\n        return auth()-\u003eguard('customer');\n    }\n}\n```\n\nYou can also extend `FlightDeckForgotPasswordController` and `FlightDeckResetPasswordController` in a similar way.\n\n## Testing\n\n``` bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email us instead of using the issue tracker.\n\n## Credits\n\n- [Chris Blackwell](https://github.com/chrisblackwell)\n- [Jim Hlad](https://github.com/jimhlad)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildwithyab%2Fflightdeck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildwithyab%2Fflightdeck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildwithyab%2Fflightdeck/lists"}