Initial commit
This commit is contained in:
23
database/factories/ProfileFactory.php
Normal file
23
database/factories/ProfileFactory.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class ProfileFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'first_name' => $this->faker->firstName(),
|
||||
'last_name' => $this->faker->lastName(),
|
||||
'date_of_birth' => $this->faker->dateTimeBetween('-70 year', '-18 year'),
|
||||
'content' => $this->faker->text(mt_rand(50, 300))
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user