database/seeders/UnitSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $unites = [
            [
                'id' => '1',
                'name' => 'Gl'
            ],
        ];
        Unit::insert($unites);
    }
public function run ( ) { $ unites = [ [ 'id' => '1' , 'name' => 'Gl' ] , ] ; Unit :: insert ( $ unites ) ; }
Run the database seeds.
Run the database seeds .