Update Story model

pull/1807/head
Daniel Supernault 2019-11-10 17:25:28 -07:00
rodzic 9ca8d88fdc
commit 6a81f161fa
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 17 dodań i 0 usunięć

Wyświetl plik

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