ronasit/laravel-clerk
最新稳定版本:1.1
Composer 安装命令:
composer require ronasit/laravel-clerk
包简介
Package provides auth guard to auth user via the Clerk
README 文档
README
Laravel Clerk Guard
Introduction
This package offers an authentication guard to seamlessly integrate Clerk authentication into your Laravel project.
Installation
- Use Composer to install the package:
composer require ronasit/laravel-clerk
- Run package's
installcommand
php artisan laravel-clerk:install
- Populate the necessary configuration options in
config/clerk.php.
Usage
By default, your app returns the User class with just the external_id property, which holds the user's ID in Clerk.
To customize this behavior, you'll need to create your own UserRepository that implements the UserRepositoryContract.
Then, rebind it in one of the service providers:
use RonasIT\Clerk\Contracts\ClerkUserRepositoryContract; use App\Support\Clerk\MyAwesomeUserRepository; class AppServiceProvider extends ServiceProvider { public function boot(): void { $this->app->bind(ClerkUserRepositoryContract::class, MyAwesomeUserRepository::class); } }
统计信息
- 总下载量: 5.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-04