ldc-startcoq/app/Models/Keywordable.php
2023-02-23 16:12:54 +01:00

36 lines
687 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* @property integer $id
* @property integer $keyword_id
* @property string $model
* @property integer $keywordable_id
* @property string $created_at
* @property string $updated_at
* @property Keyword $keyword
*/
class Keywordable extends Model
{
/**
* @var array
*/
protected $fillable = [
'keyword_id',
'model',
'keywordable_id',
'created_at',
'updated_at'
];
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function keyword()
{
return $this->belongsTo('App\Models\Keyword');
}
}