/** * Select constructor. * * @param null $options */ public function __construct($options = null) { parent::__construct(null); // force content to be Option only collection $this->getContent()->restrictTo(Option::class); if ($options) { $this->addOptions(Collection::cast($options)); } }
public function tearDown() { Input::setData([]); parent::tearDown(); }