Add (ui)
This commit is contained in:
@@ -12,28 +12,25 @@
|
||||
|
||||
/**
|
||||
* Class Entity
|
||||
*
|
||||
*
|
||||
* @property int $id
|
||||
* @property string $name
|
||||
* @property Carbon|null $created_at
|
||||
* @property Carbon|null $updated_at
|
||||
*
|
||||
* @property Collection|PostEntity[] $post_entities
|
||||
*
|
||||
* @package App\Models
|
||||
*/
|
||||
class Entity extends Model
|
||||
{
|
||||
protected $table = 'entities';
|
||||
protected $table = 'entities';
|
||||
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'slug',
|
||||
'description'
|
||||
];
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'slug',
|
||||
'description',
|
||||
];
|
||||
|
||||
public function post_entities()
|
||||
{
|
||||
return $this->hasMany(PostEntity::class);
|
||||
}
|
||||
public function post_entities()
|
||||
{
|
||||
return $this->hasMany(PostEntity::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user