for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Imanghafoori\HeyMan\Conditions;
class ConditionsFacade
{
private $methods = [];
public function _call($method, $param)
if (isset($this->methods[$method])) {
return app()->call($this->methods[$method], $param);
}
throw new \BadMethodCallException($method.' does not exists as a condition');
public function define($methodName, $callable)
$this->methods[$methodName] = $callable;