ahmedEloi's avatar

Can't update an image on my form

hi I dont know what is wrong with my code I cant save the path of the updated image in the uploads folder here is my code

$file = Input::file('attachment');
        $name = time() . '-' . $file->getClientOriginalName();
        $file = $file->move('uploads/', $name);
        $article->image = $name;
$article->save(); ```
0 likes
2 replies
eddy1992's avatar

Please try to be more specific.

paste your code in ``` //your code// ``` between these whenever you want to show your code 

ahmedEloi's avatar

I want to update article's image but when I do I cant find any image on the uploads folder what is the problem

Please or to participate in this conversation.