public function __construct(array $attributes = [], $isNewRecord = true) { $this->isNewRecord = (bool) $isNewRecord; parent::__construct($attributes); }