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