Grundgerüst Formulare und Seeder

This commit is contained in:
2026-02-08 17:40:03 +00:00
parent 59fe129fd0
commit 3e765576bf
41 changed files with 914 additions and 94 deletions

View File

@@ -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');
}
}