PHP Classes
elePHPant
Icontem

File: resources/js/card.js

Recommend this page to a friend!
  Classes of Naif Alshaye  >  Laravel Nova Twitter Timeline  >  resources/js/card.js  >  Download  
File: resources/js/card.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Nova Twitter Timeline
Show a Twitter user timeline in Laravel Nova
Author: By
Last change:
Date: 11 months ago
Size: 248 bytes
 

 

Contents

Class file image Download
Nova.booting((Vue, router) => {
    Vue.component('nova-twitter-timeline', require('./components/Card'));


    Vue.filter('formatDate', function(value) {
        if (value) {
            return moment(String(value)).fromNow()
        }
    });
})