pixelfed/app/CollectionItem.php

24 lines
386 B
PHP
Raw Normal View History

2018-10-17 18:21:13 +00:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
2019-04-26 01:56:04 +00:00
use Pixelfed\Snowflake\HasSnowflakePrimary;
2018-10-17 18:21:13 +00:00
class CollectionItem extends Model
{
2019-04-26 01:56:04 +00:00
use HasSnowflakePrimary;
/**
* Indicates if the IDs are auto-incrementing.
*
* @var bool
*/
public $incrementing = false;
2019-02-03 21:48:03 +00:00
public function collection()
{
return $this->belongsTo(Collection::class);
}
2018-10-17 18:21:13 +00:00
}