![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Laravel
鱼满仓
1.https://github.com/luolaifa000 /br
2.不要把递归想复杂,想简单点。
展开
-
Laravel Log 流程
Laravel 记录日志也是用了monolog/log ,只是在上面加了一层可配置和包裹了一层测试代码Log::channel('zip')->info(' begin');对应日志配置'zip' => [ 'driver' => 'daily', 'path' => storage_path('logs/zip/zip.log'), ...原创 2020-04-02 13:19:59 · 2732 阅读 · 0 评论 -
Laravel Cache流程
记录一下,省的每次忘记都要重新看下源码dd(Cache::get(1));exit();Cache::put(1,2,3);exit();dd(app('cache'));这里注入了CACHE的门面类class CacheServiceProvider extends ServiceProvider{ /** * Indicates if loading of ...原创 2019-07-09 14:48:21 · 2642 阅读 · 0 评论 -
CURL远程大文件,重定向给浏览器下载
需求背景:最近在做一个项目,用户下载文件后端用的是LARAVEL框架,先贴出代码:return (new StreamedResponse(function() use ($id, $model) {// $handle = fopen('php://output', 'w'); $ch = curl_init();// ...原创 2019-06-24 17:07:15 · 788 阅读 · 0 评论 -
Laravel 框架和路由中间件
路由中间件处理代码框架中间件处理代码原创 2019-07-31 14:34:34 · 407 阅读 · 0 评论 -
Laravel 队列执行流程
执行队列php artisan queue:work执行队列过程,从queues:detault:delayed有序集合拿出到期的JOB数据放到queues:detault队列中,然后从首先从queues:detault 队列拿出要执行的JOB数据放入到queues:detault:reserved有序集合中,然后laravel 这边的延迟队列使用了三个队列。queue:de...原创 2019-07-26 16:30:31 · 2471 阅读 · 0 评论