public function __construct($attribute) { $this->attribute = $attribute; parent::__construct('The attribute with the name "' . $this->attribute . '" is missing.', 0); }