This Laravel Nova package allows you to add links to index, detail and form views.
php: >=8.0
laravel/nova: ^4.0
- Add links to index, detail and form views with ease
Install the package in to a Laravel app that uses Nova via composer:
composer require outl1ne/nova-link-field
use Outl1ne\NovaLinkField\Link;
public function fields(Request $request) {
Link::make('Example link', 'some_value')
->text('Link to some value')
->to(fn ($someValue) => "https://example.com/{$someValue}")
->blank(),
}
Nova Link Field is open-sourced software licensed under the MIT license.