ldc-startcoq/app/Models/Keywordable.php

40 lines
785 B
PHP
Raw Normal View History

2023-02-22 11:51:36 +01:00
<?php
namespace App\Models;
2023-02-23 16:23:00 +01:00
use Illuminate\Database\Eloquent\Factories\HasFactory;
2023-02-22 11:51:36 +01:00
use Illuminate\Database\Eloquent\Model;
/**
* @property integer $id
* @property integer $keyword_id
* @property integer $keywordable_id
2023-06-21 10:24:56 +00:00
* @property string $keywordable_type
2023-02-22 11:51:36 +01:00
* @property string $created_at
* @property string $updated_at
* @property Keyword $keyword
*/
class Keywordable extends Model
{
2023-02-23 16:23:00 +01:00
use HasFactory;
2023-02-22 11:51:36 +01:00
/**
* @var array
*/
protected $fillable = [
'keyword_id',
'keywordable_id',
2023-06-21 10:24:56 +00:00
'keywordable_type',
2023-02-22 11:51:36 +01:00
'created_at',
'updated_at'
];
/**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function keyword()
{
return $this->belongsTo('App\Models\Keyword');
}
}