jonnybarnes.uk/app/WebMention.php

33 lines
520 B
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class WebMention extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'webmentions';
/**
* Define the relationship.
*
* @var array
*/
public function commentable()
{
return $this->morphTo();
}
/**
* We shall set a blacklist of non-modifiable model attributes.
*
* @var array
*/
protected $guarded = ['id'];
}