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.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2mMMIw7
via IFTTT
Aucun commentaire:
Enregistrer un commentaire