Changement image par file
This commit is contained in:
parent
670ee0e516
commit
ece421c39c
|
@ -28,7 +28,7 @@ class ImagesController extends BaseController
|
|||
'image' => 'required|file|image'
|
||||
]);
|
||||
|
||||
$image = new Image(['content' => $request->input('image')]);
|
||||
$image = new Image(['content' => $request->file('image')]);
|
||||
$image->save();
|
||||
|
||||
return response()->json($image);
|
||||
|
|
Loading…
Reference in New Issue