/laravel-timeliner

Make a timeline attached a model

Primary LanguagePHPMIT LicenseMIT

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