随笔分类 -  laravel

Laravel 框架技术文档
摘要:相当于: 阅读全文
posted @ 2018-01-15 18:08 扶摇上青天 阅读(348) 评论(0) 推荐(0)
摘要:$info['date'] = $item->created_at->diffForHumans();//友好时间显示 $info['date'] = $item->created_at->formatLocalized('%Y-%m-%d'); //数字时间显示 阅读全文
posted @ 2017-12-26 18:24 扶摇上青天 阅读(895) 评论(0) 推荐(0)
摘要:一首页设置目录权限: /storage /bootstrap/cache 设置可写权限 二执行命令: 阅读全文
posted @ 2017-10-12 15:35 扶摇上青天 阅读(417) 评论(0) 推荐(0)
摘要:server{}配置 server{ #端口配置 listen 80; #域名配置 server_name laravel.cc; index index.php index.html index.htm; #站点配置到public root /data/wwwroot/lara... 阅读全文
posted @ 2017-10-12 14:37 扶摇上青天 阅读(838) 评论(0) 推荐(0)
摘要:第一步:自定义目录 在app文件夹下新建Library目录,做为第三方库的目录 第二步: 修改composer.json文件 autoload节点下的psr-4自定义命名空间 规则: key: 命名空间名称,结尾必须跟上"\\" value:路径,根目录起 第三步:执行命令 第四步:如何使用 use 阅读全文
posted @ 2017-10-12 11:55 扶摇上青天 阅读(807) 评论(0) 推荐(0)
摘要:找到php.ini搜索proc_get_status去掉即可. 阅读全文
posted @ 2017-10-11 17:54 扶摇上青天 阅读(335) 评论(0) 推荐(0)
摘要:[Symfony\Component\Process\Exception\RuntimeException] The Process class relies on proc_open, which is not available on your PHP installation. 提示不支持使用 阅读全文
posted @ 2017-10-11 17:50 扶摇上青天 阅读(1478) 评论(0) 推荐(0)
摘要:第一步:config/mail.php是邮件配置文件,然后找到根目录.env文件 第二步:编写纯文字的邮件 第三步:编写html的邮件 先在views新建模板文件: php代码: 阅读全文
posted @ 2017-06-13 11:48 扶摇上青天 阅读(1897) 评论(0) 推荐(0)