convenia/timeliner

在 DynamoDB 中创建时间轴,将您的模型镜像到时间轴格式

v1.1.4 2017-12-01 15:53 UTC

README

Laravel Timeliner(包含 DynamoDB)

               

基本概述

创建时间轴,镜像您的模型或添加独立事件

安装

composer require convenia/timeliner

发布和注册

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

用法

配置您的镜像模型

      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'

或手动添加事件

	$timelineService->createFromData();

许可协议

Checklistable 是开源软件,使用 MIT 许可协议(MIT 许可协议)许可