兵兵有你

人品好,气质差.丢了工作就回家...

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2019年10月19日

摘要: 当安装composer时,提示PHP版本问题:rm -f /usr/bin/php //这是默认的版本,删除 ln -sf /www/server/php/71/bin/php /usr/bin/php //软链接修改默认的版本 阅读全文
posted @ 2019-10-19 11:08 greatbing 阅读(3416) 评论(0) 推荐(0) 编辑

2019年10月14日

摘要: $prize_arr = array( '0' => array('id' => 1, 'title' => 'iphone5s', 'v' => 5), '1' => array('id' => 2, 'title' => '联系笔记本', 'v' => 5), '2' => array('id' => 3, 'title' = 阅读全文
posted @ 2019-10-14 10:03 greatbing 阅读(1476) 评论(0) 推荐(0) 编辑

2019年9月28日

摘要: 1.检查form表单1.1 是否添加enctype="multipart/form-data"属性,1.2 是否使用post发送方式 2.1查看file_uploads属性是否为on在命令模式下输入?file_uploads即可快速找到该属性;2.2 查看upload_max_filesize设置, 阅读全文
posted @ 2019-09-28 22:37 greatbing 阅读(960) 评论(0) 推荐(0) 编辑

2019年9月20日

摘要: 一般小于1.7.10的 git 版本会报如下错 error: The requested URL returned error: 401 Unauthorized while accessing 解决方法:先删除原来的git yum remove git 再安装2.2版本的gitwget https 阅读全文
posted @ 2019-09-20 10:22 greatbing 阅读(229) 评论(0) 推荐(0) 编辑

2019年9月11日

摘要: 注册接口 阅读全文
posted @ 2019-09-11 17:56 greatbing 阅读(2451) 评论(0) 推荐(0) 编辑

2019年9月2日

摘要: 分页中带查询参数 队列后台自动开启运行 用以下命令查看任务的进程编号 用以下的命令杀死进程 参考网址:[ Linux 后台前台执行命令 ] 用以下命名查看所有进程 阅读全文
posted @ 2019-09-02 10:15 greatbing 阅读(197) 评论(0) 推荐(0) 编辑

2019年8月22日

摘要: 在模型product.php中增加以下方法.数据库图片字段为image.存储的图片相对路径 public function getImageUrlAttribute() { // 如果 image 字段本身就已经是完整的 url 就直接返回 if (Str::startsWith($this->attributes['image'], ['http://', 'https://'])) { ret 阅读全文
posted @ 2019-08-22 14:01 greatbing 阅读(3005) 评论(0) 推荐(0) 编辑

2019年8月16日

摘要: 关于laravel-admin进入有图片上传页面时,会提示未配置存储路径等信息.此时需要去配置. 查看config/admin.php里面有 阅读全文
posted @ 2019-08-16 17:11 greatbing 阅读(2611) 评论(0) 推荐(0) 编辑

2019年8月15日

摘要: 示例:安装sweetalert插件 1.yarn add sweetalert 2.resources/js/bootstrap.js中引入: 阅读全文
posted @ 2019-08-15 13:27 greatbing 阅读(1129) 评论(0) 推荐(0) 编辑

摘要: 控制器 路由 验证器 模板 阅读全文
posted @ 2019-08-15 11:34 greatbing 阅读(484) 评论(0) 推荐(0) 编辑