摘要: Contracts, ServiceContainer, ServiceProvider, Facades关系 概念 Contracts 合同,契约,也就是接口,定义一些规则,每个实现此接口的都要实现里面的方法 ServiceContainer 实现Contracts,具体的逻辑实现 Service 阅读全文
posted @ 2017-06-13 23:50 小星星x 阅读(2468) 评论(1) 推荐(0) 编辑
摘要: lumen安装 安装器安装 1. composer global require "laravel/lumen-installer" 2. lumen new blog composer安装 composer create-project --prefer-dist laravel/lumen bl 阅读全文
posted @ 2017-06-13 23:45 小星星x 阅读(2862) 评论(0) 推荐(0) 编辑
摘要: 激活 phpstorm10 License Server http://idea.qinxi1992.cn/ 搭建自己的IntelliJ IDEA授权服务器 http://blog.lanyus.com/archives/174.html phpstorm2017.1 License Server 阅读全文
posted @ 2017-06-13 23:44 小星星x 阅读(2767) 评论(0) 推荐(0) 编辑
摘要: 安装php扩展 cd /usr/local/src git clone -b php5 https://github.com/laruence/yaf.git 如果是php7 git clone https://github.com/laruence/yaf.git /usr/bin/phpize 阅读全文
posted @ 2017-06-13 23:43 小星星x 阅读(315) 评论(0) 推荐(0) 编辑
摘要: homebrew 安装 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 命令 安装软件:brew install 软件名,例:brew install 阅读全文
posted @ 2017-06-13 23:41 小星星x 阅读(19202) 评论(1) 推荐(3) 编辑
摘要: 基本技巧 代码 如果你只想高亮语句中的某个函数名或关键字,可以使用 function_name() 实现 通常编辑器根据代码片段适配合适的高亮方法,但你也可以用 ``` 包裹一段代码,并指定一种语言 $(document).ready(function () { alert('hello world 阅读全文
posted @ 2017-06-13 23:39 小星星x 阅读(942) 评论(0) 推荐(0) 编辑