Giter Club home page Giter Club logo

Comments (8)

dariel87 avatar dariel87 commented on July 24, 2024 2

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!

from laravel-social-network.

MahmoudRamada avatar MahmoudRamada commented on July 24, 2024 1

Just add @ before count. I.E.

@count

from laravel-social-network.

HumamAlb avatar HumamAlb commented on July 24, 2024

Just add @ before count. I.E.

@count

why dear?

from laravel-social-network.

Couvel avatar Couvel commented on July 24, 2024

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?

from laravel-social-network.

sajeerbinsaleem avatar sajeerbinsaleem commented on July 24, 2024

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

from laravel-social-network.

murtazahaidari avatar murtazahaidari commented on July 24, 2024

Does anybody find the solution pls?

from laravel-social-network.

Raam124 avatar Raam124 commented on July 24, 2024

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

Thanks, mate It worked.

from laravel-social-network.

tgodo avatar tgodo commented on July 24, 2024

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

from laravel-social-network.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.