qikker-online/external-url
最新稳定版本:1.0.2
Composer 安装命令:
composer require qikker-online/external-url
包简介
Add external URLs to your laravel nova fields
README 文档
README
Add external URLs to your laravel nova fields
Installation
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
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-07