938a4d6957
メタデータの有効期限が現在より過去の場合、メタデータを再取得する
16 lines
365 B
PHP
16 lines
365 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Metadata extends Model
|
|
{
|
|
public $incrementing = false;
|
|
protected $primaryKey = 'url';
|
|
protected $keyType = 'string';
|
|
|
|
protected $fillable = ['url', 'title', 'description', 'image', 'expires_at'];
|
|
protected $visible = ['url', 'title', 'description', 'image', 'expires_at'];
|
|
}
|