Support the ongoing development of Laravel.io →
posted 10 years ago
Requests
Last updated 1 year ago.
0

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.

Last updated 1 year ago.
0

Easy:

$crawler->this->client->request('GET', action('HomeController@getIndex', $params));
Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

DanSmith83 dansmith83 Joined 14 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.