database/seeds/MembershipsTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $memberships = array(
            array(
                "id" => 1,
                "mem_title" => "Gold",
                "monthly_price" => "500",
                "yearly_price" => "1000",
                "lifeTime_price" => "2000",
            ),
            array(
                "id" => 2,
                "mem_title" => "Basic",
                "monthly_price" => "500",
                "yearly_price" => "1000",
                "lifeTime_price" => "2000",
            ),
            array(
                "id" => 3,
                "mem_title" => "freemium",
                "monthly_price" => "500",
                "yearly_price" => "1000",
                "lifeTime_price" => "2000",
            ),
            array(
                "id" => 4,
                "mem_title" => "Premium",
                "monthly_price" => "500",
                "yearly_price" => "1000",
                "lifeTime_price" => "2000",
            )
        );
        foreach ($memberships as $membership)
        {
            \App\Models\Membership::create($membership);
        }
    }
public function run ( ) { $ memberships = array ( array ( " id " => 1 , " mem_title " => " Gold " , " monthly_price " => " 500 " , " yearly_price " => " 1000 " , " lifeTime_price " => " 2000 " , ) , array ( " id " => 2 , " mem_title " => " Basic " , " monthly_price " => " 500 " , " yearly_price " => " 1000 " , " lifeTime_price " => " 2000 " , ) , array ( " id " => 3 , " mem_title " => " freemium " , " monthly_price " => " 500 " , " yearly_price " => " 1000 " , " lifeTime_price " => " 2000 " , ) , array ( " id " => 4 , " mem_title " => " Premium " , " monthly_price " => " 500 " , " yearly_price " => " 1000 " , " lifeTime_price " => " 2000 " , ) ) ; foreach ( $ memberships as $ membership ) { \ App \ Models \ Membership :: create ( $ membership ) ; } }
Run the database seeds.
Run the database seeds .