day2在基础控制器里面¥this->request ,$this->response,把用户信息存在session,封装jsonResult返回值,Redis门面和Cache不一样

周一

 

在父类里面添加

¥this->requesrt=

¥this->response = response();

 

 

 

存在session里面

var_dump(\Auth::user()->toArray());die;

 

 

 

jsonResult

Code ,data,message

 

 

 

Redis门面

Cache门面不一样

 

 

1邮件

2队列

3redis

4cache

5基础控制器

6定时任务

7policy

https://www.lijinma.com/blog/2016/12/14/laravel-policy/

http://laravelacademy.org/post/6823.html

posted @ 2017-12-18 23:31  克维拉  阅读(272)  评论(0编辑  收藏  举报