You have to do i like this:
$doc = Doctor::find(1);
dd($doc->lessons()->get());
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.
Thank u a lot, all working now. Was confused laravel 4.1 video, where used just dd($doc->lessons());
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community