예제 #1
0
 public function searchComposer(Request $request)
 {
     //get data
     $dataRequest = $request->all();
     $key = $dataRequest['key'];
     if (!is_null($key) && !empty($key)) {
         $key = Input::get('key');
         $model = new Artist();
         return json_encode($model->searchComposer($key));
     } else {
         return json_encode([]);
     }
 }