unify logo register also auftraggeber und gutacher at register
This commit is contained in:
1 parent
481f5ec6eb
commit
f928513668
16 files changed
+76
-68
No files matched your search
@@ -19,9 +19,11 @@ class AuftraggeberFactory extends Factory
|
||||
{
|
||||
return [
|
||||
'konto_id' => Konto::all()->random()->id,
|
||||
'title' => fake()->randomElement(['Architekt:in', 'Ziviltechniker:in']),
|
||||
'gender' => fake()->randomElement(['Frau', 'Herr']),
|
||||
'name' => fake()->name(),
|
||||
'company' => fake()->Company(),
|
||||
'address' => fake()->Address(),
|
||||
'kontakt' => fake()->name(),
|
||||
'country' => 'Österreich',
|
||||
'email' => fake()->email(),
|
||||
'phone' => fake()->PhoneNumber(),
|
||||
|
||||
@@ -19,11 +19,14 @@ class GutachterFactory extends Factory
|
||||
{
|
||||
return [
|
||||
'konto_id' => Konto::all()->random()->id,
|
||||
'title' => fake()->randomElement(['Architekt:in', 'Ziviltechniker:in']),
|
||||
'gender' => fake()->randomElement(['Frau', 'Herr']),
|
||||
'name' => fake()->name(),
|
||||
'company' => fake()->Company(),
|
||||
'address' => fake()->Address(),
|
||||
'country' => 'Österreich',
|
||||
'phone' => fake()->PhoneNumber(),
|
||||
'email' => fake()->email(),
|
||||
'phone' => fake()->PhoneNumber(),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -14,13 +14,16 @@ return new class extends Migration
|
||||
Schema::create('gutachters', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('konto_id')->constrained();
|
||||
$table->string('title')->nullable();
|
||||
$table->string('gender')->nullable();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('company')->nullable();
|
||||
$table->string('logo')->nullable();
|
||||
$table->text('address')->nullable();
|
||||
$table->string('country')->nullable();
|
||||
$table->string('phone')->nullable();
|
||||
$table->string('email')->nullable();
|
||||
$table->timestamp('deleted_at')->nullable();
|
||||
$table->string('phone')->nullable();
|
||||
$table->boolean('use_logo')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -14,13 +14,16 @@ return new class extends Migration
|
||||
Schema::create('auftraggebers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('konto_id')->constrained();
|
||||
$table->string('title')->nullable();
|
||||
$table->string('gender')->nullable();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('company')->nullable();
|
||||
$table->string('logo')->nullable();
|
||||
$table->text('address')->nullable();
|
||||
$table->string('country')->nullable();
|
||||
$table->string('kontakt')->nullable();
|
||||
$table->string('email')->email()->nullable();
|
||||
$table->string('phone')->tel()->nullable();
|
||||
$table->boolean('use_logo')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -15,9 +15,11 @@ class DatabaseSeeder extends Seeder
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
Konto::factory()->count(10)->create();
|
||||
Gutachter::factory()->count(30)->create();
|
||||
Auftraggeber::factory()->count(30)->create();
|
||||
if (app()->isLocal()) {
|
||||
Konto::factory()->count(10)->create();
|
||||
Gutachter::factory()->count(30)->create();
|
||||
Auftraggeber::factory()->count(30)->create();
|
||||
}
|
||||
|
||||
$this->call([
|
||||
OrientierungenSeeder::class,
|
||||
@@ -25,7 +27,8 @@ class DatabaseSeeder extends Seeder
|
||||
RolesAndPermissionsSeeder::class,
|
||||
]);
|
||||
|
||||
User::factory()->count(40)->create();
|
||||
|
||||
if (app()->isLocal()) {
|
||||
User::factory()->count(40)->create();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user