database/factories/Member/AccountFactory.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()
    {
        $finanicalYear = CommonServices::getFinancialYear();
        return [
            "registration_number" =>
                "MEM" . $this->faker->randomNumber(5, true),
            "contact_id" => Contact::factory(),
            "due_date" => $this->faker
                ->dateTimeBetween("now", "+07 days")
                ->format("m/d/Y"),
            "outstanding_payment" => 1080,
            "financial_year" => $finanicalYear,
            "status" => 1,
        ];
    }
public function definition ( ) { $ finanicalYear = CommonServices :: getFinancialYear ( ) ; return [ " registration_number " => " MEM " . $ this -> faker -> randomNumber ( 5 , true ) , " contact_id " => Contact :: factory ( ) , " due_date " => $ this -> faker -> dateTimeBetween ( " now " , " +07 days " ) -> format ( " m/d/Y " ) , " outstanding_payment " => 1080 , " financial_year " => $ finanicalYear , " status " => 1 , ] ; }
Define the model's default state.
Define the model ' s default state .