Files
vuefilemanager/database/factories/TeamFolderInvitationFactory.php
Čarodej 19cc01131b - gate implementation
- protected shared view fix
2021-09-24 10:52:19 +02:00

33 lines
845 B
PHP

<?php
namespace Database\Factories;
use Domain\Teams\Models\TeamFolderInvitation;
use Illuminate\Database\Eloquent\Factories\Factory;
class TeamFolderInvitationFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = TeamFolderInvitation::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'id' => $this->faker->uuid,
'parent_id' => $this->faker->uuid,
'email' => $this->faker->email,
'permission' => $this->faker->randomElement(['can-edit', 'can-view', 'can-view-and-download']),
'status' => $this->faker->randomElement(['pending', 'accepted', 'rejected']),
];
}
}