Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add upgrade guide #387

Merged
merged 2 commits into from Jul 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions UPGRADE.md
@@ -0,0 +1,22 @@
# Upgrade Guide

## Upgrading To 3.0 From 2.x

### Minimum Versions

The following dependency versions have been updated:

- The minimum PHP version is now v8.0.2
- The minimum Laravel version is now v9.21

### New `expired_at` Column

Sanctum now supports expiring tokens. To support this feature, a new `expired_at` column must be added to your application's `personal_access_tokens` table. To add the column to your table, create a migration with the following schema change:

```php
Schema::table('personal_access_tokens', function (Blueprint $table) {
$table->timestamp('expires_at')->nullable()->after('last_used_at');
});
```

Running this migration will require you to [install the `doctrine/dbal` package](https://laravel.com/docs/migrations#renaming-columns).