database/factories/ReturningFactory.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()
    {
        $state_key = Arr::random(array_keys(Returning::STATE_NAMES));
        return [
            'returned_date' => $this->faker->date(),
            'state_key' => $state_key,
        ];
    }
public function definition ( ) { $ state_key = Arr :: random ( array_keys ( Returning :: STATE_NAMES ) ) ; return [ 'returned_date' => $ this -> faker -> date ( ) , 'state_key' => $ state_key , ] ; }
Define the model's default state.
Define the model ' s default state .