metadataテーブルにexpires_atカラムを追加

メタデータの有効期限が現在より過去の場合、メタデータを再取得する
This commit is contained in:
eai04191
2019-01-15 15:31:15 +09:00
parent a3813f19cf
commit 938a4d6957
3 changed files with 37 additions and 4 deletions

View File

@@ -10,6 +10,6 @@ class Metadata extends Model
protected $primaryKey = 'url';
protected $keyType = 'string';
protected $fillable = ['url', 'title', 'description', 'image'];
protected $visible = ['url', 'title', 'description', 'image'];
protected $fillable = ['url', 'title', 'description', 'image', 'expires_at'];
protected $visible = ['url', 'title', 'description', 'image', 'expires_at'];
}