您正在查看: 2018年5月
nginx 443端口
```
server {
listen 443;
server_name catch-doll.hooook.com;
root "/var/www/catch-doll-backend/public";
index index.html index.htm index.php;
ssl on;
ssl_certifi...
laravel5.5.40使用jwt做权限认证
# 一、运行composer 加载依赖包
```
composer require tymon/jwt-auth 1.0.0-rc.1
```
![](https://cos.cc430.cn/2018/05/19/1526712442.png)
# 二、发布jwt配置文件
```
php artisan vendor:publish --provider="Tymon\JWT...
laravel(lumen)通用返回方法
app/Models/CommonResponse.php
```php
```
app\Http\Controllers\Controller.php
```php
laravel对数据记录以创建时间年月日分组
```php
/**
* 安卓端操作店铺优惠券->优惠券管理
* @param Request $request
* @return string
*/
public function ShopCouponManagement(Request $request,$shopId)
{
$ShopCoupo...