get relationships of the with() of with() in laravel code example Example: eloquent relationships $roles = App\User::find(1)->roles()->orderBy('name')->get();