Пример #1
0
 /**
  * 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));
     }
 }
Пример #2
0
 public function tearDown()
 {
     Input::setData([]);
     parent::tearDown();
 }