database/factories/Member/SubscriptionFactory.php
/**
     * Define the model's default state.
     *
     * @return array
     */
Define the model's default state.
@return array
Define the model ' s default state . @return array
public function definition()
    {
        return [
            "plan_id" => 1,
            "account_id" => 1,
            "start_date" => $this->faker
                ->dateTimeBetween("now", "now")
                ->format("m/d/Y"),
            "end_date" => $this->faker
                ->dateTimeBetween("+30 days", "+30 days")
                ->format("m/d/Y"),
            "charge" => 1200,
        ];
    }
public function definition ( ) { return [ " plan_id " => 1 , " account_id " => 1 , " start_date " => $ this -> faker -> dateTimeBetween ( " now " , " now " ) -> format ( " m/d/Y " ) , " end_date " => $ this -> faker -> dateTimeBetween ( " +30 days " , " +30 days " ) -> format ( " m/d/Y " ) , " charge " => 1200 , ] ; }
Define the model's default state.
Define the model ' s default state .