php - Laravel How to Isset _GET -


i'm still new @ laravel.

i got problem how can use isset($_get)?

how example: http://virtualhost.com/flytrap/public/location?city=25?

usually when @ pure php, use:

if (isset($_get["submit"])) {    $location = $_get["city"]; } 

to city value. can use query @ database. if use core php method got error.

you can use below code

$location = request::query('city', false); //insed of $_get['city']; 

Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -