Skip to content

Affenpilot/Timeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Affenpilot Timeline

This is a basic timeline module for Laravel.

Installation

Add the following line in the providers array in 'config\app.php':

...

'providers' => [
    ...
    Affenpilot\Timeline\TimelineServiceProvider::class
    ...
]

...

Publish and migrate:

php artisan vendor:publish --provider="Affenpilot\Timeline\TimelineServiceProvider"

Usage

<?php

namespace App;

use Affenpilot\Timeline\HasPosts;
use Illuminate\Database\Eloquent\Model;

class User extends Model
{
    use HasPosts;
}