ein paar test-objekte
This commit is contained in:
14
app/HasContracts.php
Normal file
14
app/HasContracts.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use App\Models\Document;
|
||||
|
||||
trait HasContracts
|
||||
{
|
||||
public function contracts()
|
||||
{
|
||||
return $this->morphMany(Document::class, 'contractable');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user