cgdsoftware / control-panel-api
Control Panel API for Laravel Enso
v3.2.3
2023-01-27 23:01 UTC
Requires
- cgdsoftware/action-logger: ^3.1
- cgdsoftware/api: ^1.2
- cgdsoftware/control-panel-common: ^2.0
- cgdsoftware/core: ^8.0
- cgdsoftware/enums: ^2.0
- cgdsoftware/helpers: ^2.0
- cgdsoftware/logs: ^4.0
- dev-master
- 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
- dev-upgrade/laravel8
- dev-fixes/stylci
- dev-feature/renamesRoutes
- dev-feature/improvesLogicInSeeder
This package is auto-updated.
Last update: 2024-11-16 00:02:26 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-enso/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.