`with()` method relationship এর ডেটা eager load করে, এবং `withCount()` সেই relationship এর item সংখ্যা count করে। উদাহরণ: `Post::with("comments")` সব comment লোড করে, আর `Post::withCount("comments")` শুধু comment এর সংখ্যা দিবে।
Copyright © 2025 Live Project Academy All Rights Reserved