laravel-liberu / control-panel-api
Control Panel API for Laravel Liberu
Fund package maintenance!
laravel-liberu
Installs: 2 824
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- laravel-liberu/api: ^1.2
- laravel-liberu/control-panel-common: ^2.0
- laravel-liberu/core: ^8.0
- laravel-liberu/enums: ^2.0
- laravel-liberu/helpers: ^2.0
- laravel-liberu/logs: ^4.0
Requires (Dev)
- rector/rector: ^0.17.0
- dev-master
- v3.2.15
- v3.2.14
- v3.2.13
- v3.2.12
- v3.2.11
- v3.2.10
- v3.2.9
- v3.2.8
- v3.2.7
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.15
- 3.1.14
- 3.1.13
- 3.1.12
- 3.1.11
- 3.1.10
- 3.1.9
- 3.1.8
- 3.1.7
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.5.9
- 2.5.8
- 2.5.7
- 2.5.6
- 2.5.5
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.0
- 2.3.8
- 2.3.7
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.19
- 2.0.18
- 2.0.17
- 2.0.16
- 2.0.15
- 2.0.14
- 2.0.13
- 2.0.12
- 2.0.11
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
This package is auto-updated.
Last update: 2024-12-14 10:49:09 UTC
README
Control Panel API
The package depends on the Laravel/Passport official package.
Installation
Follow the next steps for completing the Passport package install:
- run
composer require laravel-liberu/ControlPanelApi
- run
php artisan migrate
- run
php artisan passport:install
- set
'driver' => 'passport',
insideconfig/auth.php
for the api guard. - publish the laravel passport FE components:
php artisan vendor:publish --tag=passport-components
- register the components in
resources/js/app.js
- Vue.component('passport-clients', require('./components/passport/Clients.vue'));
- Vue.component('passport-authorized-clients', require('./components/passport/AuthorizedClients.vue'));
- Vue.component('passport-personal-access-tokens', require('./components/passport/PersonalAccessTokens.vue'));
- compile the js assets
npm run dev
,gulp
, etc. - include the component
<passport-clients></passport-clients>
where desired. Optionally, you may use themanage-oauth-tokens
permission to allow just admins to manage the clients.
Next steps are required for this package:
- Use the FE to define an OAuth client, and take note of the ID and the secret (you'll need these in the client that consumes the services)
Note The packages comes with the manage-oauth-tokens
policy that allows you to only show the passport-clients
VueJS component to admins.
Contributions
are welcome. Pull requests are great, but issues are good too.
License
This package is released under the MIT license.