1) Post::query() ->with(['user' => function ($query) { $query->select('id', 'username'); }]) ->get(); 2) $users = AppBook::with('author:id,name')->get();