पेज · Laravilt
ReplicateAction
Duplicate records with customization options
Duplicate records using Laravel's replicate() method.
Basic Usage
php
Default Configuration
- Icon: Copy
- Color: gray
- Requires Confirmation: Yes
Exclude Attributes
php
Before Save Callback
php
After Save Callback
php
Success Redirect
php
Custom Confirmation
php
API Reference
| Method | Parameters | Description |
|---|---|---|
make() | ?string $name | Create action |
excludeAttributes() | array | Attributes to exclude |
beforeReplicaSaved() | Closure | Modify before save |
afterReplicaSaved() | Closure | Run after save |
successRedirectUrl() | string|Closure | Redirect URL |
modalHeading() | string | Modal title |