Installation
composer require langsys/laravel-api-keys -
Require the package:
Terminal window composer require langsys/laravel-api-keys -
Publish migrations (and optionally the config), then migrate:
Terminal window php artisan vendor:publish --tag=api-keys-migrationsphp artisan vendor:publish --tag=api-keys-config # optionalphp artisan migrate
The migrations skip tables your application already has, so publishing them into an app that already models API keys or permissions is a safe no-op. A table that exists with an incompatible shape is not skipped silently — the migration fails with the table name and the missing columns, rather than installing cleanly and failing later at query time.
Next: creating keys.