Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

You have to do i like this:

$doc = Doctor::find(1);
dd($doc->lessons()->get());
Last updated 9 years ago.
0

Oh really? I just watched some laracasts on 4.1 and done what i've seen there. Tommorow at work i will check this. Thank u a lot.

0

Thank u a lot, all working now. Was confused laravel 4.1 video, where used just dd($doc->lessons());

0

Sign in to participate in this thread!

Eventy

Your banner here too?

gelnor gelnor Joined 20 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.