laravel/sanctum breaking changes
laravel/sanctum v4.0.0 (March 12, 2024) is its newest release with breaking changes, 5 of them. The first: Removed Laravel\Sanctum\Sanctum::$runsMigrations. Every breaking API change we have recorded in laravel/sanctum on Packagist: 8 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v4.5.0, released November 17, 2026. MIT license. Source repository
Packages on Packagist run on PHP. PHP end of life dates.
laravel/sanctum v4.0.0 breaking changes
- Removed
Laravel\Sanctum\Sanctum::$runsMigrations
Laravel\Sanctum\Sanctum::$runsMigrations was removed in laravel/sanctum v4.0.0 packagist.org - Removed
Laravel\Sanctum\Sanctum::ignoreMigrations
Laravel\Sanctum\Sanctum::ignoreMigrations was removed in laravel/sanctum v4.0.0 packagist.org - Removed
Laravel\Sanctum\Sanctum::shouldRunMigrations
Laravel\Sanctum\Sanctum::shouldRunMigrations was removed in laravel/sanctum v4.0.0 packagist.org - Removed
Laravel\Sanctum\SanctumServiceProvider::registerMigrations
Laravel\Sanctum\SanctumServiceProvider::registerMigrations was removed in laravel/sanctum v4.0.0 packagist.org - Signature changed
Laravel\Sanctum\Contracts\HasApiTokens::createToken
The release changes the createToken() method to match the contract it implements. Check any custom code that overrides or calls it. packagist.org
laravel/sanctum v3.0.0 breaking changes
- Removed
Older Laravel and PHP versions are no longer supported, so apps on them must upgrade before using this release. github.com - Behavior changed
Newly generated tokens are shorter than before, so code that depends on the token format or length may need updating. github.com - Signature changed
Laravel\Sanctum\HasApiTokens::createToken
Was public function createToken(string $name, array $abilities = ['*']); now public function createToken(string $name, array $abilities = ['*'], DateTimeInterface $expiresAt = null). packagist.org
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.