saloou

3886 经验值

当第一次提交评论后 能 正常添加到列表里并显示出来,但是当我再次输入内容 提交评论时,就将刚刚提交的内容替换了,但是数据库comments表里 正常插入了记录!请问老师怎么解决这个问题啊?

楼主,我有个问题请教一下,为什么 我的Example.vue文件打开后 字体都是白色的,而且输入也没有任何提示?

反复看了你的教程,终于搞定啦!感谢

好的,我研究研究,感谢回复

没有任何 提示,有读写权限,move()都成功了!

就是感觉没有image::make()方法是的!!make()方法下面有一道横线!

请问老师:我在执行到这里代码 就出错,后面的代码就执行了!老师帮我分析分析 是哪里的问题呢?感谢。

  $destinationPath = 'uploads/';
  $filename = \Auth::user()->id . '_' . time() . $file->getClientOriginalName();
        $file->move($destinationPath, $filename);

        Image::make($destinationPath, $filename)->fit(100)->save(); //执行到这后 出错 
        $user = User::find(\Auth::user()->id);
        $user->avatar = '/' . $destinationPath . $filename;
        $user->save();