オカズリンクのデータを保存するようにした (#4)

This commit is contained in:
shibafu
2018-06-07 23:46:40 +09:00
parent f51aaea94c
commit dfe149e969
8 changed files with 180 additions and 6 deletions

15
app/Metadata.php Normal file
View File

@@ -0,0 +1,15 @@
<?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'];
protected $visible = ['url', 'title', 'description', 'image'];
}