/**
*GettheClosuretobeusedwhenbuildingatype.
*GettheClosuretobeusedwhenbuildingatype.
*@paramstring$abstract
*@paramstring$concrete
*@return\Closure
*/
protectedfunctiongetClosure($abstract,$concrete)//oneisabstractotherisconcrete
{
returnfunction($c,$param..
分类:
其他好文 时间:
2016-05-09 11:15:12
阅读次数:
155
参考: https://laravel.com/docs/5.2/quickstart#stubbing-the-routes Introduction This quickstart guide provides a basic introduction to the Laravel framew ...
分类:
其他好文 时间:
2016-05-07 18:19:18
阅读次数:
278
Via:https://github.com/caouecs/Laravel-lang 1、下载:https://github.com/caouecs/laravel-lang/archive/master.zip 2、因为下载的包为PHP后缀,用DOS命令批量修改为 json for /r . %... ...
分类:
编程语言 时间:
2016-05-07 16:23:55
阅读次数:
139
php 架构 参考资料: 1. http://www.111cn.net/phper/php-gj/60448.htm 2. http://www.zhihu.com/question/29092265?sort=created 一、框架选型 TP 开发快速,中量级框架 laravel 中量级框架, ...
分类:
Web程序 时间:
2016-05-07 15:09:37
阅读次数:
136
刚尝试在Windows下搭建Laravel框架:
步骤如下:
1:搭建laravel框架首先要安装composer 地址:http://getcomposer.org/
安装包地址点击打开链接。下一步,指定正确的 php.exe 文件地位(如下图)。
开启 php_openssl 拓展:请打开 php 目次下的 php.ini 文件,亲身确认 extension=php_opens...
分类:
其他好文 时间:
2016-05-07 11:25:32
阅读次数:
156
/**
*Registerabindingwiththecontainer.
*Registerabindingwiththecontainer.
*@paramstring|array$abstract
*@param\Closure|string|null$concrete
*@parambool$shared
*@returnvoid
*/
publicfunctionbind($abstract,$concrete=null,$shared=false)
{//bindabstractcon
$abs..
分类:
其他好文 时间:
2016-05-06 16:34:27
阅读次数:
186
/**
* Register a binding with the container.
* Register a binding with the container.
* @param string|array $abstract
* @param \Closure|string|null $concrete
* @param bool...
分类:
其他好文 时间:
2016-05-06 12:32:57
阅读次数:
123
由于工作需要特去从零学习laravel。真的是如laravel中文网所说的样子:一开始接触laravel最好是一键安装集成包,省得开头就被(composer)难住以至于未开始已经受挫了。被整了一天多,记录下来方便碰到的朋友少走弯路。我的环境是:PHP-7.0.1Centos-6.5Mysql-5.6.28Apache-2.2..
分类:
其他好文 时间:
2016-05-05 11:15:43
阅读次数:
421
/**
*Determineifthegivenabstracttypehasbeenresolved.
*
*@paramstring$abstract
*@returnbool
*/
publicfunctionresolved($abstract)
{//aresolvedperson
$abstract=$this->normalize($abstract);//getanormalnamespace
if($this->isAlias($abstract)){//checkitisaa..
分类:
其他好文 时间:
2016-05-05 11:13:35
阅读次数:
151
/**
*Determineifthegivenabstracttypehasbeenbound.
*
*@paramstring$abstract
*@returnbool
*/
publicfunctionbound($abstract)
{
$abstract=$this->normalize($abstract);//thefunctionistodeletethe\ontheleftifhas
returnisset($this->bindings[$abstract])||isset..
分类:
其他好文 时间:
2016-05-04 19:28:25
阅读次数:
141