One-command setup for WireFlow. Replaces the manual steps in the installation guide.
php artisan wireflow:install
This command:
wireflow.php to config/wireflow.phppublic/vendor/alpineflow/alpine:init registration to resources/js/app.jsresources/css/app.cssIf imports already exist in your files, they won't be duplicated.
| Flag | Description |
|---|---|
--force |
Overwrite existing config and asset files |
npm run build
Then use <x-flow> in your Blade views:
<x-flow :nodes="$nodes" :edges="$edges" style="height: 400px;">
<x-slot:node>
<x-flow-handle type="target" />
<span x-text="node.data.label"></span>
<x-flow-handle type="source" />
</x-slot:node>
</x-flow>
import AlpineFlow from '../../vendor/getartisanflow/wireflow/dist/alpineflow.bundle.esm.js';
document.addEventListener('alpine:init', () => {
window.Alpine.plugin(AlpineFlow);
});
[@import](https://github.com/import) '../../vendor/getartisanflow/wireflow/dist/alpineflow.css';
[@import](https://github.com/import) '../../vendor/getartisanflow/wireflow/dist/alpineflow-theme.css';
How can I help you explore Laravel packages today?