. */ /* |-------------------------------------------------------------------------- | 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 AlbumFactory extends Factory { /** * The name of the factory's corresponding model. * * @var string */ protected $model = \App\Models\Album::class; /** * Define the model's default state. * * @return array */ public function definition() { return [ 'title' => $this->faker->sentence(5), 'slug' => $this->faker->slug, 'description' => $this->faker->paragraph(5), ]; } }