Eine Fassung bleibt nummeriert und kann deaktiviert werden. Beschreibung und fachliche Säulen gehören zum Medium und legen keine neue Fassung an. Co-authored-by: Cursor <cursoragent@cursor.com>
19 lines
338 B
PHP
19 lines
338 B
PHP
<?php
|
|
|
|
namespace App\Domain\Catalog;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
|
|
|
class Pillar extends Model
|
|
{
|
|
protected $fillable = [
|
|
'name',
|
|
];
|
|
|
|
public function elements(): BelongsToMany
|
|
{
|
|
return $this->belongsToMany(ContentElement::class);
|
|
}
|
|
}
|