الصفحات · Laravilt
ForceDeleteAction
Permanently delete records
Permanently delete records. Only visible for trashed records.
Basic Usage
php
Default Configuration
- Icon: Trash2
- Color: destructive
- Requires Confirmation: Yes
- Only visible for soft-deleted records
- Permanently removes the record
Custom Confirmation
php
Authorization
php
Requirements
Your model must use the SoftDeletes trait:
php
API Reference
| Method | Parameters | Description |
|---|---|---|
make() | ?string $name | Create action |
label() | string | Set label |
icon() | string | Set icon |
color() | string | Set color |
modalHeading() | string | Modal title |
modalDescription() | string | Modal message |
can() | Closure | Authorization |