seeder wip

This commit is contained in:
salam committed 2025-09-26 15:39:52 +02:00
1 parent 1d16946f20
commit 005924ef8a
34 files changed
+286 -325

No files matched your search

+20 -1
View File
@@ -2,9 +2,28 @@
namespace App\Models;
use Database\Factories\AuftraggeberFactory;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Auftraggeber extends Model
{
//
use HasFactory;
protected $fillable = [
'konto_id',
'name',
'logo',
'address',
'country',
'kontakt',
'email',
'phone',
];
protected static function newFactory(): Factory
{
return AuftraggeberFactory::new();
}
}
+10
View File
@@ -14,6 +14,16 @@ class Gutachter extends Model
use HasFactory;
use SoftDeletes;
protected $fillable = [
'konto_id',
'name',
'logo',
'address',
'country',
'email',
'phone',
];
protected static function booted(): void
{
static::addGlobalScope(new KontoScope);
+1 -3
View File
@@ -20,15 +20,13 @@ class Konto extends Model
protected $fillable = [
'title',
'gender',
'first_name',
'last_name',
'name',
'company',
'email',
'address',
'country',
'phone',
'uid_number',
'agb_akzeptiert',
'plan_id',
'guthaben',
'gueltig_bis',
+1
View File
@@ -34,6 +34,7 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
'name',
'email',
'password',
'agb_akzeptiert',
'app_verified_at',
];