database/factories/CategorieFactory.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 [
            'nom'=> $this->faker->unique()->randomElement(['web','design','mobile','devops','programmation'])
        ];
    }
public function definition ( ) { return [ 'nom' => $ this -> faker -> unique ( ) -> randomElement ( [ 'web' , 'design' , 'mobile' , 'devops' , 'programmation' ] ) ] ; }
Define the model's default state.
Define the model ' s default state .