projekt wip bofore relations
This commit is contained in:
1 parent
aa301f1197
commit
69d4efcd9d
11 files changed
+80
-89
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Scopes\KontoScope;
|
||||
use Database\Factories\AuftraggeberFactory;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
@@ -36,6 +37,11 @@ class Auftraggeber extends Model
|
||||
];
|
||||
}
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::addGlobalScope(new KontoScope);
|
||||
}
|
||||
|
||||
protected static function newFactory(): Factory
|
||||
{
|
||||
return AuftraggeberFactory::new();
|
||||
|
||||
Reference in new issue
Block a user