From 6a81f161fad96c2c7c47be1c562d5f9514073602 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 10 Nov 2019 17:25:28 -0700 Subject: [PATCH] Update Story model --- app/Story.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/Story.php b/app/Story.php index 314679b69..104f0e58f 100644 --- a/app/Story.php +++ b/app/Story.php @@ -4,9 +4,26 @@ namespace App; use Auth; use Illuminate\Database\Eloquent\Model; +use Pixelfed\Snowflake\HasSnowflakePrimary; 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']; public function profile()