laravel

n8n community node for Laravel API HTTP methods

Package Information

Downloads: 48 weekly / 225 monthly
Latest Version: 1.0.1
Author: Your Name

Documentation

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_url to 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)

  1. Go to Settings → Community Nodes
  2. Click Install
  3. Enter n8n-nodes-laravel
  4. Click Install

Manual (self-hosted)

cd ~/.n8n
npm install n8n-nodes-laravel

Then restart n8n.


Credentials Setup

  1. In n8n, go to Credentials → New
  2. Search for Laravel API
  3. Fill in:
    • Base URL — e.g. https://your-laravel-app.com
    • Authentication Type — choose one of:
      • Bearer Token — paste your Sanctum / Passport token
      • API Key (Header) — header name + value
      • Basic Auth — username + password
      • No Auth — public APIs

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 build

To test locally, link the package into your n8n installation:

npm link
cd ~/.n8n
npm link n8n-nodes-laravel

License

MIT

Discussion