mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-29 20:51:09 -04:00 
			
		
		
		
	v5.0.0 update
This commit is contained in:
		| @ -3,6 +3,7 @@ | ||||
| namespace Database\Factories; | ||||
|  | ||||
| use Crater\Models\Company; | ||||
| use Crater\Models\User; | ||||
| use Illuminate\Database\Eloquent\Factories\Factory; | ||||
|  | ||||
| class CompanyFactory extends Factory | ||||
| @ -22,8 +23,9 @@ class CompanyFactory extends Factory | ||||
|     public function definition() | ||||
|     { | ||||
|         return [ | ||||
|             'unique_hash' => str_random(60), | ||||
|             'name' => $this->faker->name, | ||||
|             'unique_hash' => str_random(20), | ||||
|             'name' => $this->faker->name(), | ||||
|             'owner_id' => User::where('role', 'super admin')->first()->id | ||||
|         ]; | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user