zdirnecamlcs96/laravel-auth
最新稳定版本:v1.0.0
Composer 安装命令:
composer require zdirnecamlcs96/laravel-auth
包简介
Authentication for laravel
README 文档
README
We're using Laravel Passport or Laravel Sanctum for api authetication.
Requirement:
- Laravel 9 and above
- Choose either
Laravel PassportorLaravel Sanctum
Setup
- First, run
php artisan migrateto setup migration in database - If you're using Laravel Passport, please run
php artisan passport:installto install oauth client key - Extend use
Zdirnecamlcs96\Auth\Models\User as Base - Import either one of the Trait in
app/Models/User.phpfile
use Laravel\Passport\HasApiTokens;
use Laravel\Sanctum\HasApiTokens;
- You may publish the
config/authetication.phpand modify themode. - All done. You may test your auth with Postman.
Available Contracts
| Contract | Description |
|---|---|
| - | - |
Available Tratis
| Trait | Description |
|---|---|
Zdirnecamlcs96\Auth\Traits\HasSocialIdentity |
Add SocialIdentity relationship with third party token |
Zdirnecamlcs96\Auth\Traits\HasContact |
Add Contact relationship with verification status |
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-04-20