diff --git a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php new file mode 100644 index 00000000..e828ad81 --- /dev/null +++ b/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php @@ -0,0 +1,33 @@ +id(); + $table->morphs('tokenable'); + $table->string('name'); + $table->string('token', 64)->unique(); + $table->text('abilities')->nullable(); + $table->timestamp('last_used_at')->nullable(); + $table->timestamp('expires_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('personal_access_tokens'); + } +}; diff --git a/routes/web.php b/routes/web.php index 623d6cf1..7af8f34b 100644 --- a/routes/web.php +++ b/routes/web.php @@ -26,4 +26,4 @@ Route::get('/team-invitations/{invitation}', [TeamInvitationController::class, 'accept']) ->middleware(['signed', 'verified', 'auth', AuthenticateSession::class]) ->name('team-invitations.accept'); -require __DIR__.'/socialstream.php'; \ No newline at end of file +require __DIR__.'/socialstream.php';require __DIR__.'/socialstream.php'; \ No newline at end of file