---
title: "laravel/sanctum v4.0.0 Breaking Changes on Packagist"
description: "What each laravel/sanctum release removed, renamed or changed: 8 breaking changes in 2 versions on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/laravel/sanctum
last_updated: 2026-12-04
---

# 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

Latest version `v4.5.0`, released November 17, 2026. MIT license. [Source repository](https://github.com/laravel/sanctum)

Packages on Packagist run on PHP. [PHP end of life dates](https://since.dev/calendar/php.md).

- From [v3.0.0](#v-v3-0-0) to [v4.0.0](#v-v4-0-0): 5 breaking changes in 1 version.

## laravel/sanctum v4.0.0 breaking changes

laravel/sanctum v4.0.0, released March 12, 2024: 5 breaking changes.

- **Removed** `Laravel\Sanctum\Sanctum::$runsMigrations`  

Laravel\\Sanctum\\Sanctum::$runsMigrations was removed in laravel/sanctum v4.0.0 [packagist.org](https://packagist.org/packages/laravel/sanctum#v4.0.0)
- **Removed** `Laravel\Sanctum\Sanctum::ignoreMigrations`  

Laravel\\Sanctum\\Sanctum::ignoreMigrations was removed in laravel/sanctum v4.0.0 [packagist.org](https://packagist.org/packages/laravel/sanctum#v4.0.0)
- **Removed** `Laravel\Sanctum\Sanctum::shouldRunMigrations`  

Laravel\\Sanctum\\Sanctum::shouldRunMigrations was removed in laravel/sanctum v4.0.0 [packagist.org](https://packagist.org/packages/laravel/sanctum#v4.0.0)
- **Removed** `Laravel\Sanctum\SanctumServiceProvider::registerMigrations`  

Laravel\\Sanctum\\SanctumServiceProvider::registerMigrations was removed in laravel/sanctum v4.0.0 [packagist.org](https://packagist.org/packages/laravel/sanctum#v4.0.0)
- **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](https://packagist.org/packages/laravel/sanctum#v4.0.0)

## laravel/sanctum v3.0.0 breaking changes

laravel/sanctum v3.0.0, released July 28, 2022: 3 breaking changes.

- **Removed**  

Older Laravel and PHP versions are no longer supported, so apps on them must upgrade before using this release. [github.com](https://github.com/laravel/sanctum/releases/tag/v3.0.0)
- **Behavior changed**  

Newly generated tokens are shorter than before, so code that depends on the token format or length may need updating. [github.com](https://github.com/laravel/sanctum/releases/tag/v3.0.0)
- **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](https://packagist.org/packages/laravel/sanctum#v3.0.0)

## Related packages

- [laravel/framework](https://since.dev/packages/packagist/laravel/framework.md)
- [laravel/laravel](https://since.dev/packages/packagist/laravel/laravel.md)
- [laravel/lumen-framework](https://since.dev/packages/packagist/laravel/lumen-framework.md)
- [laravel/octane](https://since.dev/packages/packagist/laravel/octane.md)
- [laravel/prompts](https://since.dev/packages/packagist/laravel/prompts.md)
- [laravel/tinker](https://since.dev/packages/packagist/laravel/tinker.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
