Skip to content

convenia/laravel-timeliner

Repository files navigation

Laravel Timeliner (with DynamoDB)

               

Basic Overview

Create a timeline Mirroring your models or add standalone events

Install

composer require convenia/timeliner

publish and register

php artisan vendor:publish --tag="checklistable"

Usage

configure your mirroring models

      use Timelinable;
	      
      public $mirrorableFormat = [
       'event-name' = [
         'fields' => [
           'field' => 'somefunction|function',
           'category' => 'category_name|static',
           'date' => 'created_at'
        ],
        'tags' => [
          'something|static',
          'model_field',
          'model.relation_field'
        ],
        'pinned' => 'model_field',
        'category' => 'model.relation_field'

Or add event manually

	$timelineService->createFromData();

License

Checklistable is open-sourced software licensed under the MIT license