database/factories/TicketFactory.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 [
      'author' => rand(0, 10),
      'assignee' => rand(0, 10),
      'title' => $this->faker->text(128),
      'text' => $this->faker->text(1280),
      'category_id' => 0,
      'project_id' => 0
    ];
  }
public function definition ( ) { return [ 'author' => rand ( 0 , 10 ) , 'assignee' => rand ( 0 , 10 ) , 'title' => $ this -> faker -> text ( 128 ) , 'text' => $ this -> faker -> text ( 1280 ) , 'category_id' => 0 , 'project_id' => 0 ] ; }
Define the model's default state.
Define the model ' s default state .