<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[奴役人生]]></title><description><![CDATA[扩展眼界，展望未来。提高自己，认识自己。]]></description><link>https://blog.csdn.net/chen529834149</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; chen529834149]]></copyright><item><title><![CDATA[在使用laravel进行开发时能更有好的寻找代码中的bug及sql的优化]]></title><link>https://blog.csdn.net/chen529834149/article/details/85771194</link><guid>https://blog.csdn.net/chen529834149/article/details/85771194</guid><author>chen529834149</author><pubDate>Fri, 04 Jan 2019 13:29:05 +0800</pubDate><description><![CDATA[安装 Debugbar

使用 Composer 安装：


$ composer require &quot;barryvdh/laravel-debugbar:~3.1&quot; --dev

生成配置文件，存放位置 config/debugbar.php：


$ php artisan vendor:publish --provider=&quot;Barryvdh\Debugbar\ServiceProvider&quot;...]]></description><category></category></item><item><title><![CDATA[laravel图片上传，但是图片较大我们进行裁切处理]]></title><link>https://blog.csdn.net/chen529834149/article/details/85695021</link><guid>https://blog.csdn.net/chen529834149/article/details/85695021</guid><author>chen529834149</author><pubDate>Thu, 03 Jan 2019 14:39:18 +0800</pubDate><description><![CDATA[ 

先说一下裁切扩展

安装扩展包

Composer 安装

$ composer require intervention/image

配置信息
执行以下命令获取配置信息：


$ php artisan vendor:publish --provider=&quot;Intervention\Image\ImageServiceProviderLaravel5&quot;

 打开 config/image...]]></description><category></category></item><item><title><![CDATA[laravel中的图片上传封装的工具类]]></title><link>https://blog.csdn.net/chen529834149/article/details/85692927</link><guid>https://blog.csdn.net/chen529834149/article/details/85692927</guid><author>chen529834149</author><pubDate>Thu, 03 Jan 2019 14:05:14 +0800</pubDate><description><![CDATA[
&amp;lt;?php

namespace App\Handlers;

class ImageUploadHandler
{
    // 只允许以下后缀名的图片文件上传
    protected $allowed_ext = [&quot;png&quot;, &quot;jpg&quot;, &quot;gif&quot;, 'jpeg'];

    /**
     * ($request-&amp;gt;avatar, 'avatars', $user...]]></description><category></category></item><item><title><![CDATA[redis设计用户签到]]></title><link>https://blog.csdn.net/chen529834149/article/details/84836265</link><guid>https://blog.csdn.net/chen529834149/article/details/84836265</guid><author>chen529834149</author><pubDate>Wed, 05 Dec 2018 15:11:29 +0800</pubDate><description><![CDATA[ 

 

 

设计签到key

key  check-in：1  1/2/3/4/5/6/....... 1

 

chek-in(键名) ：1（用户id） 1/2/3/4/5.......（天数） ................是否签到(0-1).

命令行查看当前用户1 在1号是否签到.........

实例: getbit check_in:1 1


127.0.0.1:6379...]]></description><category></category></item><item><title><![CDATA[二维数组进行排序并且合并]]></title><link>https://blog.csdn.net/chen529834149/article/details/79286939</link><guid>https://blog.csdn.net/chen529834149/article/details/79286939</guid><author>chen529834149</author><pubDate>Thu, 08 Feb 2018 10:49:05 +0800</pubDate><description><![CDATA[之前项目要到一个这样的需求：表结构:我这边想实现一个 列表显示：某个时间下的（grouo_time年月日）哪位大咖(作者did)发表了哪些文章，合并到一起产品原型憋了很长时间，因为前期产品不固定，就让我们这群程序员开始写，写着写着需求又变了然后各种修改 ，搞的自己都开始怀疑人生了。laravel+ORM（mongodb）第一步:打印的结果如下:第二步：  $article_sort = self:...]]></description><category></category></item><item><title><![CDATA[在laravel中执行数据库迁移报在执行数据库迁移时提示:php artisan migrate   SQLSTATE[42000]: Syntax error or access violation]]></title><link>https://blog.csdn.net/chen529834149/article/details/79203406</link><guid>https://blog.csdn.net/chen529834149/article/details/79203406</guid><author>chen529834149</author><pubDate>Tue, 30 Jan 2018 11:00:46 +0800</pubDate><description><![CDATA[在执行数据库迁移时提示:php artisan migrate

 SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length 

特殊字段太长的问题，我的解决方案是：

aravel 5.4 改变了默认的数据库字符集，现在utf8mb4包括存储em]]></description><category></category></item><item><title><![CDATA[laravel实现搜索分页]]></title><link>https://blog.csdn.net/chen529834149/article/details/79201952</link><guid>https://blog.csdn.net/chen529834149/article/details/79201952</guid><author>chen529834149</author><pubDate>Tue, 30 Jan 2018 09:29:17 +0800</pubDate><description><![CDATA[一 、控制器
/*
 * 搜索
 */
public function sou(){
    //接值
    $name=Input::get('name');
    $start=Input::get('start');
    $end=Input::get('end');
    //拼接搜索条件
    $where='1';
    //模糊查询
    if(!empty($nam]]></description><category></category></item><item><title><![CDATA[描述 HTTP 动词描述操作]]></title><link>https://blog.csdn.net/chen529834149/article/details/79160800</link><guid>https://blog.csdn.net/chen529834149/article/details/79160800</guid><author>chen529834149</author><pubDate>Thu, 25 Jan 2018 13:35:34 +0800</pubDate><description><![CDATA[HTTP 设计了很多动词，来表示不同的操作，RESTful 很好的利用的这一点，我们需要正确的使用 HTTP 动词，来表明我们要如何操作资源。
先来解释一个概念，幂等性，指一次和多次请求某一个资源应该具有同样的副作用，也就是一次访问与多次访问，对这个资源带来的变化是相同的。

常用的动词及幂等性



动词
描述
是否幂等




GET
获取资源，单个或多个
是]]></description><category></category></item><item><title><![CDATA[在阿里云ECM如何搭建lnmp和apache]]></title><link>https://blog.csdn.net/chen529834149/article/details/79157788</link><guid>https://blog.csdn.net/chen529834149/article/details/79157788</guid><author>chen529834149</author><pubDate>Thu, 25 Jan 2018 09:40:36 +0800</pubDate><description><![CDATA[安装php||FPM

