TRF Certest first commit
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
use Vanguard\Country;
|
||||
|
||||
class CountryFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $model = Country::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'country_code' => $this->faker->countryCode,
|
||||
'iso_3166_2' => strtoupper($this->faker->randomLetter.$this->faker->randomLetter),
|
||||
'iso_3166_3' => $this->faker->countryISOAlpha3,
|
||||
'name' => $this->faker->country,
|
||||
'region_code' => 123,
|
||||
'sub_region_code' => 123,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user