ldc-startcoq/app/Models/Keywordable.php
2023-06-21 10:24:56 +00:00

39 lines
785 B
PHP

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