dimanche 29 septembre 2019

Is it possible to pass data from laravel controller then to component vue?

I am new to vue can I ask how to pass data variable from my controller to vue component

here is my controller

$categories = Category::all();

return  view('dashboard.index',compact('categories');

in my dashboard.index I want to grab that variable to my vue component, but I have no idea how.

Thank you in advance.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire