feat: factory creation and initial theme work

This commit is contained in:
2023-07-29 01:05:43 -05:00
parent 1833524f7f
commit 5c218918ee
213 changed files with 46351 additions and 1923 deletions

View File

@@ -4,6 +4,7 @@ namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Hash;
class UserFactory extends Factory
{
@@ -14,11 +15,12 @@ class UserFactory extends Factory
*/
public function definition()
{
$password = Hash::make(Str::random(rand(8, 16)));
return [
'name' => $this->faker->name(),
'email' => $this->faker->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
'password' => $password,
'remember_token' => Str::random(10),
];
}