オカズリンクのデータを保存するようにした (#4)
This commit is contained in:
15
app/Metadata.php
Normal file
15
app/Metadata.php
Normal 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'];
|
||||
}
|
Reference in New Issue
Block a user