Looking to hire Laravel developers? Try LaraJobs

canned-laravel-helper maintained by curatorc

Description
laravel 辅助函数
Author
Last update
2022/11/25 03:08 (dev-master)
License
Links
Downloads
91

Comments
comments powered by Disqus

Installing

Git 库引用(推荐)

composer require curatorc/canned-laravel-helper

本地引用

  • 克隆仓库至项目目录的平级目录

    在项目根目录的上一级目录运行

    git clone git@github.com:CuratorC/canned-laravel-helper.git
    
  • 添加本地库源

    在项目根目录运行

    composer config repositories.canned-laravel-helper path ../canned-laravel-helper
    
  • 引用SDK

    composer require curatorc/canned-laravel-helper:dev-master
    

Usage

发布基础文件

php artisan vendor:publish --provider="CuratorC\CannedLaravelHelper\ServiceProvider"

Passport

  • 创建生成安全访问令牌时所需的加密密钥
php artisan passport:keys
  • 生成 passport 数据表
php artisan migrate
  • 创建登录客户端
php artisan passport:client --password --name='example-app'
  • 发布自定义 grant_type
php artisan vendor:publish --provider="Sk\Passport\GrantTypesServiceProvider" --tag="config"

Contributing

You can contribute in one of three ways:

  1. File bug reports using the issue tracker.
  2. Answer questions or fix bugs on the issue tracker.
  3. Contribute new features or update the wiki.

The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.

License

MIT