bilfeldt / laravel-route-statistics

Log requests and group together for aggregated statistics of route usage
MIT License
227 stars 23 forks source link

Update RouteStatisticFactory.php #15

Closed MariaEkibtia closed 1 year ago

MariaEkibtia commented 1 year ago

This PR fixes 4 issues-

First,

// Before this PR:
// $this->faker->randomElements (plural)

// After this PR:
// $this->faker->randomElement (now singular)

Second,

// Before this PR:
// 'code'   =>

// After this PR:
// 'status'   => (replaced attribute name `code` with `status`)

Third,

// Before this PR:
// $this->faker->ipv4,
// $this->faker->dateTime,

// After this PR:
// $this->faker->ipv4(), (added parentheses)
// $this->faker->dateTime(), (added parentheses)

Fourth,

// Before this PR:
// had 5 attributes

// After this PR:
// 'counter'   => $this->faker->randomNumber(4), (added sixth attribute field)