public function __construct($query = null) { parent::__construct(); $this->query = !is_null($query) ? $query : input()->get('query', ''); $this->artist = input()->get('artist', null); $this->pageIndex = input()->get('page', 0); $service = new beemp3(); $service->search($this->query); $this->results = $service->getResults(); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->song = input()->get('song', ''); }