database/factories/MetricFactory.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 [
            'title' => $this->faker->text(20),
            'value' => $this->faker->numberBetween(10,1000),
            'sort'  =>  $this->faker->randomDigit(),
            'pub'   =>  $this->faker->boolean(),
        ];
    }
public function definition ( ) { return [ 'title' => $ this -> faker -> text ( 20 ) , 'value' => $ this -> faker -> numberBetween ( 10 , 1000 ) , 'sort' => $ this -> faker -> randomDigit ( ) , 'pub' => $ this -> faker -> boolean ( ) , ] ; }
Define the model's default state.
Define the model ' s default state .