Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

view instead of url #471

Open
merdalina opened this issue Jul 16, 2022 · 1 comment
Open

view instead of url #471

merdalina opened this issue Jul 16, 2022 · 1 comment

Comments

@merdalina
Copy link

how can i use in laravel and instead of using an external url, use an internal view?

@abdulmeLINK
Copy link

abdulmeLINK commented Aug 28, 2022

As I understand, You want to parse your .blade.php view resources into DOM. For this problem you can send request to your own server:

use Goutte\Client;
...
$client = new Client();
$crawler = $client->request('GET', route('routeName'));

Or you can use crawler directly wtih file_get_contents function as described in this thread

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants