database/seeders/PlansSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $plans = [
            [
                "name" => "Monthly@1,200",
                "fee" => 1200,
                "validity" => 30,
            ],
            [
                "name" => "3 Months@3,000",
                "fee" => 3000,
                "validity" => 90,
            ],
            [
                "name" => "6 Months@6,500",
                "fee" => 6500,
                "validity" => 180,
            ],
        ];
        foreach ($plans as $plan) {
            Plan::updateOrCreate($plan);
        }
    }
public function run ( ) { $ plans = [ [ " name " => " Monthly@1,200 " , " fee " => 1200 , " validity " => 30 , ] , [ " name " => " 3 Months@3,000 " , " fee " => 3000 , " validity " => 90 , ] , [ " name " => " 6 Months@6,500 " , " fee " => 6500 , " validity " => 180 , ] , ] ; foreach ( $ plans as $ plan ) { Plan :: updateOrCreate ( $ plan ) ; } }
Run the database seeds.
Run the database seeds .
//                "value" => "monthly", //                "value" => "3months", //                "value" => "6months",