I think you have to use routes to do that... however if I were you I would create 2 sets of routes, one that will never change and that you use for your crawler. and another set that you use for live production.
Route::get('client/request/a_url_that_might_change', array('as'=>'client_request', 'uses'=>'ClientController@client_request'));
Route::get('client/request/crawler', array('as'=>'client_request_crawler', 'uses'=>'ClientController@client_request'));
Both these point to the same method. You can even comment out the crawler ones when you go to production and enable them anytime you want to send the crawler in.
I'm not sure if that will work for your specific situation but it is something to consider.
Easy:
$crawler->this->client->request('GET', action('HomeController@getIndex', $params));
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community