commit | author | age
|
fae1b1
|
1 |
<?php |
F |
2 |
|
|
3 |
use Illuminate\Database\Migrations\Migration; |
|
4 |
use Illuminate\Database\Schema\Blueprint; |
|
5 |
use Illuminate\Support\Facades\Schema; |
|
6 |
|
|
7 |
return new class extends Migration |
|
8 |
{ |
|
9 |
/** |
|
10 |
* Run the migrations. |
|
11 |
*/ |
|
12 |
public function up(): void |
|
13 |
{ |
|
14 |
Schema::create('password_reset_tokens', function (Blueprint $table) { |
|
15 |
$table->string('email')->primary(); |
|
16 |
$table->string('token'); |
|
17 |
$table->timestamp('created_at')->nullable(); |
|
18 |
}); |
|
19 |
} |
|
20 |
|
|
21 |
/** |
|
22 |
* Reverse the migrations. |
|
23 |
*/ |
|
24 |
public function down(): void |
|
25 |
{ |
|
26 |
Schema::dropIfExists('password_reset_tokens'); |
|
27 |
} |
|
28 |
}; |