I would like to know how to call the count function in volt?
$robot = Robots::findFirst(2); echo "The robot has ", $robot->countRobotsParts(), " parts\n";
But when i try {{ robot.countRobotsParts() }} it's not working? How can I achieve this ?
I would like to know how to call the count function in volt?
$robot = Robots::findFirst(2); echo "The robot has ", $robot->countRobotsParts(), " parts\n";
But when i try {{ robot.countRobotsParts() }} it's not working? How can I achieve this ?