上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页
摘要: view {{ $data | json }}jsnew Vue({ el: '#demo', data: { name: 'foobar' }});显示添加函数new Vue({ el: '#demo', data: { n... 阅读全文
posted @ 2015-10-29 21:02 jzfan 阅读(294) 评论(0) 推荐(0) 编辑
摘要: https://metricloop.com/blog/setting-up-multi-auth-in-laravel-52 http://imrealashu.in/code/laravel/multi-auth-with-laravel-5-2-2/ psr规范 http://www.php- 阅读全文
posted @ 2015-10-29 08:43 jzfan 阅读(180) 评论(0) 推荐(0) 编辑
摘要: view和jq @extends('layouts.main') @section('content') <h3>User List</h3> <p class="text-center text-info"></p> <table class="table table-striped"> <tr> 阅读全文
posted @ 2015-10-29 00:29 jzfan 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 1.引入css与js文件2.建立上传图片的路由到控制器3.视图文件form(action到上传路由)与dropzone(参数对应form的ID)选项js如下:@extends('layouts.main')@section('content') Gallery Show {{ $g->n... 阅读全文
posted @ 2015-10-28 23:07 jzfan 阅读(614) 评论(0) 推荐(0) 编辑
摘要: // app/Http/Middleware/VerifyCsrfTokenprotected $except = [ 'webhook/*']; 阅读全文
posted @ 2015-10-28 17:34 jzfan 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 1.引入autoload 文件include “vendor/autoload.php”2.自定义的单文件引入“autoload”:{ "files":["lib/OrderManager.php"]}3.目录引入,导入此目录下所有文件"classmap":["lib"]4.psr-0方式"a... 阅读全文
posted @ 2015-10-27 20:26 jzfan 阅读(345) 评论(0) 推荐(0) 编辑
摘要: $table->bigIncrements('id') ; Incrementing ID (primary key) using a " UNSIGNED BIG INTEGER" equivalent.$table->increments('id')$table->smallIncrements... 阅读全文
posted @ 2015-10-27 10:02 jzfan 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 安装 composer require phpspec/phpspec -dev运行 bin/phpspec在laravel中 vendor/bin/phpspec配置phpspec.ymlsuites: acme_suites: namespace: Acme //app... 阅读全文
posted @ 2015-10-26 21:46 jzfan 阅读(885) 评论(0) 推荐(0) 编辑
摘要: 假设有一个文件被多个视图需要,比如导航条:1.在路由文件添加View::composer('stats', function($view){ $view->with('stats', app('App\Stats')); }可以在任意的视图文件中调用到 states2.在视图... 阅读全文
posted @ 2015-10-24 21:32 jzfan 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 1.创建app/helpers.php2.注册路径{ ... "autoload": { "files": [ "app/helpers.php" ] } ...}3.更新路径composer dump-autoload 阅读全文
posted @ 2015-10-22 11:49 jzfan 阅读(387) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 28 下一页