database/seeders/SubCategorySeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $subCategory = [
            [
                'id' => '1',
                'name' => 'Sub-Ct-1',
                'thumbnail' => 'NO_IMAGE.png',
                'category_id' => '1',
            ],
        ];
        SubCategory::insert($subCategory);
    }
public function run ( ) { $ subCategory = [ [ 'id' => '1' , 'name' => 'Sub-Ct-1' , 'thumbnail' => 'NO_IMAGE.png' , 'category_id' => '1' , ] , ] ; SubCategory :: insert ( $ subCategory ) ; }
Run the database seeds.
Run the database seeds .