awen Buat Model, Migration, Factory dan Controller dengan satu perintah artisan : php artisan make:model Product -m -f -c Contoh migration: public function up() { Schema::create('products', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('product_name'); $table->text('description'); $table->string('category'); $table->decimal('amount', 8, 0); $table->text('product_image'); $table->timestamps(); }); } Isi data return dalam function defenition dengan data faker sesuai kolom database. Contoh return [ 'product_name' => $faker->sentence(3), 'description' => $faker->text(300), 'category' => $faker->sentence(2), 'amount' => $faker->numberBetween($min = 10000, $max = 50000), 'product_image' => $faker->imageUrl($width = 640, $height = 480) ]; Jalankan perintah: php artisan tinker Dalam tinker jalankan factory yang telah dibuat dengan perintah : App\Models\Product::factory()->count(50)->create() sesuaikan dengan jumlah data yang diinginkan, perintah diatas akan menghasilkan 50 data product.