Update Story model

This commit is contained in:
Daniel Supernault 2019-11-10 17:25:28 -07:00
parent 9ca8d88fdc
commit 6a81f161fa
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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()