diff --git a/database/factories/AlertScheduleFactory.php b/database/factories/AlertScheduleFactory.php index 7f8c9c581f..5026957fef 100644 --- a/database/factories/AlertScheduleFactory.php +++ b/database/factories/AlertScheduleFactory.php @@ -23,8 +23,8 @@ class AlertScheduleFactory extends Factory public function definition() { return [ - 'title' => $this->faker->name, - 'notes' => $this->faker->text, + 'title' => $this->faker->name(), + 'notes' => $this->faker->text(), 'recurring' => 0, ]; } diff --git a/database/factories/BgpPeerFactory.php b/database/factories/BgpPeerFactory.php index f986f66493..c0aeee19ab 100644 --- a/database/factories/BgpPeerFactory.php +++ b/database/factories/BgpPeerFactory.php @@ -23,19 +23,19 @@ class BgpPeerFactory extends Factory public function definition() { return [ - 'bgpPeerIdentifier' => $this->faker->ipv4, - 'bgpLocalAddr' => $this->faker->ipv4, - 'bgpPeerRemoteAddr' => $this->faker->ipv4, + 'bgpPeerIdentifier' => $this->faker->ipv4(), + 'bgpLocalAddr' => $this->faker->ipv4(), + 'bgpPeerRemoteAddr' => $this->faker->ipv4(), 'bgpPeerRemoteAs' => $this->faker->numberBetween(1, 65535), 'bgpPeerState' => $this->faker->randomElement(['established', 'idle']), - 'astext' => $this->faker->sentence, + 'astext' => $this->faker->sentence(), 'bgpPeerAdminStatus' => $this->faker->randomElement(['start', 'stop']), 'bgpPeerInUpdates' => $this->faker->randomDigit(), 'bgpPeerOutUpdates' => $this->faker->randomDigit(), 'bgpPeerInTotalMessages' => $this->faker->randomDigit(), 'bgpPeerOutTotalMessages' => $this->faker->randomDigit(), - 'bgpPeerFsmEstablishedTime' => $this->faker->unixTime, - 'bgpPeerInUpdateElapsedTime' => $this->faker->unixTime, + 'bgpPeerFsmEstablishedTime' => $this->faker->unixTime(), + 'bgpPeerInUpdateElapsedTime' => $this->faker->unixTime(), ]; } } diff --git a/database/factories/BillFactory.php b/database/factories/BillFactory.php index ed13ed0128..e3d23b0b67 100644 --- a/database/factories/BillFactory.php +++ b/database/factories/BillFactory.php @@ -23,7 +23,7 @@ class BillFactory extends Factory public function definition() { return [ - 'bill_name' => $this->faker->text, + 'bill_name' => $this->faker->text(), ]; } } diff --git a/database/factories/DeviceFactory.php b/database/factories/DeviceFactory.php index 4fe0e080bf..e0e57e5430 100644 --- a/database/factories/DeviceFactory.php +++ b/database/factories/DeviceFactory.php @@ -23,8 +23,8 @@ class DeviceFactory extends Factory public function definition() { return [ - 'hostname' => $this->faker->domainWord . '-' . $this->faker->domainWord . '-' . $this->faker->domainWord . '.' . $this->faker->domainName, - 'ip' => $this->faker->randomElement([$this->faker->ipv4, $this->faker->ipv6]), + 'hostname' => $this->faker->domainWord() . '-' . $this->faker->domainWord() . '-' . $this->faker->domainWord() . '.' . $this->faker->domainName(), + 'ip' => $this->faker->randomElement([$this->faker->ipv4(), $this->faker->ipv6()]), 'type' => $this->faker->randomElement([ 'appliance', 'camera', diff --git a/database/factories/DeviceGroupFactory.php b/database/factories/DeviceGroupFactory.php index 6d3deb7e3f..a845d1ae86 100644 --- a/database/factories/DeviceGroupFactory.php +++ b/database/factories/DeviceGroupFactory.php @@ -23,7 +23,7 @@ class DeviceGroupFactory extends Factory public function definition() { return [ - 'name' => $this->faker->domainWord, + 'name' => $this->faker->domainWord(), 'desc' => $this->faker->text(255), 'type' =>'static', ]; diff --git a/database/factories/Ipv4AddressFactory.php b/database/factories/Ipv4AddressFactory.php index 1c0545f79e..13da621b2f 100644 --- a/database/factories/Ipv4AddressFactory.php +++ b/database/factories/Ipv4AddressFactory.php @@ -26,7 +26,7 @@ class Ipv4AddressFactory extends Factory public function definition() { $prefix = $this->faker->numberBetween(0, 32); - $ip = new IPv4($this->faker->ipv4 . '/' . $prefix); + $ip = new IPv4($this->faker->ipv4() . '/' . $prefix); return [ 'ipv4_address' => $ip->uncompressed(), diff --git a/database/factories/Ipv4NetworkFactory.php b/database/factories/Ipv4NetworkFactory.php index f309558aeb..922920efce 100644 --- a/database/factories/Ipv4NetworkFactory.php +++ b/database/factories/Ipv4NetworkFactory.php @@ -23,7 +23,7 @@ class Ipv4NetworkFactory extends Factory public function definition() { return [ - 'ipv4_network' => $this->faker->ipv4 . '/' . $this->faker->numberBetween(0, 32), + 'ipv4_network' => $this->faker->ipv4() . '/' . $this->faker->numberBetween(0, 32), ]; } } diff --git a/database/factories/LocationFactory.php b/database/factories/LocationFactory.php index 616eae4690..1f9ab29ba9 100644 --- a/database/factories/LocationFactory.php +++ b/database/factories/LocationFactory.php @@ -25,7 +25,7 @@ class LocationFactory extends Factory return [ 'location' => $this->faker->randomElement([ $this->faker->sentence($this->faker->numberBetween(1, 10)), - str_replace("\n", ' ', $this->faker->address), + str_replace("\n", ' ', $this->faker->address()), ]), ]; } @@ -39,8 +39,8 @@ class LocationFactory extends Factory { return $this->state(function (array $attributes) { return [ - 'lat' => $this->faker->latitude, - 'lng' => $this->faker->longitude, + 'lat' => $this->faker->latitude(), + 'lng' => $this->faker->longitude(), ]; }); } diff --git a/database/factories/OspfNbrFactory.php b/database/factories/OspfNbrFactory.php index d054765b9c..6bbc33c971 100644 --- a/database/factories/OspfNbrFactory.php +++ b/database/factories/OspfNbrFactory.php @@ -24,9 +24,9 @@ class OspfNbrFactory extends Factory { return [ 'id' => $this->faker->randomDigit(), - 'ospfNbrIpAddr' => $this->faker->ipv4, + 'ospfNbrIpAddr' => $this->faker->ipv4(), 'ospfNbrAddressLessIndex' => $this->faker->randomDigit(), - 'ospfNbrRtrId' => $this->faker->ipv4, + 'ospfNbrRtrId' => $this->faker->ipv4(), 'ospfNbrOptions' => 0, 'ospfNbrPriority' => 1, 'ospfNbrEvents' => $this->faker->randomDigit(), diff --git a/database/factories/OspfPortFactory.php b/database/factories/OspfPortFactory.php index 1cb1ff7582..3412464365 100644 --- a/database/factories/OspfPortFactory.php +++ b/database/factories/OspfPortFactory.php @@ -25,7 +25,7 @@ class OspfPortFactory extends Factory return [ 'id' => $this->faker->randomDigit(), 'ospf_port_id' => $this->faker->randomDigit(), - 'ospfIfIpAddress' => $this->faker->ipv4, + 'ospfIfIpAddress' => $this->faker->ipv4(), 'ospfAddressLessIf' => $this->faker->randomDigit(), 'ospfIfAreaId' => '0.0.0.0', ]; diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php index 061f2774ea..3d4fc8b18b 100644 --- a/database/factories/UserFactory.php +++ b/database/factories/UserFactory.php @@ -24,9 +24,9 @@ class UserFactory extends Factory { return [ 'auth_type' => 'mysql', - 'username' => $this->faker->unique()->userName, - 'realname' => $this->faker->name, - 'email' => $this->faker->safeEmail, + 'username' => $this->faker->unique()->userName(), + 'realname' => $this->faker->name(), + 'email' => $this->faker->safeEmail(), 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 'level' => 1, ]; diff --git a/database/factories/VminfoFactory.php b/database/factories/VminfoFactory.php index 7655d9f1a6..bbdcbace89 100644 --- a/database/factories/VminfoFactory.php +++ b/database/factories/VminfoFactory.php @@ -26,7 +26,7 @@ class VminfoFactory extends Factory return [ 'vm_type' => $this->faker->text(16), 'vmwVmVMID' => $this->faker->randomDigit(), - 'vmwVmDisplayName' => $this->faker->domainWord . '.' . $this->faker->domainName, + 'vmwVmDisplayName' => $this->faker->domainWord() . '.' . $this->faker->domainName(), 'vmwVmGuestOS' => $this->faker->text(128), 'vmwVmMemSize' => $this->faker->randomDigit(), 'vmwVmCpus' => $this->faker->randomDigit(),