* wip * wip * wip * wip * fix * wip * wip * fix * fix * cs fix * #116 - fix * #116 - changed home-office icon * Apply suggestions from code review Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com> * #116 - cr fix * #116 - cs fix * #116 - cs fix * Apply suggestions from code review Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com> * #5 - bump codestyle Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl> Co-authored-by: Krzysztof Rewak <krzysztof.rewak@gmail.com> Co-authored-by: Ewelina Lasowy <56546832+EwelinaLasowy@users.noreply.github.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			954 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			954 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
declare(strict_types=1);
 | 
						|
 | 
						|
namespace Database\Factories;
 | 
						|
 | 
						|
use Illuminate\Database\Eloquent\Factories\Factory;
 | 
						|
use Illuminate\Support\Carbon;
 | 
						|
use Toby\Domain\Enums\EmploymentForm;
 | 
						|
use Toby\Eloquent\Models\Profile;
 | 
						|
use Toby\Eloquent\Models\User;
 | 
						|
 | 
						|
class ProfileFactory extends Factory
 | 
						|
{
 | 
						|
    protected $model = Profile::class;
 | 
						|
 | 
						|
    public function definition(): array
 | 
						|
    {
 | 
						|
        return [
 | 
						|
            "user_id" => User::factory(),
 | 
						|
            "first_name" => $this->faker->firstName(),
 | 
						|
            "last_name" => $this->faker->lastName(),
 | 
						|
            "employment_form" => $this->faker->randomElement(EmploymentForm::cases()),
 | 
						|
            "position" => $this->faker->jobTitle(),
 | 
						|
            "employment_date" => Carbon::createFromInterface($this->faker->dateTimeBetween("2020-10-27"))->toDateString(),
 | 
						|
            "birthday" => Carbon::createFromInterface($this->faker->dateTimeBetween("1970-01-01", "1998-01-01"))->toDateString(),
 | 
						|
        ];
 | 
						|
    }
 | 
						|
}
 |