database/factories/CostInsightFactory.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 [
            'ad_account_id' => $this->faker->randomNumber(4),
            'ad_id' => Ad::factory(),
            'campaign_id' => Campaign::factory(),
            'ad_group_id' => AdGroup::factory(),
            'date' => $this->faker->date('Y-m-d'),
            'total_clickthrough' => $this->faker->randomNumber(),
            'spend' => $this->faker->randomFloat(2),
        ];
    }
public function definition ( ) { return [ 'ad_account_id' => $ this -> faker -> randomNumber ( 4 ) , 'ad_id' => Ad :: factory ( ) , 'campaign_id' => Campaign :: factory ( ) , 'ad_group_id' => AdGroup :: factory ( ) , 'date' => $ this -> faker -> date ( 'Y-m-d' ) , 'total_clickthrough' => $ this -> faker -> randomNumber ( ) , 'spend' => $ this -> faker -> randomFloat ( 2 ) , ] ; }
Define the model's default state.
Define the model ' s default state .