database/factories/CouponFactory.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 [
            'code' => 'FIRST-20',
            'description' => $this->faker->sentence(),
            'discount' => '20'
        ];
    }
public function definition ( ) { return [ 'code' => 'FIRST-20' , 'description' => $ this -> faker -> sentence ( ) , 'discount' => '20' ] ; }
Define the model's default state.
Define the model ' s default state .