database/seeds/ImagesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Image::create([
            'id_product'->id_product,
            'img_path'->img_path
        ]);
    }
public function run ( ) { Image :: create ( [ 'id_product' -> id_product , 'img_path' -> img_path ] ) ; }
Run the database seeds.
Run the database seeds .