Skip to main content

Laravel

Use Firecrawl with Laravel to search, scrape, and interact with web data using the REST API.
1 min read

Prerequisites#

Configuration#

Add your API key to .env:

Add the config entry to config/services.php:

Create a service class#

Create app/Services/FirecrawlService.php:

Create a controller#

Create app/Http/Controllers/FirecrawlController.php:

Register routes#

In routes/api.php:

Test it#

Next steps#