migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<?php
namespace Modules\Authentication\Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
class UserFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*/
protected $model = \Modules\Authentication\Models\User::class;
/**
* Define the model's default state.
*/
public function definition(): array
{
return [
'first_name' => $this->faker->name(),
'email' => $this->faker->unique()->safeEmail(),
'password' => Hash::make('12345678'), // default password for testing
'phone' => $this->faker->unique()->phoneNumber(),
'avatar' => asset('uploads/user/admin-avatar.png'),
'role_id' => 1, // default role
'email_verified_at' => now(),
'status' => 1, // default status
'qr_code' => (string) mt_rand(10000000, 99999999).mt_rand(10000000, 99999999),
'user_type' => 'Admin', // default user type
'facebook' => $this->faker->url(),
'twitter' => $this->faker->url(),
'linkedin' => $this->faker->url(),
'google_plus' => $this->faker->url(),
'remember_token' => Str::random(10),
'platform' => 'WEB',
'address' => 'Dhaka, Bangladesh',
'created_by' => 1,
'created_at' => now(),
'updated_at' => now(),
'deleted_at' => null, // no soft delete by default
];
}
}