Страницы · Laravilt
ViewAction
Navigate to view page for a record
Navigate to the view/show page for a record.
Basic Usage
php
Default Configuration
- Icon: Eye
- Color: secondary
- Method: GET
- Auto-resolves URL from resource context
Custom Label
php
Custom Icon
php
Open in New Tab
php
Custom URL
php
Conditional Visibility
php
Authorization
php
API Reference
| Method | Parameters | Description |
|---|---|---|
make() | ?string $name | Create action |
label() | string | Set label |
icon() | string | Set icon |
color() | string | Set color |
url() | string|Closure | Custom URL |
openUrlInNewTab() | — | Open in new tab |
visible() | bool|Closure | Show condition |
hidden() | bool|Closure | Hide condition |
authorize() | Closure | Auth callback |
can() | string | Spatie permission |