.../export/?id <--- this is a bit prustating putting a quest-mark directly after slash
if you are using pagination, you can just add
$yourData->appends(array('sort' => 'votes'))->links();
this will generate link : http://example.com/something?page=2&sort=votes
2codetrash
Append works with the pagination links, I'm interested in appending the query parameters to the route. How can I do this?
update
However, it turned out, that if I declare the controller's action explicitly, then the URL::route works fine:
Route::get('datacatalogue/export', array('as' => 'datacatalogue.export', 'uses' => 'DatacatalogueController@getExport'));
// and
URL::route('datacatalogue.export', array('id'=>1))
That's nice
what about this kind of url :
/export/?id //quest-mark is put right after a slash ? like http://mydomain.com/datacatalogue/export/?id=1&another_param=2
I found this wont work.
The working or not working of export/? or just ? depends on your routes setup.
Putting '?' directly after url slash '/' wont work....
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community