seeder wip
This commit is contained in:
1 parent
1d16946f20
commit
005924ef8a
34 files changed
+286
-325
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -34,6 +34,7 @@ class User extends Authenticatable implements FilamentUser, HasAppAuthentication
|
||||
'name',
|
||||
'email',
|
||||
'password',
|
||||
'agb_akzeptiert',
|
||||
'app_verified_at',
|
||||
];
|
||||
|
||||
|
||||
Reference in new issue
Block a user