outl1ne/nova-link-field

A Link field for Laravel Nova.

Installs: 10 181

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Language:Vue

1.0.0 2022-08-10 12:26 UTC

This package is auto-updated.

Last update: 2024-12-11 16:30:24 UTC


README

Latest Version on Packagist Total Downloads

This Laravel Nova package allows you to add links to index, detail and form views.

Requirements

  • php: >=8.0
  • laravel/nova: ^4.0

Features

  • Add links to index, detail and form views with ease

Installation

Install the package in to a Laravel app that uses Nova via composer:

composer require outl1ne/nova-link-field

Usage

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(),
}

Credits

License

Nova Link Field is open-sourced software licensed under the MIT license.