Exemplo n.º 1
0
 public function anyData($id = null)
 {
     if ($id) {
         $model = SKP::with('targetKerja')->findOrFail($id);
         $id = $model->targetKerja->pluck('id')->toArray();
     }
     return parent::anyData($id);
 }
Exemplo n.º 2
0
 public function anyData($id = null)
 {
     $datas = $this->model;
     $dependencies = $datas->dependencies();
     if ($id) {
         $model = $datas->with($dependencies)->findOrFail($id);
         $id = $model->targetKerja->pluck('id')->toArray();
     }
     // if (session()->has('input')) {
     // }
     return parent::anyData($id);
 }