database/factories/PortfolioFactory.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()
    {   
       static $i = 0;
       $i++;
        return [
            "image"=>  "portfolio-".$i.".jpg",
            "photo_id"=>$this->faker->numberBetween(1, 3),
        ];
    }
public function definition ( ) { static $ i = 0 ; $ i ++ ; return [ " image " => " portfolio- " . $ i . " .jpg " , " photo_id " => $ this -> faker -> numberBetween ( 1 , 3 ) , ] ; }
Define the model's default state.
Define the model ' s default state .