*/ class ILaravelFactory extends Factory { use BaseFactory; protected $model = ILaravel::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'group_id' => 1, 'user_id' => 100, 'name' => fake()->name(), 'email' => fake()->safeEmail(), 'email_verified_at' => now(), 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 'remember_token' => Str::random(10), ]; } public static function list() { return [ 'name:null', 'name:numeric', 'name:gtString', 'email:null', 'email:numeric', 'email:ltString', 'email:unique', ]; } public function testGeneratorConfig() { return [ 'store' => 'profile, guest', 'update' => 'profile, guest', 'show' => '', 'delete' => '', ]; } public function dependencyProvider($dependencyAttributes= []) { return [ 'user_id' => UserDocument::factory()->create()->id ]; } }