mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Story model
This commit is contained in:
parent
9ca8d88fdc
commit
6a81f161fa
1 changed files with 17 additions and 0 deletions
|
@ -4,9 +4,26 @@ namespace App;
|
||||||
|
|
||||||
use Auth;
|
use Auth;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Pixelfed\Snowflake\HasSnowflakePrimary;
|
||||||
|
|
||||||
class Story extends Model
|
class Story extends Model
|
||||||
{
|
{
|
||||||
|
use HasSnowflakePrimary;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates if the IDs are auto-incrementing.
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
public $incrementing = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that should be mutated to dates.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
protected $dates = ['published_at', 'expires_at'];
|
||||||
|
|
||||||
protected $visible = ['id'];
|
protected $visible = ['id'];
|
||||||
|
|
||||||
public function profile()
|
public function profile()
|
||||||
|
|
Loading…
Reference in a new issue