Request::exists PHP Méthode

exists() public static méthode

Determine if the request contains a given input item key.
public static exists ( string | array $key ) : boolean
$key string | array
Résultat boolean
        public static function exists($key)
        {
            return \Illuminate\Http\Request::exists($key);
        }

Usage Example

 public function lists($lang, $area)
 {
     global $data;
     global $settings;
     if (Request::exists('line-id')) {
         $result = $this->getStationList(Request::input('line-id'));
         return Response::json($result)->setCallback(Input::get('callback'));
     }
 }
All Usage Examples Of Request::exists