samedi 25 août 2018

Get html content from auth protected route inside laravel app?

I want to get with (curl) guzzle html content of a other page inside my laravel app.

The classic way would be:

$client = new Client();
$client = $client->request('GET', route('print.page'))->getBody();

The problem is, all this routes are auth protected and I get there only html from my login page.

I tried to send login trough guzzle again but I think this is not a good idea with double login.

Is there any better way to get html from this protected route?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire