kregel/nova-news-card
Composer 安装命令:
composer require kregel/nova-news-card
包简介
A Laravel Nova card.
README 文档
README
Redis based storage, and pwoered by newsapi.org
All you will need is a developer token from newsapi.org, and predis for key persistence.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
composer require predis/predis
composer require kregel/nova-news-card
Next up, you must register the tool with Nova. This is typically done in the cards method of the NovaServiceProvider.
Usage
// in app/Providers/NovaServiceProvider.php // ... public function cards() { return [ // ... (new \Kregel\NovaNewsCard\News)->withMeta([ 'from' => \Carbon\Carbon::now()->subDays(5),f ]), // If you don't define coordinates it will default to your location. (new \Kregel\NovaNewsCard\News)->withMeta([ 'name' => 'Current location', ]), // Or you could forego all configuration. (which will default to no title, and your current location) new \Kregel\NovaNewsCard\News, ]; }
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email github@austinkregel.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Support on Beerpay
Hey dude! Help me out for a couple of 🍻!
统计信息
- 总下载量: 63
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-20
