Grundgerüst Formulare und Seeder
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
|
||||
namespace App;
|
||||
|
||||
use App\Models\Document;
|
||||
use App\Models\Contract;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphMany;
|
||||
|
||||
trait HasContracts
|
||||
{
|
||||
public function contracts()
|
||||
public function contracts(): MorphMany
|
||||
{
|
||||
return $this->morphMany(Document::class, 'contractable');
|
||||
return $this->morphMany(Contract::class, 'contractable');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user