38 lines
1019 B
PHP
38 lines
1019 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Konto;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
/**
|
|
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\Gutachter>
|
|
*/
|
|
class GutachterFactory extends Factory
|
|
{
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
|
|
$adress = '9170 Bad Leonfelden / Simone-Wittmann-Weg 3
|
|
UID: ATU68008336 . Firmenbuchnummer 23456w
|
|
Telefon: +43 699 4727182 / Fax: +43 699 4727182-3
|
|
gpetrovic@gmx.at';
|
|
|
|
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(),
|
|
'email' => fake()->email(),
|
|
'phone' => fake()->PhoneNumber(),
|
|
'gutachten_layout' => $adress,
|
|
];
|
|
}
|
|
}
|