text4u
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2014_10_12_100000_create_password_reset_tokens_table.php 641B

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