eduzz/accounts-laravel-adapter
最新稳定版本:v1.35
Composer 安装命令:
composer require eduzz/accounts-laravel-adapter
包简介
Pacote de integração do Eduzz Account com o Laravel Jetstream.
README 文档
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).
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-08