database/factories/ProductFactory.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' => ['en' => $this->faker->name(), 'ar' => $this->faker->name() ],
            'price' => $this->faker->numerify('###'),
        ];
    }
public function definition ( ) { return [ 'name' => [ 'en' => $ this -> faker -> name ( ) , 'ar' => $ this -> faker -> name ( ) ] , 'price' => $ this -> faker -> numerify ( '###' ) , ] ; }
Define the model's default state.
Define the model ' s default state .