git本地建库推送远程 2016-11-29 git 本地新建库和多远程库的操作 新建本地库 1 2 3 4 5 6 7 8 9 10 11 12 13 #初始化 git init git add -A git commit -m 'init it' #删除本地远程连接 git remote rm origin git remote add origin https://git.oschina.net/gaofeifps/laravel53.git #自动合并远程 阅读更多
mysql5.7版本初始化设置 2016-11-15 default 5.7版本有了一些新的变动,首先就是密码部分和之前有了较大的区别。它对数据的安全性方面做了较大的提升。其次的是数据对json的支持,数据库添 阅读更多
lumen5.3正常使用dd()函数 2016-11-15 laravel 主用laravel的已经习惯了dd函数的方便, 但是放到lumen5.3的时候就变成了悲催的var_dump,查看了下源码 1 2 3 4 5 6 7 8 9 10 阅读更多
七牛云javascriptSDK的demo 2016-11-12 laravel 使用oss的话碰到用户上传的场景建议优先使用的js上传到oss,不需要经过服务端,也算减轻了服务器的压力,缺点就是有的sdk不支持文件类型的 阅读更多
小程序(2) 2016-11-07 wx 由上篇博客可以了解小程序运行的一个大体过程,首先app.json进行配置路由和基本的样式调整,其次可以在对应的路由指向的目录下添加 .wxml .wxss .js 这三 阅读更多
多维数组排序 2016-11-03 default 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 $testArr = [ ['id'=>1,'msg'=>'aaa'], ['id'=>2,'msg'=>'bbb'], ['id'=>3,'msg'=>'ccc'], ['id'=>4,'msg'=>'ddd'], ]; $roler = [2,1,3,4]; usort($testArr,function($a,$b) use($roler){ return (array_search($a['id'], $roler) < array_search($b['id'], $roler)) ? -1 : 1; }); var_dump($testArr); die(); 输出结果:反正成功了 还有就是 第一层要是索引数组 阅读更多
git本地拉取远程分支 2016-10-28 git 首先git clone一个git库, 其次在本地新建一个分支 1 git checkout -b devlocal 然后设置本地git文件,将本地分支和远程分支关联起来 (我有个远程分支叫做d 阅读更多
yii2路由重写方案 2016-10-27 yii2 yii2 关于 apache 和 nginx 的路由重写配置 apache路由重写 1 2 3 4 5 6 7 8 9 10 Options +FollowSymLinks IndexIgnore */* RewriteEngine on # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php 从yiic 阅读更多
larvel ORM模型中的一些方法和变量的作用 2016-10-21 用代码说话 相关命令: 创建迁移文件 php artisan make:migration Pate_table 进行迁移 php artisan migrate 创建模型文件 php artisan make:model Page 把如下文件内容复制到对应的文件下,就可以按照注释进行测试了。控制器 阅读更多