@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | */ |
| 11 | 11 | public function up(): void |
| 12 | 12 | { |
| 13 | - Capsule::schema()->create('users', function (Blueprint $table) { |
|
| 13 | + Capsule::schema()->create('users', function(Blueprint $table) { |
|
| 14 | 14 | $table->id(); |
| 15 | 15 | $table->string('name')->unique(); |
| 16 | 16 | $table->string('email')->unique(); |
@@ -22,13 +22,13 @@ discard block |
||
| 22 | 22 | $table->timestamps(); |
| 23 | 23 | }); |
| 24 | 24 | |
| 25 | - Capsule::schema()->create('password_reset_tokens', function (Blueprint $table) { |
|
| 25 | + Capsule::schema()->create('password_reset_tokens', function(Blueprint $table) { |
|
| 26 | 26 | $table->string('email')->primary(); |
| 27 | 27 | $table->string('token'); |
| 28 | 28 | $table->timestamp('created_at')->nullable(); |
| 29 | 29 | }); |
| 30 | 30 | |
| 31 | - Capsule::schema()->create('sessions', function (Blueprint $table) { |
|
| 31 | + Capsule::schema()->create('sessions', function(Blueprint $table) { |
|
| 32 | 32 | $table->string('id')->primary(); |
| 33 | 33 | $table->foreignId('user_id')->nullable()->index(); |
| 34 | 34 | $table->string('ip_address', 45)->nullable(); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | * @return bool |
| 42 | 42 | * @throws DebugBarException |
| 43 | 43 | */ |
| 44 | - public static function connectDb(stdClass|null $db = null): bool |
|
| 44 | + public static function connectDb(stdClass | null $db = null): bool |
|
| 45 | 45 | { |
| 46 | 46 | if (static::$db !== null) { |
| 47 | 47 | return true; |