database/factories/SaleFactory.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 [
            'rate' => mt_rand(1,2),
            'payment' => mt_rand(35, 1000),
        ];
    }
public function definition ( ) { return [ 'rate' => mt_rand ( 1 , 2 ) , 'payment' => mt_rand ( 35 , 1000 ) , ] ; }
Define the model's default state.
Define the model ' s default state .