laravilt / actions
Complete action system with modal support, authorization, and Inertia.js integration. Build interactive UI components with buttons, links, and icon buttons. Includes confirmation modals, custom forms, and secure token-based execution.
Fund package maintenance!
fadymondy
Installs: 47
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/laravilt/actions
Requires
- php: ^8.3|^8.4
- spatie/laravel-package-tools: ^1.14
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- pestphp/pest-plugin-livewire: ^3.0
- pestphp/pest-plugin-type-coverage: ^3.5
- phpstan/extension-installer: ^1.3||^2.0
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
This package is auto-updated.
Last update: 2025-12-02 15:19:01 UTC
README
Laravilt Actions
Complete action system with modal support, authorization, and Inertia.js integration for Laravilt. Build interactive UI components with buttons, links, and icon buttons. Includes confirmation modals, custom forms, password protection, and secure token-based execution.
Features
- 🎨 Multiple Variants - Button, link, and icon button styles
- 🔒 Authorization - Closure-based authorization with record-level checks
- 📊 Modal Support - Confirmation modals, custom forms, slide-overs
- 🎯 Flexible Configuration - Colors, icons, sizes, tooltips
- 🔗 URL Handling - External URLs, internal actions, new tab support
- âš¡ Inertia Integration - Seamless Vue 3 integration
Installation
composer require laravilt/actions
The package will automatically register its service provider.
Quick Start
use Laravilt\Actions\Action; $action = Action::make('delete') ->label('Delete') ->icon('trash-2') ->color('danger') ->requiresConfirmation() ->modalHeading('Delete User') ->modalDescription('Are you sure?') ->action(function ($record) { $record->delete(); });
Generator Command
# Generate an action class
php artisan make:action ExportUserAction
Documentation
- Complete Documentation - Full feature guide, API reference, and examples
- MCP Server Guide - AI agent integration
Configuration
Publish the config file:
php artisan vendor:publish --tag="laravilt-actions-config"
Assets
Publish the plugin assets:
php artisan vendor:publish --tag="laravilt-actions-assets"
Testing
composer test
Code Style
composer format
Static Analysis
composer analyse
License
The MIT License (MIT). Please see License File for more information.
