Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This appear in home after login i have php 7.2 any ideas how to solve this? #13

Open
Osezno opened this issue Mar 27, 2018 · 8 comments

Comments

@Osezno
Copy link

Osezno commented Mar 27, 2018

count(): Parameter must be an array or an object that implements Countable (View: C:\xampp\htdocs\Snetwork\resources\views\layouts\app.blade.php) (View: C:\xampp\htdocs\Snetwork\resources\views\layouts\app.blade.php)

@MahmoudRamada
Copy link

Just add @ before count. I.E.

@count

@HumamAlb
Copy link

Just add @ before count. I.E.

@count

why dear?

@Couvel
Copy link

Couvel commented Nov 26, 2018

count(): Parameter must be an array or an object that implements Countable (View: C:\xampp\htdocs\Snetwork\resources\views\layouts\app.blade.php) (View: C:\xampp\htdocs\Snetwork\resources\views\layouts\app.blade.php)

did u solved?

@sajeerbinsaleem
Copy link

count(): Parameter must be an array or an object that implements Countable (View: C:\xampp\htdocs\Snetwork\resources\views\layouts\app.blade.php) (View: C:\xampp\htdocs\Snetwork\resources\views\layouts\app.blade.php)

did u solved?

looking for solution

@murtazahaidari
Copy link

Does anybody find the solution pls?

@dariel87
Copy link

dariel87 commented Aug 19, 2019

edit the following file app\Models\User.php in line 66, change from this

if (count($this->$Model) > 0) return true;
into
if ($this->Model !== null && count($this->$Model) > 0) return true;

hope it help..cheers!

@Raam124
Copy link

Raam124 commented Feb 15, 2020

if ($this->Model !== null && count($this->$Model) > 0) return true;

Thanks, mate It worked.

@tgodo
Copy link

tgodo commented Feb 4, 2021

@dariel87 , thank you so much, it worked for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants