Support the ongoing development of Laravel.io →
posted 3 months 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.

1

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

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!

Full Stack Europe

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.

© 2023 Laravel.io - All rights reserved.