Ejemplo n.º 1
0
 /**
  * Returns the record by id
  *
  * @param  integer $id
  * @return \App\Models\Trip
  */
 public function getById($id)
 {
     return \App\Models\Airport::find((int) $id);
 }
 public function actionSearch($airport_code = '')
 {
     return Airport::find()->where(['airport_code' => $airport_code])->all();
 }