简介 MVC框架在现在的开发中相当流行,不论你使用的是JAVA,C#,PHP或者IOS,你肯定都会选择一款框架。虽然不能保证100%的开发语言都会使用框架,但是在PHP社区当中拥有最多数量的MVC框架。今天你或许还在使用Zend,明天你换了另一个项目也许就会转投Yii,Laravel或者CakePH ...
分类:
Web程序 时间:
2016-08-03 10:32:26
阅读次数:
129
http://www.golaravel.com/post/install-and-run-laravel-5-x-on-windows/ ...
/**
*Validateagivenattributeagainstarule.
*
*@paramstring$attribute
*@paramstring$rule
*@returnvoid
*/
protectedfunctionvalidate($attribute,$rule)
{//validateagivenattributeagainstarule.
list($rule,$parameters)=$this->parseRule($rule);//listfunctiontoget..
分类:
Web程序 时间:
2016-08-02 11:49:29
阅读次数:
255
laravel版本:5.1 今天做的是引入第三方的phpquery类库,方法: 在laravel的app目录下自定义一个文件夹,我用的名字是:Libs 然后直接将phpquery类库扔进这个目录 在composer.json中的autoload下的classmap下加入"app/Libs/phpQu ...
分类:
其他好文 时间:
2016-08-01 17:26:01
阅读次数:
2900
1、简介 在以前,开发者需要为每一个需要调度的任务编写一个Cron条目,这是很让人头疼的事。你的任务调度不在源码控制中,你必须使用SSH登录到服务器然后添加这些Cron条目。Laravel命令调度器允许你平滑而又富有表现力地在Laravel中定义命令调度,并且服务器上只需要一个Cron条目即可。 任 ...
分类:
其他好文 时间:
2016-07-28 14:16:42
阅读次数:
161
<?php
namespaceIlluminate\Validation;
useIlluminate\Support\Str;
useIlluminate\Database\ConnectionResolverInterface;
//ok,justnamespace
classDatabasePresenceVerifierimplementsPresenceVerifierInterface
{//likeDatabasePresenceVerifiercanimplementsPresenc..
分类:
数据库 时间:
2016-07-25 10:39:53
阅读次数:
211
<?php
namespaceIlluminate\Pipeline;
useIlluminate\Support\ServiceProvider;
//namespacelikeServiceProvider
classPipelineServiceProviderextendsServiceProvider
{//allthisServiceProvider
//thisisapipelineServiceProvider
/**
*Indicatesifloadingoftheprovider..
分类:
Web程序 时间:
2016-07-23 21:36:37
阅读次数:
245
<?php
namespaceIlluminate\Redis;
useIlluminate\Support\ServiceProvider;
//thisnamespace
classRedisServiceProviderextendsServiceProvider
{
/**
*Indicatesifloadingoftheproviderisdeferred.
*
*@varbool
*/
protected$defer=true;//ainstanceofServiceProvider
/..
分类:
Web程序 时间:
2016-07-23 21:35:23
阅读次数:
179
<?php
namespaceIlluminate\Pipeline;
useClosure;
useIlluminate\Contracts\Container\Container;
useIlluminate\Contracts\Pipeline\HubasHubContract;
//amespace
classHubimplementsHubContract
{//ClassHubimplementsHubContract
/**
*Thecontainerimplementation.
*..
分类:
Web程序 时间:
2016-07-23 21:34:37
阅读次数:
238