Páginas · Laravilt
RestoreAction
Restore soft-deleted records
Restore soft-deleted records. Only visible for trashed records.
Basic Usage
php
Default Configuration
- Icon: RotateCcw
- Color: success
- Requires Confirmation: Yes
- Only visible for soft-deleted records
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 |