摘要: 在 Laravel 5 中使用 Repository 模式实现业务逻辑和数据访问的分离:http://laravelacademy.org/post/3063.html Eloquent: 集合:https://d.laravel-china.org/docs/5.3/eloquent-collec 阅读全文
posted @ 2018-01-26 20:06 程序生(Codey) 阅读(1409) 评论(0) 推荐(0) 编辑
摘要: 1.创建表及记录用于测试 CREATE TABLE `product` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '产品id', `name` varchar(50) NOT NULL COMMENT '产品名称', `origi 阅读全文
posted @ 2018-01-26 20:01 程序生(Codey) 阅读(569) 评论(1) 推荐(0) 编辑
摘要: 今天在windows下学习lavaral,使用composer update命令报如下错误: [Composer\Exception\NoSslException] The openssl extension is required for SSL/TLS protection but is not 阅读全文
posted @ 2018-01-26 16:10 程序生(Codey) 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 切记要把新的php版本配到环境变量,cmd才会生效 php7.1.11下载地址 http://windows.php.net/download/ 下载之后,解压。 重名的为php-7.1.11-nts 移动到phpStudy的php目录下 然后重启phpStudy即可 然后切换版本就好了。 phps 阅读全文
posted @ 2018-01-26 16:08 程序生(Codey) 阅读(3682) 评论(0) 推荐(0) 编辑