Add (ui)
This commit is contained in:
@@ -11,39 +11,36 @@
|
||||
|
||||
/**
|
||||
* Class PostEntity
|
||||
*
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $post_id
|
||||
* @property int $entity_id
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
*
|
||||
* @property Post $post
|
||||
* @property Entity $entity
|
||||
*
|
||||
* @package App\Models
|
||||
*/
|
||||
class PostEntity extends Model
|
||||
{
|
||||
protected $table = 'post_entities';
|
||||
protected $table = 'post_entities';
|
||||
|
||||
protected $casts = [
|
||||
'post_id' => 'int',
|
||||
'entity_id' => 'int'
|
||||
];
|
||||
protected $casts = [
|
||||
'post_id' => 'int',
|
||||
'entity_id' => 'int',
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'post_id',
|
||||
'entity_id'
|
||||
];
|
||||
protected $fillable = [
|
||||
'post_id',
|
||||
'entity_id',
|
||||
];
|
||||
|
||||
public function post()
|
||||
{
|
||||
return $this->belongsTo(Post::class);
|
||||
}
|
||||
public function post()
|
||||
{
|
||||
return $this->belongsTo(Post::class);
|
||||
}
|
||||
|
||||
public function entity()
|
||||
{
|
||||
return $this->belongsTo(Entity::class);
|
||||
}
|
||||
public function entity()
|
||||
{
|
||||
return $this->belongsTo(Entity::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user