Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buy?min_year=1880&max_year=2019&min_rating=1&max_rating=10&genre=horror
- $url = Request::path();
- if (isset($_GET["state"]) && !empty($_GET['state'])) {
- $state = $_GET['state'];
- $url = $url . "&state=". $state;
- }
- if (isset($_GET["council"]) && !empty($_GET['council'])) {
- $council = $_GET['council'];
- $url = $url . "&council=". $council;
- }
- if (isset($_GET["area"]) && !empty($_GET['area'])) {
- $area = $_GET['area'];
- $url = $url . "&area=". $area;
- {{ Form::open(array('url' => $url, 'class' => 'form-inline', 'method' => 'GET')) }}
- /buystate=NY?min_year=1880&max_year=2019&min_rating=1&max_rating=10&genre=horror
- /buy?state=NY&min_year=1880&max_year=2019&min_rating=1&max_rating=10&genre=horror
- // Route::post(.... for forms)
- Route::get('buy/{state}/{min_year}', function($state, $min_year) {
- return array('state' => $state, 'min_year' => $min_year);
- });
- Route::group(array('prefix' => '/state'), function(){
- Route::get('/{min_year}'), function() {
- //... and so on
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement