mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
32 lines
566 B
PHP
32 lines
566 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
namespace Database\Factories;
|
||
|
|
||
|
|
||
|
use App\Models\PurchaseOrderInvitation;
|
||
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
||
|
use Illuminate\Support\Str;
|
||
|
|
||
|
class PurchaseOrderInvitationFactory extends Factory
|
||
|
{
|
||
|
/**
|
||
|
* The name of the factory's corresponding model.
|
||
|
*
|
||
|
* @var string
|
||
|
*/
|
||
|
protected $model = PurchaseOrderInvitation::class;
|
||
|
|
||
|
/**
|
||
|
* Define the model's default state.
|
||
|
*
|
||
|
* @return array
|
||
|
*/
|
||
|
public function definition()
|
||
|
{
|
||
|
return [
|
||
|
'key' => Str::random(40),
|
||
|
];
|
||
|
}
|
||
|
}
|