database/factories/OrderFactory.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 [
            'user_id' => $this->faker->numberBetween(1, 10),
            'transaction_id' => 'tr_'.Str::random(16),
            'total' => $this->faker->numberBetween(5000, 20000)
        ];
    }
public function definition ( ) { return [ 'user_id' => $ this -> faker -> numberBetween ( 1 , 10 ) , 'transaction_id' => 'tr_' . Str :: random ( 16 ) , 'total' => $ this -> faker -> numberBetween ( 5000 , 20000 ) ] ; }
Define the model's default state.
Define the model ' s default state .