Grundgerüst Formulare und Seeder
This commit is contained in:
15
app/HasContactgroups.php
Normal file
15
app/HasContactgroups.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use App\Models\Contactgroup;
|
||||
use App\Models\Document;
|
||||
|
||||
trait HasContactgroups
|
||||
{
|
||||
public function contactgroups()
|
||||
{
|
||||
return $this->morphToMany(Contactgroup::class, 'contactgroupable');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user