Uzyskaj określone kolumny za pomocą funkcji () w elokwent

Post::with('user:id,username')->get();
muchlisoft