mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
team members limitation frontend/backend
This commit is contained in:
@@ -26,7 +26,7 @@ class TeamFolderInvitationFactory extends Factory
|
||||
'parent_id' => $this->faker->uuid,
|
||||
'inviter_id' => $this->faker->uuid,
|
||||
'email' => $this->faker->email,
|
||||
'permission' => $this->faker->randomElement(['can-edit', 'can-view', 'can-view-and-download']),
|
||||
'permission' => $this->faker->randomElement(['can-edit', 'can-view']),
|
||||
'status' => $this->faker->randomElement(['pending', 'accepted', 'rejected']),
|
||||
];
|
||||
}
|
||||
|
||||
30
database/factories/TeamFolderMemberFactory.php
Normal file
30
database/factories/TeamFolderMemberFactory.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use Domain\Teams\Models\TeamFolderMember;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
class TeamFolderMemberFactory extends Factory
|
||||
{
|
||||
/**
|
||||
* The name of the factory's corresponding model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $model = TeamFolderMember::class;
|
||||
|
||||
/**
|
||||
* Define the model's default state.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function definition()
|
||||
{
|
||||
return [
|
||||
'parent_id' => $this->faker->uuid,
|
||||
'user_id' => $this->faker->uuid,
|
||||
'permission' => $this->faker->randomElement(['can-edit', 'can-view', 'owner']),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user