database/factories/CategoriesFactory.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 [
      'name' => $this->faker->text(10),
      'color' => ''
    ];
  }
public function definition ( ) { return [ 'name' => $ this -> faker -> text ( 10 ) , 'color' => '' ] ; }
Define the model's default state.
Define the model ' s default state .