2018-06-07 23:46:40 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
class Metadata extends Model
|
|
|
|
{
|
|
|
|
public $incrementing = false;
|
|
|
|
protected $primaryKey = 'url';
|
|
|
|
protected $keyType = 'string';
|
|
|
|
|
2019-01-15 15:31:15 +09:00
|
|
|
protected $fillable = ['url', 'title', 'description', 'image', 'expires_at'];
|
|
|
|
protected $visible = ['url', 'title', 'description', 'image', 'expires_at'];
|
2018-06-07 23:46:40 +09:00
|
|
|
}
|