*/ class UserTokenFactory extends Factory { protected $model = UserToken::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'user_id' => User::factory(), 'driver' => 'github', 'driver_id' => $this->faker->uuid, 'format' => 'oauth2', 'token' => $this->faker->word, ]; } }