.语言 PHP Erlang Scala Ruby AngularJs .框架 codeigniter YAF Thinkphp Laravel Yii ...
分类:
其他好文 时间:
2016-05-24 16:38:00
阅读次数:
105
01.php artisan:显示详细的命令行帮助信息,同 php artisan list 02.php artisan –help:显示帮助命令的使用格式,同 php artisan help 03.php artisan –version:显示当前使用的 Laravel 版本 04.php a ...
分类:
其他好文 时间:
2016-05-24 14:56:50
阅读次数:
160
/**
*Getthecontextualconcretebindingforthegivenabstract.
*
*@paramstring$abstract
*@returnstring|null
*/
protectedfunctiongetContextualConcrete($abstract)
{
if(isset($this->contextual[end($this->buildStack)][$abstract])){
return$this->contextual[en..
分类:
其他好文 时间:
2016-05-24 10:32:41
阅读次数:
247
1,获取配置 说明:app()返回的是全局唯一的application对象,该对象的原型是Laravel\Lumen\Application 加载配置文件(config/app.php): 说明:app加载config/$base.php配置文件,并且读取$key配置;例如$base=app, $k ...
分类:
其他好文 时间:
2016-05-23 21:21:25
阅读次数:
1227
/**
*Resolvethegiventypefromthecontainer.
*
*@paramstring$abstract
*@paramarray$parameters
*@returnmixed
*/
//getthegiventypefromthecontainer
publicfunctionmake($abstract,array$parameters=[])
{//thisfunctionname"make"likecompilecfiletobinaryfileinthelinux
$..
分类:
其他好文 时间:
2016-05-23 10:49:45
阅读次数:
293
/**
*Gettheproperreflectioninstanceforthegivencallback.
*
*@paramcallable|string$callback
*@return\ReflectionFunctionAbstract
*/
protectedfunctiongetCallReflector($callback)//functionnameisgetCallReflectior
{//hasawaytogettherightreflectioninstanceabouttheg..
分类:
其他好文 时间:
2016-05-20 14:48:12
阅读次数:
153
在经过一段时间的使用后,发现在项目中很多地方需要用到用户验证,以短信验证和邮箱验证为主流趋势,小麦总结了如果在Laravel框架中实现发送邮件功能,以后会陆续更上如何实现短信验证..... 在.env文件下 1.配置Laravel文件 MAIL_DRIVER=smtp //建议使用smtp方式 MA ...
分类:
其他好文 时间:
2016-05-20 13:05:51
阅读次数:
151
/**
*CallthegivenClosure/class@methodandinjectitsdependencies.
*
*@paramcallable|string$callback
*@paramarray$parameters
*@paramstring|null$defaultMethod
*@returnmixed
*/
//callthegivenClosurelikeclassmethod
//theninjectitsdependencies.
publicfunctioncall($..
分类:
其他好文 时间:
2016-05-19 13:28:43
阅读次数:
163
/**
*Getthereboundcallbacksforagiventype.
*
*@paramstring$abstract
*@returnarray
*/
protectedfunctiongetReboundCallbacks($abstract)
{
if(isset($this->reboundCallbacks[$abstract])){//ifhasthevalueinthereboundcallbacksarray
return$this->reboundCallbacks..
分类:
其他好文 时间:
2016-05-18 10:59:28
阅读次数:
179
说明 性能一直是 Laravel 框架为人诟病的一个点,所以调优 Laravel 程序算是一个必学的技能。 接下来分享一些开发的最佳实践,还有调优技巧,大家有别的建议也欢迎留言讨论。 这里是简单的列表: 1. 配置信息缓存 使用以下 Artisan 自带命令,把 config 文件夹里所有配置信息合 ...
分类:
其他好文 时间:
2016-05-18 08:02:01
阅读次数:
511