n8n-nodes-laravel
v1.0.1
Published
n8n community node for Laravel API HTTP methods
Downloads
262
Maintainers
Readme
n8n-nodes-laravel
A community node for n8n that lets you make HTTP requests to any Laravel API directly from your workflows.
Features
- All HTTP Methods — GET, POST, PUT, PATCH, DELETE
- Multiple Auth Types — Bearer Token (Sanctum/Passport), API Key header, Basic Auth, or No Auth
- Flexible Body Formats — JSON, Multipart Form Data, URL-Encoded, or Raw
- Query Parameters — Easy key/value builder for GET/DELETE
- Custom Headers — Add any header you need
- Auto Pagination — Automatically follows Laravel's
next_page_urlto collect all pages - Full Response Mode — Optionally return status code + full body
- SSL & Redirect Options — Fine-grained control per request
Installation
In n8n (Community Nodes)
- Go to Settings → Community Nodes
- Click Install
- Enter
n8n-nodes-laravel - Click Install
Manual (self-hosted)
cd ~/.n8n
npm install n8n-nodes-laravelThen restart n8n.
Credentials Setup
- In n8n, go to Credentials → New
- Search for Laravel API
- Fill in:
- Base URL — e.g.
https://your-laravel-app.com - Authentication Type — choose one of:
Bearer Token— paste your Sanctum / Passport tokenAPI Key (Header)— header name + valueBasic Auth— username + passwordNo Auth— public APIs
- Base URL — e.g.
Usage Examples
GET — List Users (with pagination)
| Field | Value |
|---|---|
| Method | GET |
| Endpoint | /api/users |
| Options → Pagination | ✅ enabled |
This will auto-follow all pages and return every user as separate items.
POST — Create a Post
| Field | Value |
|---|---|
| Method | POST |
| Endpoint | /api/posts |
| Body Format | JSON |
| JSON Body | {"title": "Hello", "body": "World", "user_id": 1} |
PUT — Update a Resource
| Field | Value |
|---|---|
| Method | PUT |
| Endpoint | /api/posts/5 |
| Body Format | JSON |
| JSON Body | {"title": "Updated Title"} |
DELETE — Remove a Resource
| Field | Value |
|---|---|
| Method | DELETE |
| Endpoint | /api/posts/5 |
Options Reference
| Option | Description |
|---|---|
| Custom Headers | Add any extra HTTP headers |
| Timeout (ms) | Request timeout (default 10 000 ms) |
| Follow Redirects | Follow HTTP 301/302 redirects |
| Ignore SSL Issues | Skip SSL verification (dev only) |
| Return Full Response | Returns { statusCode, body } instead of just the body |
| Pagination | Auto-follow Laravel paginator next_page_url |
| Pagination Key | Key in response containing items (default: data) |
| Next Page URL Key | Key containing next page URL (default: next_page_url) |
Development
git clone https://github.com/your-username/n8n-nodes-laravel.git
cd n8n-nodes-laravel
npm install
npm run buildTo test locally, link the package into your n8n installation:
npm link
cd ~/.n8n
npm link n8n-nodes-laravelLicense
MIT
