public function supportedCountries()
 {
     return $this->model->lists('iso_code');
 }
Exemplo n.º 2
0
 /**
  * Retrieve data of modal, as key value.
  *
  * @param null  $limit
  * @param array $columns
  *
  * @return mixed
  */
 public function lists($val, $key = null)
 {
     $results = $this->model->lists($val, $key);
     $this->resetModel();
     return $results;
 }
Exemplo n.º 3
0
 /**
  * Lists the field by the key and value
  * @param string $key
  * @param string $value
  */
 public function listsFields($key, $value)
 {
     return $this->model->lists($value, $key);
 }
 /**
  * @param string|int $value
  * @param string     $key
  *
  * @return \Illuminate\Database\Eloquent\Collection
  */
 public function getList($value, $key = 'id')
 {
     return $this->model->lists($value, $key);
 }
Exemplo n.º 5
0
 /**
  * @param string $a
  * @param string $b
  *
  * @return mixed
  */
 public function listed($a, $b)
 {
     return $this->model->lists($a, $b);
 }
Exemplo n.º 6
0
 public function lists($label, $key = null)
 {
     $ret = ['' => 'Pilih Provinisi'];
     $ret += parent::lists('label', 'id')->toArray();
     return $ret;
 }
Exemplo n.º 7
0
 public function lists($title, $key)
 {
     $o[] = "--Pilih salah satu--";
     return array_merge_recursive($o, parent::lists($title, $key)->toArray());
 }
Exemplo n.º 8
0
 public function lists($title, $key)
 {
     $o[0] = "--Pilih salah satu--";
     return $o + parent::lists($title, $key)->toArray();
 }
 public function getList($column)
 {
     return $this->model->lists($column, 'id');
 }
 /**
  * Retrieve data array for populate field select
  *
  * @param string      $column
  * @param string|null $key
  *
  * @return \Illuminate\Support\Collection|array
  */
 public function lists($column, $key = null)
 {
     $this->applyCriteria();
     return $this->model->lists($column, $key);
 }
Exemplo n.º 11
0
 public function edit($id)
 {
     $user = $this->userModel->findOrFail($id);
     $rolesList = $this->roleModel->lists('name', 'id');
     return view('adminPanel::user.edit', compact('user', 'rolesList'));
 }
Exemplo n.º 12
0
 public function getAllList($textKey)
 {
     return $this->model->lists($textKey, 'id');
 }
 /**
  * Get assoc locales .
  *
  * @param $key
  * @param $value
  * @return mixed
  */
 public function getAssocLocales($key, $value)
 {
     return $this->source->lists($key, $value);
 }