grazulex / laravel-autobuilder
A visual automation builder for Laravel applications - Build workflows like Node-RED, directly in your Laravel app
Requires
- php: ^8.4
- dragonmantank/cron-expression: ^3.6
- illuminate/contracts: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
Requires (Dev)
- laravel/pint: ^1.32
- nunomaduro/collision: ^8.9
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^3.8|^4.7|^5.3
- pestphp/pest-plugin-laravel: ^3.2|^4.1|^5.0
- phpstan/phpstan: ^2.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.0
- v1.7.0
- v1.6.0
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.1
- v1.3.0
- V1.2.7
- v1.2.6
- v1.2.5
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.3
- v1.0.1
- v1.0.0
- v0.0.1
- dev-fix/custom-user-primary-key
- dev-feat/cache-active-flows
- dev-chore/release-v1.5.1
- dev-fix/model-trigger-icons
- dev-chore/release-v1.5.0
- dev-chore/major-frontend-upgrades
- dev-fix/npm-audit
- dev-Grazulex-patch-1
This package is auto-updated.
Last update: 2026-11-30 03:05:58 UTC
README
Visual automation builder for Laravel - Create workflows with a drag-and-drop interface
Tip
What Laravel AutoBuilder does for you โ Let your team build automations ("when an order is paid, notify Slack and create an invoice") in a drag-and-drop editor inside your Laravel app โ without a developer in the loop for every new workflow.
This package is free and maintained on my own time. If it saves you hours, a small contribution helps me keep it going: ๐ GitHub Sponsors ยท โ Buy Me a Coffee ยท PayPal
Looking for Testers & Feedback!
This is the first public release of Laravel AutoBuilder. I'm actively looking for testers and feedback from the Laravel community to help improve this package.
- Try it out and share your experience
- Report bugs via GitHub Issues
- Suggest features or improvements
- Share your flows and use cases
Your feedback is invaluable! Let's build something great together.
What is Laravel AutoBuilder?
Laravel AutoBuilder is a visual automation builder inspired by Node-RED, n8n, and Zapier. It allows you to create complex automations using a drag-and-drop interface directly in your Laravel application.
Build workflows that react to events, make decisions, and execute actions - all without writing code.
Key Features
- Visual Flow Editor - Intuitive drag-and-drop interface built with Vue Flow
- Trigger-based Automation - React to model events, webhooks, schedules, and more
- Conditional Logic - Branch flows based on field values, user roles, or custom conditions
- Rich Action Library - Send notifications, create models, call APIs, transform data
- Logic Gates - AND, OR, AtLeast gates for complex decision making
- Flow Validation - Check for configuration errors before activation
- Execution History - Debug with detailed logs and variable inspection
- Import/Export - Share flows between projects as JSON files
- Sync/Async Execution - Choose immediate or queued execution per flow
Requirements
| Requirement | Version |
|---|---|
| PHP | 8.4+ |
| Laravel | 12.x, 13.x |
| Node.js | 18+ (for development) |
Installation
composer require grazulex/laravel-autobuilder
Publish assets and run migrations:
php artisan vendor:publish --tag=autobuilder-assets php artisan vendor:publish --tag=autobuilder-migrations php artisan migrate
Access the visual editor at /autobuilder.
Quick Example
Create a flow that sends a notification when a user is created:
- Add a "On Model Created" trigger for the
Usermodel - Connect it to a "Send Notification" action
- Configure the notification with
{{ user.email }}and{{ user.name }} - Activate the flow
That's it! The automation will run whenever a new user is created.
Documentation
For complete documentation, visit the Wiki:
Built-in Bricks
Triggers
- OnModelCreated - Fire when an Eloquent model is created
- OnModelUpdated - Fire when a model is updated
- OnModelDeleted - Fire when a model is deleted
- OnWebhook - Receive external webhook calls
- OnSchedule - Run on a cron schedule
- OnLogin / OnLogout - React to authentication events
Conditions
- FieldEquals - Check if a field matches a value
- FieldContains - Check if a field contains a value
- UserHasRole - Check user roles (Spatie compatible)
- TimeIsBetween - Check if current time is in a range
- SwitchCase - Multi-case comparison
- Throttle - Rate limiting condition
- RandomChance - A/B testing with configurable percentage
Actions
- SendNotification - Send Laravel notifications
- CreateModel - Create Eloquent models
- UpdateModel - Update existing models
- DeleteModel - Delete models
- CallWebhook - Make HTTP requests to external APIs
- SetVariable - Store values for use in the flow
- LogMessage - Write to Laravel logs
- TransformData - Collection transformations (pluck, filter, sort, etc.)
- CacheAction - Cache operations (get, put, forget)
- SubFlow - Execute another flow as a subroutine
- Delay - Pause execution
- LoopEach - Iterate over collections
Gates
- AndGate - All inputs must be true
- OrGate - At least one input must be true
- AtLeastGate - Flexible: min count, percentage, majority, or all/any
Variable Templating
Use Blade-like syntax to reference data in your flows:
{{ user.name }} - Access nested values
{{ amount | upper }} - Apply filters
{{ items | count }} - Get collection count
Available filters: upper, lower, ucfirst, json, date, datetime, count
Configuration
Publish the configuration file:
php artisan vendor:publish --tag=autobuilder-config
Key options in config/autobuilder.php:
return [ 'routes' => [ 'prefix' => 'autobuilder', 'middleware' => ['web', 'auth'], ], 'bricks' => [ 'paths' => [app_path('AutoBuilder/Bricks')], 'namespace' => 'App\\AutoBuilder\\Bricks', ], ];
Active flows cache
Triggers of active flows are registered on every HTTP request and in console processes (queue workers, artisan commands, scheduler; set AUTOBUILDER_TRIGGERS_CONSOLE=false to turn the console part off). The list of active flows is cached, so a normal request does not query the database for it. If the database (or the cache store) is down, or the tables are not migrated yet, AutoBuilder logs a warning and skips trigger registration for that request instead of breaking the page. In console, a flows table that is not migrated yet is skipped silently.
Queue workers read the active flows once, when they start: run php artisan queue:restart after a flow is activated, deactivated or edited.
'cache' => [ 'enabled' => env('AUTOBUILDER_CACHE_ENABLED', true), 'store' => env('AUTOBUILDER_CACHE_STORE'), // null = default cache store 'key' => env('AUTOBUILDER_CACHE_KEY', 'autobuilder:active_flows'), 'ttl' => env('AUTOBUILDER_CACHE_TTL', 86400), // seconds; null or 0 = until invalidated ],
The cache is cleared automatically when a flow is created, updated, activated, deactivated, deleted or restored through Eloquent (the builder UI, Flow::create(), $flow->activate()...). If you change flows another way (raw SQL, Flow::query()->update(), a database import), clear it yourself:
php artisan autobuilder:clear-cache
or in code: app(\Grazulex\AutoBuilder\Trigger\ActiveFlowsCache::class)->forget();
With several application servers, use a shared cache store (redis, database, memcached...) so every server sees the invalidation.
Creating Custom Bricks
Create your own triggers, conditions, and actions:
namespace App\AutoBuilder\Bricks; use Grazulex\AutoBuilder\Bricks\Action; use Grazulex\AutoBuilder\Flow\FlowContext; class SendSlackMessage extends Action { public function name(): string { return 'Send Slack Message'; } public function fields(): array { return [ Text::make('channel')->label('Channel')->required(), Textarea::make('message')->label('Message')->supportsVariables(), ]; } public function handle(FlowContext $context): FlowContext { // Your logic here return $context; } }
Security
- Webhook endpoints validate signatures via
X-Webhook-Secretheader - Custom code execution can be disabled in config
- Authorization gate:
access-autobuilder
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Support This Package
Laravel AutoBuilder is free, open source and maintained on my own time. If it saves you hours, here is how you can give back:
- โญ Star the repository โ it helps other developers find it
- ๐ฆ Share it with your team and network
- ๐ Sponsor on GitHub, buy me a coffee or donate via PayPal โ every contribution funds maintenance, new features and Laravel upgrades
License
The MIT License (MIT). Please see License File for more information.
Author
Created by Jean-Marc Strauven (@Grazulex)
About the Author
Creator of 17+ Laravel packages with 6,000+ downloads, including:
- laravel-devtoolbox - Swiss-army CLI for Laravel
- laravel-apiroute - API versioning lifecycle management
- laravel-arc - Eloquent attribute casting
Need help with your Laravel project? I offer consulting services:
- Custom package development
- Code audits and optimization
- Architecture consulting
Contact: GitHub
Contributors
Thanks to these wonderful people for their contributions:
- @matt7ds - Bug reports and testing