Support the ongoing development of Laravel.io →
Database Eloquent Installation
Last updated 4 months ago.
0

Try this:

$departments = Department::with('Department')->get();

0

Sign in to participate in this thread!

LaraJobs

Your banner here too?

sonusindhu sonusindhu Joined 17 Dec 2016

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.