Fork me on GitHub
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页
摘要: 亲测的教程,,希望能对大家提供些许帮助,转载请注明出处 ubuntu+nginx+mysql+php7 一.安装Nginx 1、首先添加nginx_signing.key(必须,否则出错) $ wget http://nginx.org/keys/nginx_signing.key $ sudo a 阅读全文
posted @ 2017-01-21 08:45 archer-wong 阅读(479) 评论(0) 推荐(0)
摘要: 以下为实测教程,希望能为大家提供帮助,转载请注明出处 ubuntu+apache+mysql+php7 第一、更换apt的源 1、复制原文件备份 sudo cp /etc/apt/source.list /etc/apt/source.list.bak 2、编辑源列表文件 sudo vim /etc 阅读全文
posted @ 2017-01-21 08:35 archer-wong 阅读(230) 评论(0) 推荐(0)
摘要: ## 1.插入排序 插入排序法的基本思路:同样以案例来说明,还是以$arr = array(2,6,3,9),由大到小排序。实现原理:插入排序的思想有点像打扑克抓牌的时候,我们插入扑克牌的做法。想象一下,抓牌时,我们都是把抓到的牌按顺序放在手中。因此每抓一张新牌,我们都将其插入到已有的排好序的手牌当 阅读全文
posted @ 2017-01-03 21:19 archer-wong 阅读(297) 评论(0) 推荐(0)
摘要: 1 生成一个seeder文件 你可以通过 make:seeder artisan命令来生成一个 Seeder。所有通过框架生成的 Seeder 都将被放置在 database/seeds 路径: php artisan make:seeder StudentsTableSeeder 在 seeder 阅读全文
posted @ 2016-12-24 10:19 archer-wong 阅读(347) 评论(0) 推荐(0)
摘要: 迁移就像是数据库中的版本控制,它让团队能够轻松的修改跟共享应用程序的数据库结构。 1 创建一个迁移 1.1 使用artisan命令make:migration来创建一个新的迁移: php artisan make:migration create_students_table 新的迁移位于datab 阅读全文
posted @ 2016-12-23 21:55 archer-wong 阅读(382) 评论(0) 推荐(0)
摘要: 一切的前提都是已经安装好了redis服务器,并且能启动(我只总结了mac的安装方法:传送门) 我自己使用的是mac系统,有个教程可以参考下,传送门: 1.安装PHP PRedis 1>PRedis是PHP访问redis的扩展包,只需要下载原码即可,不需要安装PHP扩展(如php-redis.so)。 阅读全文
posted @ 2016-12-22 23:11 archer-wong 阅读(12491) 评论(3) 推荐(1)
摘要: 参考文章 http://laravelacademy.org/post/1095.html http://laravelacademy.org/post/1174.html http://d.laravel-china.org/docs/5.2/eloquent-relationships 以下所用 阅读全文
posted @ 2016-12-21 08:41 archer-wong 阅读(2297) 评论(0) 推荐(0)
摘要: 一.首先需要了解 1>mac 一般使用bash作为默认shell 2>Mac系统的环境变量,加载顺序为: 1、系统级别的 /etc/profile /etc/bashrc /etc/paths 2、用户级别的 ~/.bash_profile (mac用的) ~/.bash_login ~/.prof 阅读全文
posted @ 2016-12-15 22:56 archer-wong 阅读(1449) 评论(1) 推荐(0)
摘要: 根目录截图如下 符合unix传统的目录 /bin 传统unix命令的存放目录,如ls,rm,mv等。 /sbin 传统unix管理类命令存放目录,如fdisk,ifconfig等等。 /usr 第三方程序安装目录。 /usr/bin, /usr/sbin, /usr/lib,其中/usr/lib目录 阅读全文
posted @ 2016-12-15 22:43 archer-wong 阅读(3867) 评论(0) 推荐(0)
摘要: 类(Laravel集合基类) Illuminate\Support\Collection 类提供一个流畅、便利的封装来操控数组数据,官方提供了很多辅助函数,方便对数据进行各种处理,Collection 类还支持链式调用。 一般来说,每一个 Collection 方法会返回一个全新的 Collecti 阅读全文
posted @ 2016-12-14 21:36 archer-wong 阅读(1051) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 下一页