码迷,mamicode.com
首页 >  
搜索关键字:laravel eloquent    ( 2869个结果
Laravel学习笔记
http://www.golaravel.comhttps://lvwenhan.com/laravel/432.htmlArtisan自动创建Model文件,并创建数据库首先进入laravel目录,执行下面命令,创建model文件E:\project\laravel\laravel-v5.0.22>D:\xampp5.6\php\php.exeartisanmake:modelPa ge进入`learnlaravel5/database..
分类:其他好文   时间:2016-04-17 17:58:39    阅读次数:150
laravel路由基础
基础: 所有的laravel路由都定义在 app/Http/routes.php 这个文件里,会被框架自带加载。简单的路由会接受一个URI和一个Closure类。 默认的routes.php 是被RouteServiceProvider所加载进入框架的,允许自定义路由和响应 html是不支持PUT ...
分类:其他好文   时间:2016-04-16 21:00:46    阅读次数:152
orm获取关联表里的属性值
ORM——关系对象模型 laravel中的Eloquent ORM用于和数据表互动,其中每个数据库表会和一个对应的「模型」互动,想要了解请查看官方文档或自行百度。获取关联表里的属性值代码如下: ...
分类:其他好文   时间:2016-04-16 18:47:01    阅读次数:125
每天laravel-20160714|AppNamespaceDetectorT
<?php namespaceIlluminate\Console; useIlluminate\Container\Container; //usenamespace traitAppNamespaceDetectorTrait { /** *Gettheapplicationnamespace. * *@returnstring */ protectedfunctiongetAppNamespace() { returnContainer::getInstance()->getNamesp..
分类:移动开发   时间:2016-04-14 12:28:32    阅读次数:213
每天laravel-20160713|ScheduleRunCommand
<?php namespaceIlluminate\Console\Scheduling; useIlluminate\Console\Command; //namespaceisverygood,likeadirorafolder classScheduleRunCommandextendsCommand { /** *Theconsolecommandname. * *@varstring */ protected$name=‘schedule:run‘;//ScheduleRunCommand..
分类:其他好文   时间:2016-04-14 12:28:00    阅读次数:160
每天laravel-20160715|ConfirmableTrait
<?php namespaceIlluminate\Console; useClosure; //namespace traitConfirmableTrait { /** *Confirmbeforeproceedingwiththeaction. * *@paramstring$warning *@param\Closure|bool|null$callback *@returnbool */ publicfunctionconfirmToProceed($warning=‘Applicatio..
分类:其他好文   时间:2016-04-14 12:25:49    阅读次数:229
每天laravel-20160712|Schedule
<?php namespaceIlluminate\Console\Scheduling; useSymfony\Component\Process\ProcessUtils; useSymfony\Component\Process\PhpExecutableFinder; //usenamespace. classSchedule { /** *Alloftheeventsontheschedule. * *@vararray */ protected$events=[];//eventssch..
分类:其他好文   时间:2016-04-13 09:50:45    阅读次数:415
[Laravel] Laravel的基本数据库操作部分
[laravel] laravel的数据库配置 找到程序目录结构下.env文件 配置基本的数据库连接信息 DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=blog DB_USERNAME=root DB_PASSWORD=root 修改完.env文件需要重启服务 ...
分类:数据库   时间:2016-04-12 19:12:22    阅读次数:249
lumen 使用 redis缓存
建议修改composer.json require 节点如下: 执行 composer install redis 默认配置文件地址: \vendor\laravel\lumen-framework\config\database.php redis 节点 修改IP地址密码 ...
分类:其他好文   时间:2016-04-11 14:16:53    阅读次数:229
每天laravel-20160709|CallEvent
<?php namespaceIlluminate\Console\Scheduling; useClosure; useCarbon\Carbon; useLogicException; useCron\CronExpression; useGuzzleHttp\ClientasHttpClient; useIlluminate\Contracts\Mail\Mailer; useSymfony\Component\Process\Process; useSymfony\Component\Pro..
分类:其他好文   时间:2016-04-11 10:25:56    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!