There are some many accessors, it can be reduced as follows:
public function __get($var)
{
if (($key = array_search($var, self::$components)) == false) {
return parent::__get($var);
}
return $this->hasComponet($var);
}
All accessors referring to a component are unnecessary now.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community