khalin/nova-link-field is a Laravel package for a laravel nova link field..
It currently has 31 GitHub stars and 584.420 downloads on Packagist (latest version v1.2.4).
Install it with composer require khalin/nova-link-field.
Discover more Laravel packages by khalin
or browse all Laravel packages to compare alternatives.
Last updated


composer require khalin/nova-link-fielduse Khalin\Nova\Field\Link;Fields arrayLink::make('Charge Id', 'stripe_id'),
For this needs you can use url() function (accept Callable or string)
Example:
Link::make('Charge Id', 'stripe_id')
->url(function () {
return "https://dashboard.stripe.com/payments/{$this->stripe_id}";
})
For this needs you can use text() function (accept Callable or text)
Example:
Link::make('Charge Id', 'stripe_id')
->url(function () {
return "https://dashboard.stripe.com/payments/{$this->stripe_id}";
})
->text("Go To Stripe")
Replaces text with an icon on the index view. For this needs you can use icon() function
Example:
Link::make('Charge Id', 'stripe_id')
->url(function () {
return "https://dashboard.stripe.com/payments/{$this->stripe_id}";
})
->text("Go To Stripe")
->icon()
For this needs you can use blank() function.
Example:
Link::make('Charge Id', 'stripe_id')
->url(function () {
return "https://dashboard.stripe.com/payments/{$this->stripe_id}";
})
->blank()
<a>For this needs you can use classes() function (accept Callable or text).
Example:
Link::make('Charge Id', 'stripe_id')
->classes(function () {
return null === $this->charge_id ? 'charge__pending' : "charge_successfull";
})