qikker-online/external-url 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

qikker-online/external-url

最新稳定版本:1.0.2

Composer 安装命令:

composer require qikker-online/external-url

包简介

Add external URLs to your laravel nova fields

README 文档

README

Packagist

Add external URLs to your laravel nova fields

Installation

  1. composer require qikker-online/external-url

Usage

To use this field you can simply add it to your fields method on your Nova/Resource like this:

ExternalUrl::make('URL', 'url'),

You can also add a custom title to the URL:

ExternalUrl::make('URL', 'url')->customTitle('Click Here'),

ExternalUrl::make('URL', 'url')->customTitle(function() {
    return 'Click Here: '.$this->url;
}),

Likewise, you can also add a custom URL, so when the user clicks on the link it will be sent to somewhere else. This might be useful if you want to clean up the url:

ExternalUrl::make('URL', 'url')->customUrl('https://www.qikkeronline.nl'),

ExternalUrl::make('URL', 'url')->customUrl(function() {
    return 'https://'.$this->url;
}),

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 2.66k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-07