This commit is contained in:
Adrian Hopek
2022-01-12 15:28:48 +01:00
parent 2abd83526d
commit 197e7da9cc
22 changed files with 994 additions and 1895 deletions

View File

@@ -5,7 +5,6 @@ declare(strict_types=1);
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
class UserFactory extends Factory
@@ -15,8 +14,6 @@ class UserFactory extends Factory
return [
"name" => $this->faker->name(),
"email" => $this->faker->unique()->safeEmail(),
"email_verified_at" => now(),
"password" => Hash::make("secret123"),
"remember_token" => Str::random(10),
];
}

View File

@@ -12,9 +12,9 @@ return new class() extends Migration {
Schema::create("users", function (Blueprint $table): void {
$table->id();
$table->string("name");
$table->string("avatar")->nullable();
$table->string("email")->unique();
$table->timestamp("email_verified_at")->nullable();
$table->string("password");
$table->string("google_id")->nullable();
$table->rememberToken();
$table->timestamps();
});