public function __construct(Model $expected) { $this->expected = $expected; $this->expectedAttributes = $expectedAttributes = Arrays::filterByAllowedKeys($this->expected->attributes(), $this->expected->getFields()); }