text4u
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2019_12_14_000001_create_personal_access_tokens_table.php 856B

123456789101112131415161718192021222324252627282930313233
  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('personal_access_tokens', function (Blueprint $table) {
  13. $table->id();
  14. $table->morphs('tokenable');
  15. $table->string('name');
  16. $table->string('token', 64)->unique();
  17. $table->text('abilities')->nullable();
  18. $table->timestamp('last_used_at')->nullable();
  19. $table->timestamp('expires_at')->nullable();
  20. $table->timestamps();
  21. });
  22. }
  23. /**
  24. * Reverse the migrations.
  25. */
  26. public function down(): void
  27. {
  28. Schema::dropIfExists('personal_access_tokens');
  29. }
  30. };