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
Post a Comment