mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-30 20:43:52 -04:00 
			
		
		
		
	* Working on importing company gateways * Fix for companyuser settings object * Migrate client_gateway_tokens * Working on Notificaitons * Working on notifications * Failsafe for user-company * unlink files * Set DB for jobs * Always have a fallback for company_id * Fixes for user model * Formatting for MultiDB * Working on Company Ledger Tests * Fixes for contact request * Set Invitations as a default include for invoices
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| use App\DataMapper\ClientSettings;
 | |
| use App\DataMapper\CompanySettings;
 | |
| use Faker\Generator as Faker;
 | |
| 
 | |
| $factory->define(App\Models\Client::class, function (Faker $faker) {
 | |
|     return [
 | |
|         'name' => $faker->name(),
 | |
|         'website' => $faker->url,
 | |
|         'private_notes' => $faker->text(200),
 | |
|         'balance' => 0,
 | |
|         'paid_to_date' => 0,
 | |
|         'vat_number' => $faker->text(25),
 | |
|         'id_number' => $faker->text(20),
 | |
|         'custom_value1' => $faker->text(20),
 | |
|         'custom_value2' => $faker->text(20),
 | |
|         'custom_value3' => $faker->text(20),
 | |
|         'custom_value4' => $faker->text(20),
 | |
|         'address1' => $faker->buildingNumber,
 | |
|         'address2' => $faker->streetAddress,
 | |
|         'city' => $faker->city,
 | |
|         'state' => $faker->state,
 | |
|         'postal_code' => $faker->postcode,
 | |
|         'country_id' => 4,
 | |
|         'shipping_address1' => $faker->buildingNumber,
 | |
|         'shipping_address2' => $faker->streetAddress,
 | |
|         'shipping_city' => $faker->city,
 | |
|         'shipping_state' => $faker->state,
 | |
|         'shipping_postal_code' => $faker->postcode,
 | |
|         'shipping_country_id' => 4,
 | |
|         'settings' => ClientSettings::defaults(),
 | |
|         'client_hash' => \Illuminate\Support\Str::random(40),
 | |
|     ];
 | |
| });
 |