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

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

No files matched your search

+15
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'];
}