1、        wget在线安装php-7.0.7.tar.gz（版本随意选择）
2、        tar –zxvf php包名进行解压
3、        yum install gcc gcc++libxml2-devel
4、        cd  php目录
5、        php不能单独和ng进行交互，需要安装FPM http://php.]]></description><category></category></item><item><title><![CDATA[CentOS 7.0下使用yum安装MySQL]]></title><link>https://blog.csdn.net/chen529834149/article/details/79150069</link><guid>https://blog.csdn.net/chen529834149/article/details/79150069</guid><author>chen529834149</author><pubDate>Wed, 24 Jan 2018 14:02:25 +0800</pubDate><description><![CDATA[CentOS7默认数据库是mariadb,配置等用着不习惯,因此决定改成mysql,但是CentOS7的yum源中默认好像是没有mysql的。为了解决这个问题，我们要先下载mysql的repo源。

1.下载mysql的repo源

$ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

2.安装my]]></description><category></category></item><item><title><![CDATA[laravel 源码解析网站]]></title><link>https://blog.csdn.net/chen529834149/article/details/79147624</link><guid>https://blog.csdn.net/chen529834149/article/details/79147624</guid><author>chen529834149</author><pubDate>Wed, 24 Jan 2018 10:19:21 +0800</pubDate><description><![CDATA[https://laravel-china.org/whoops-learning-notes  Laravel
 文档阅读笔记
https://laravel-china.org/users/16272   Laravel
 源码分析笔记]]></description><category></category></item><item><title><![CDATA[在 Laravel 中动态隐藏 API 字段]]></title><link>https://blog.csdn.net/chen529834149/article/details/79141509</link><guid>https://blog.csdn.net/chen529834149/article/details/79141509</guid><author>chen529834149</author><pubDate>Wed, 24 Jan 2018 09:39:43 +0800</pubDate><description><![CDATA[我最近在 Laravel Brasil 社区看到一个问题，结果比看起来更有趣。想象一下你有一个 UsersResource 用下面的实现：

namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\Resource;
class UsersResource extends Resource
{
    /**
     *]]></description><category></category></item><item><title><![CDATA[laravel中的事务处理]]></title><link>https://blog.csdn.net/chen529834149/article/details/79140057</link><guid>https://blog.csdn.net/chen529834149/article/details/79140057</guid><author>chen529834149</author><pubDate>Tue, 23 Jan 2018 15:10:07 +0800</pubDate><description><![CDATA[你可以用 DB 门面的 transaction 方法在一个事务里执行一系列操作。如果事务闭包里抛出异常，那么事务就会自动回滚。如果闭包执行成功，那么事务就会自动提交。使用 transaction 方法就无需手动回滚或者提交事务了：
DB::transaction(function () {
    DB::table('users')->update(['votes' => 1]);

    ]]></description><category></category></item><item><title><![CDATA[laravel一键生成模型、控制器、视图、表单验证类等等]]></title><link>https://blog.csdn.net/chen529834149/article/details/79138812</link><guid>https://blog.csdn.net/chen529834149/article/details/79138812</guid><author>chen529834149</author><pubDate>Tue, 23 Jan 2018 13:53:48 +0800</pubDate><description><![CDATA[天下武功，为快不破，Laravel 最吸引人的地方，就是其开发上的高效。这一节我们来利用起上一章节安装的代码生成器，快速构建我们的帖子原型。
1、composer
require
'summerblue/generator:~0.5'
--dev
2、php
 artisan make:scaffold
 Projects 
如果想顺便生成数据库迁移文件可以这么写:
php
 ]]></description><category></category></item><item><title><![CDATA[在laravel中使用用户授权策略(policy)]]></title><link>https://blog.csdn.net/chen529834149/article/details/79137001</link><guid>https://blog.csdn.net/chen529834149/article/details/79137001</guid><author>chen529834149</author><pubDate>Tue, 23 Jan 2018 11:06:43 +0800</pubDate><description><![CDATA[应用场景：
假设本人的用户uid=1吗，现在我想修改个人资料user/1/edit，这时候，当我输入user/2/edit时，也能进入用户为2的个人资料进行修改。在laravel中
public function __construct()
    {
        $this->middleware('auth', ['except' => ['show']]);
    }

]]></description><category></category></item><item><title><![CDATA[在laravel中隐性路由模型绑定』]]></title><link>https://blog.csdn.net/chen529834149/article/details/79129648</link><guid>https://blog.csdn.net/chen529834149/article/details/79129648</guid><author>chen529834149</author><pubDate>Mon, 22 Jan 2018 15:38:56 +0800</pubDate><description><![CDATA[namespace App\Http\Controllers;


use Illuminate\Http\Request;
use App\Models\User;
class UsersController extends Controller
{
    public function show(User $user)
    {
        
    }
}
]]></description><category></category></item><item><title><![CDATA[laravel中如何实现验证码验证及使用]]></title><link>https://blog.csdn.net/chen529834149/article/details/79129025</link><guid>https://blog.csdn.net/chen529834149/article/details/79129025</guid><author>chen529834149</author><pubDate>Mon, 22 Jan 2018 15:03:32 +0800</pubDate><description><![CDATA[开发环境:
laravel5.5

php7.1.11
mysql
验证码 是防止恶意破解密码、刷票、论坛灌水、刷页的手段。验证码有 多种类型。
 现在我给大家实现如何使用图片验证码，其原理是让用户输入一个扭曲变形的图片上所显示的文字或数字，扭曲变形是为了避免被光学字符识别软件（OCR）自动辨识。由于计算机无法识别验证码的图片，所以回答出问题的用户就可以被认为是人类。在这里$代表cmd]]></description><category></category></item><item><title><![CDATA[gitosis安装使用及常用命令]]></title><link>https://blog.csdn.net/chen529834149/article/details/75315181</link><guid>https://blog.csdn.net/chen529834149/article/details/75315181</guid><author>chen529834149</author><pubDate>Wed, 10 Jan 2018 17:36:23 +0800</pubDate><description><![CDATA[1.安装git客户端以及相关工具
#sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel git
#git --version #如果能显示版本号，即表示成功

2.安装服务端gitosis，用python安装，download python相关tools
#sudo]]></description><category></category></item><item><title><![CDATA[pjax的实战应用]]></title><link>https://blog.csdn.net/chen529834149/article/details/77891491</link><guid>https://blog.csdn.net/chen529834149/article/details/77891491</guid><author>chen529834149</author><pubDate>Wed, 10 Jan 2018 17:35:31 +0800</pubDate><description><![CDATA[div>
 2     p>这是首页p>
 3 
 4     div>
 5         a data-pjax url="/home/Index/data" href="javascript:;">点击加载人员名单a>
 6     div>
 7     div id="pjax-container">
 8 
 9     div>
10 div>
11 script type="te]]></description><category></category></item><item><title><![CDATA[laravel5使用Laravel-Excel类库实现excel表]]></title><link>https://blog.csdn.net/chen529834149/article/details/79026259</link><guid>https://blog.csdn.net/chen529834149/article/details/79026259</guid><author>chen529834149</author><pubDate>Wed, 10 Jan 2018 17:34:16 +0800</pubDate><description><![CDATA[1、安装前确保当前环境已经安装compser ，本例子使用composer进行安装:
composer require "maatwebsite/excel:~2.1.0"
2、在app/config/app.php中"providers"数组中添加:
Maatwebsite\Excel\ExcelServiceProvider::class,

在aliases中添加:
'Excel]]></description><category></category></item></channel></rss>