eduzz / accounts-laravel-adapter
Pacote de integração do Eduzz Account com o Laravel Jetstream.
v1.35
2023-03-09 16:58 UTC
Requires
- php: ^8.1
- doctrine/dbal: ^3.6.0
- illuminate/contracts: ^8.0|^9.0|^10.0
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^1.0
- pestphp/pest-plugin-laravel: ^1.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
- dev-main
- v1.35
- v1.34
- v1.33
- v1.32
- v1.31
- v1.30
- v1.29
- v1.28
- v1.27
- v1.26
- v1.25
- v1.24
- v1.23
- v1.22
- v1.21
- v1.20
- v1.19
- v1.18
- v1.17
- v1.16
- v1.15
- v1.14
- v1.13
- v1.12
- v1.11
- v1.10
- v1.9
- v1.8
- v1.7
- v1.6
- v1.5
- v1.4
- v1.3
- v1.2
- v1.1
- v1.0
- dev-dependabot/github_actions/dependabot/fetch-metadata-1.6.0
- dev-dependabot/github_actions/aglipanci/laravel-pint-action-2.3.0
This package is auto-updated.
Last update: 2024-11-03 08:38:36 UTC
README
Módulo para utilizar o Eduzz Account com uma aplicação Laravel que utiliza o Jetstream.
Instalação
Instale o pacote via composer:
composer require eduzz/accounts-laravel-adapter
Você deve publicar as configurações com:
php artisan vendor:publish --tag="adapter-config"
Você deve publicar e executar as migrations com:
php artisan vendor:publish --tag="adapter-migrations"
php artisan migrate
Este é o conteúdo do arquivo de configuração publicado:
return [ /** * Enable/disable the Eduzz Account button. */ 'enabled' => env('EDUZZ_ACCOUNTS_ENABLED', true), /** * Url to get back the results of the login attempt. */ 'callbackUrl' => env('EDUZZ_ACCOUNTS_CALLBACK_URL', '/eduzz/callback/'), /** * Eduzz credentials of this app. */ 'id' => env('EDUZZ_ACCOUNTS_ID'), 'secret' => env('EDUZZ_ACCOUNTS_SECRET'), /** * Url to redirect the user after the login. */ 'redirect_to' => '/login', /** * The column name to store the Eduzz Account ID. */ 'tableColumn' => 'eduzz_account_id', /** * Define if the app use Teams. */ 'hasTeams' => true, /** * The app logo to show in the login page. */ 'logo' => '', /** * The background image to show in the login page. */ 'backgroundImage' => '', /** * Define the button color. */ 'buttonColor' => '#000', /** * Set the Eduzz Account Controller class. */ 'routeController' => \Eduzz\AccountsLaravelAdapter\AccountsLaravelAdapterController::class, /** * The Eduzz Account url API. */ 'productionApiUrl' => env('EDUZZ_ACCOUNT_API_URL'), 'testingApiUrl' => env('EDUZZ_ACCOUNT_TESTING_API_URL'), ];
Também importe os estilos css do botão em app.css:
@import "/vendor/eduzz/accounts-laravel-adapter/resources/dist/button.css";
Opcionalmente, você pode publicar as view com:
php artisan vendor:publish --tag="adapter-views"
Uso
Na sua view do blade, use:
<x-eduzz-account-login-button>Login com Eduzz Account</x-eduzz-account-login-button>
Testando
composer test
Licença
MIT License (MIT).