Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

beyondcode/nova-rss-card

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Nova RSS Card

Latest Version on Packagist Total Downloads

Display custom RSS feeds on your Nova dashboard.

This also works great in combination with the custom dashboard card for Nova.

tinker screenshot

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require beyondcode/nova-rss-card

Next up, you must register the card with Nova. This is typically done in the cards method of the NovaServiceProvider.

// in app/Providers/NovaServiceProvder.php

// ...
public function cards()
{
    return [
        // ...
        new RssCard('https://feed.laravel-news.com/'),
    ];
}

Custom layout

You can customize the RSS feed card height by specifying it as the second parameter in the constructor, like this:

new RssCard('https://feed.laravel-news.com/', '500px),

Custom amount of items

To customize the amount of items to show on your RSS feed card, you can set a limit property as a meta attribute on your RSS feed card, like this:

(new RssCard('https://feed.laravel-news.com/', '500px))->withMeta([
    'limit' => 10
]),

Usage

Just visit your Nova dashboard and you'll see the latest entries from your RSS feeds.

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email marcel@beyondco.de instead of using the issue tracker.

Credits

License

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