Files
UNIT3D-Community-Edition/database/factories/UserPrivacyFactory.php
HDVinnie 69fc0f7f40 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-07-13 00:38:30 +00:00

71 lines
3.1 KiB
PHP

<?php
/* @var \Illuminate\Database\Eloquent\Factory $factory */
namespace Database\Factories;
use App\Models\User;
use App\Models\UserPrivacy;
use Illuminate\Database\Eloquent\Factories\Factory;
class UserPrivacyFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = UserPrivacy::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'user_id' => fn () => User::factory()->create()->id,
'show_achievement' => $this->faker->boolean,
'show_bon' => $this->faker->boolean,
'show_comment' => $this->faker->boolean,
'show_download' => $this->faker->boolean,
'show_follower' => $this->faker->boolean,
'show_online' => $this->faker->boolean,
'show_peer' => $this->faker->boolean,
'show_post' => $this->faker->boolean,
'show_profile' => $this->faker->boolean,
'show_profile_about' => $this->faker->boolean,
'show_profile_achievement' => $this->faker->boolean,
'show_profile_badge' => $this->faker->boolean,
'show_profile_follower' => $this->faker->boolean,
'show_profile_title' => $this->faker->boolean,
'show_profile_bon_extra' => $this->faker->boolean,
'show_profile_comment_extra' => $this->faker->boolean,
'show_profile_forum_extra' => $this->faker->boolean,
'show_profile_request_extra' => $this->faker->boolean,
'show_profile_torrent_count' => $this->faker->boolean,
'show_profile_torrent_extra' => $this->faker->boolean,
'show_profile_torrent_ratio' => $this->faker->boolean,
'show_profile_torrent_seed' => $this->faker->boolean,
'show_profile_warning' => $this->faker->boolean,
'show_rank' => $this->faker->boolean,
'show_requested' => $this->faker->boolean,
'show_topic' => $this->faker->boolean,
'show_upload' => $this->faker->boolean,
'show_wishlist' => $this->faker->boolean,
'json_profile_groups' => $this->faker->word,
'json_torrent_groups' => $this->faker->word,
'json_forum_groups' => $this->faker->word,
'json_bon_groups' => $this->faker->word,
'json_comment_groups' => $this->faker->word,
'json_wishlist_groups' => $this->faker->word,
'json_follower_groups' => $this->faker->word,
'json_achievement_groups' => $this->faker->word,
'json_rank_groups' => $this->faker->word,
'json_request_groups' => $this->faker->word,
'json_other_groups' => $this->faker->word,
];
}
}