I have a simple vue component with form, i already can add some data to the database with that form. But now i need to upload some images and i'm stuck on this. I found a component vue-upload-component
I integerated it and everything is ok, i see it in vue-devtools. But i dont know what to do next ;(. How can i upload images with this component, i have laravel for the backend.
Here is my store method in the Laravel controller
public function store(Request $request)
{
$ad = Ads::create($request->all());
return response()->json('Success!');
}
I'm calling it like this in my component: <file-upload title="Add upload files" :name="file" :multiple="true"></file-upload><!-- FILE -->
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire