affenpilot/timeline

此包的最新版本(v1.0.0)没有可用的许可证信息。

此包用于时间线。

v1.0.0 2017-11-11 21:31 UTC

This package is not auto-updated.

Last update: 2024-09-22 16:50:30 UTC


README

这是一个 Laravel 的基本时间线模块。

安装

在 'config\app.php' 文件中的 providers 数组中添加以下行

...

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

...

发布和迁移

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

使用方法

<?php

namespace App;

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

class User extends Model
{
    use HasPosts;
}