定制 bitfumes/laravel-breezer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bitfumes/laravel-breezer

Composer 安装命令:

composer require bitfumes/laravel-breezer

包简介

Full API authentication in laravel with social login

README 文档

README

Software License GitHub issues Total Downloads Build Status

Install

composer require bitfumes/laravel-breezer

Steps to follow

Steps 1

  1. Add Breezer trait to your user model.

  2. Add Contract MustVerifyEmail to your authenticatable model if you want to enable email verification.

use Bitfumes\Breezer\Traits\Breezer;
use Illuminate\Contracts\Auth\MustVerifyEmail;

class User extends Authenticatable implements MustVerifyEmail
{
    use Notifiable, Breezer;
    ...
}

Step 2

Now publish two new migrations

  1. To add avatar field to your use model.
  2. To add social login profile.
php artisan vendor:publish --tag=breezer:migrations

Step 3

After getting migrations in your laravel application, its time to have these tables in your database.

php artisan migrate

Step 4

Set your frontend URL on your .env file FRONT_URL

Set frontend Verify Email URL on your .env file BREEZER_VERIFY_URL

Set frontend password reset URL on your .env file BREEZER_RESET_URL

Step 5

Because every user need to verify its email and to send email we are going to use laravel queue.

Now add queue driver on your .env file

That's it, now enjoy api auth with JWT

QUEUE_DRIVER=database

Testing

Run the tests with:

vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security-related issues, please email sarthak@bitfumes.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 3.41k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固