Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Blueblau's avatar

CurrentTeam with model relationships

Hi guys,

I've just bought Spark and I am a total Laravel-newbie, so bear over with me.

I'm trying to make a todo-app, how original :), just to get the hang of it, but I have a hard time getting the Eloquent relationship into Vue. It works in php artisan tinker where I can get the tasks for a Team with App\Team::first()->tasks()->get() which returns the associated tasks.

I can't figure out how to render them out, in PHP nor in the dashboard via Vue. How can I do this?

Sorrry for my n00b-question! :-)

0 likes
0 replies

Please or to participate in this conversation.