. */ /* |-------------------------------------------------------------------------- | Model Factories |-------------------------------------------------------------------------- | | This directory should contain each of the model factory definitions for | your application. Factories provide a convenient way to generate new | model instances for testing / seeding your application's database. | */ namespace Database\Factories; use App\Models\User; use Illuminate\Database\Eloquent\Factories\Factory; class UserFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = \App\Models\User::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'username' => $this->faker->userName, 'display_name' => $this->faker->userName, 'slug' => $this->faker->slug, 'email' => $this->faker->email, 'can_see_explicit_content' => true, 'uses_gravatar' => true, 'bio' => $this->faker->paragraph, 'track_count' => 0, 'comment_count' => 0, ]; } }