database/factories/TransFactory.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 [
            'email' => $this->faker->unique()->safeEmail(),
            'description' => $this->faker->text(190),
            'amount' => $this->faker->randomFloat(2,0,10000),
            'from_acc_id' => $this->faker->numberBetween(1,10000),
            'to_acc_id' => $this->faker->numberBetween(1,10000)
        ];
    }
public function definition ( ) { return [ 'email' => $ this -> faker -> unique ( ) -> safeEmail ( ) , 'description' => $ this -> faker -> text ( 190 ) , 'amount' => $ this -> faker -> randomFloat ( 2 , 0 , 10000 ) , 'from_acc_id' => $ this -> faker -> numberBetween ( 1 , 10000 ) , 'to_acc_id' => $ this -> faker -> numberBetween ( 1 , 10000 ) ] ; }
Define the model's default state.
Define the model ' s default state .
//