| Server IP : 14.225.204.176 / Your IP : 216.73.216.252 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/php/home-services/database/factories/ |
Upload File : |
<?php
/*
* File name: EProviderFactory.php
* Last modified: 2021.08.04 at 18:10:26
* Author: SmarterVision - https://codecanyon.net/user/smartervision
* Copyright (c) 2021
*/
use App\Models\EProvider;
use Faker\Generator as Faker;
use Illuminate\Database\Eloquent\Factory;
/** @var Factory $factory */
$factory->define(EProvider::class, function (Faker $faker) {
return [
'name' => $faker->randomElement(['Gardner Construction', 'Concrete', 'Masonry', 'House', 'Care Services', 'Security', 'Dentists', 'Epoxy Coating', 'Glass', 'Painting', 'Roofing', 'Sewer Cleaning', 'Architect']) . " " . $faker->company,
'description' => $faker->text,
'e_provider_type_id' => $faker->numberBetween(2, 3),
'phone_number' => $faker->phoneNumber,
'mobile_number' => $faker->phoneNumber,
'availability_range' => $faker->randomFloat(2, 6000, 15000),
'available' => $faker->boolean(95),
'featured' => $faker->boolean(40),
'accepted' => $faker->boolean(95),
];
});