Support the ongoing development of Laravel.io →
posted 1 year ago
Laravel
0
moderator

Hello @mariam-fane

Can you show the code that you have? The error indicates that $var isn't from the type you need, but without any code it is difficult to give more information.

mariam-fane liked this reply

1

@mariam-fane In count function need 1 argument. As a example Post::count(id) . Follow this system

mariam-fane liked this reply

1

Thank you for your help

0

@mariam-fane is it solve ? If it don't solve you can share your code . Thanks.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Mariam mariam-fane Joined 31 May 2023

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.