{"repo":"Tschucki/filament-workflows","free":true,"listed":false,"github":"https://github.com/Tschucki/filament-workflows","clone":"git clone https://github.com/Tschucki/filament-workflows.git","description":"Laravel Filament plugin to add workflows. Attach triggers and dispatchable actions to automate tasks","language":"PHP","stars":19,"topics":["automation","filament-plugin","filamentphp","laravel","plugin","workflows"],"license":"MIT","category":"workflow-automation","readme_excerpt":"Add workflows to your filament app This plugin lets you add workflows to your filament app. You can attach triggers and dispatchable actions to your workflows. The plugin will automatically execute the actions when the trigger conditions are met. Table of Contents - Images - Installation - Usage - Basics - Add the trait to your model - Create an Action - Configuration - Define searchable field - Max Search Results - Testing - Changelog - Contributing - Security Vulnerabilities - Credits - License Images Installation You can install the package via composer: You can install the plugin using: You can publish and run the migrations manually with: Register the plugin in your AdminPanelServiceProvider : Usage Basics In order to let your models use workflows, you need to add the InteractsWithWorkflows trait to your model. By adding this trait, the plugin will automatically add a global observer to your model. So when ever a workflow matches the event and trigger conditions, the workflow will execute the actions. Add the trait to your model Create an Action In order to attach an action to your workflows, you will have to create a class within the App\\Jobs\\Actions folder. The class must extend the BaseAction class. This requires you to implement the handle method. This method will be called when the workflow is executed. The action class is very similar to a job. When ever the action get executed, the model will be passed to the construct method. You can use the model to do whatever ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Tschucki","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Tschucki/filament-workflows/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}