LaravelContract class abstract final

Laravel 12 wire and storage contracts that Daravel locks (BLUEPRINT_V2 §11.2). Each value cites the Laravel / Sanctum source it was taken from (laravel/framework 12.x, laravel/sanctum 4.x, laravel/laravel 12.x), so a change in either framework is traceable. Changing a value here is a compatibility decision and needs an ADR.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

jsonDate → RegExp
2026-01-02T03:04:05.000000Z: UTC with microseconds.
final
sanctumPlainTextToken → RegExp
HasApiTokens::createToken → NewAccessToken: {id}|{prefix}{40 random}{crc32b(random)}; the table stores sha256 of everything after the |.
final

Static Methods

apiResource(String name, String parameter) → List<(String, String, String)>
Route::apiResource('photos', ...): method, URI, name.
methodNotAllowed(String method, String path, List<String> allowed) → String
AbstractRouteCollection::requestMethodNotAllowed (405).
modelNotFound(String model, [List<Object?> ids = const []]) → String
ModelNotFoundException::setModel (404 after prepareException).
morphClass(String model) → String
Default morph class of a model (tokenable_type).
routeNotFound(String path) → String
AbstractRouteCollection::handleMatchedRoute (404).
urlWindow(int current, int last, {int onEachSide = 3}) → List<int?>
Page labels of LengthAwarePaginator::linkCollection() between the previous/next links: a port of UrlWindow (null = ...).
validationSummary(List<String> messages) → String
ValidationException::summarize: first message plus (and N more error[s]).

Constants

bcryptOfPassword → const String
bcrypt('password') from Laravel's historic UserFactory ($2y$10$, cost 10).
cursorDirectionKey → const String
Cursor::encode() boolean key.
cursorPaginatorKeys → const List<String>
CursorPaginator::toArray() key order.
invalidData → const String
ValidationException::summarize with no messages.
lengthAwarePaginatorKeys → const List<String>
LengthAwarePaginator::toArray() key order.
nextLabel → const String
postTooLarge → const String
ValidatePostSize message (413).
previousLabel → const String
pagination.previous / pagination.next.
resourceLinksKeys → const List<String>
PaginatedResourceResponse: links keys, and meta = paginator array without data and the four URL keys.
resourceMetaExcluded → const Set<String>
serverError → const String
convertExceptionToArray() for non-HTTP exceptions (500).
sharedIndexes → const Map<String, List<String>>
Indexed columns (single-column indexes or unique constraints) Laravel creates on the shared tables.
sharedMigrationNames → const Map<String, String>
Migration names Laravel records in migrations.migration.
sharedTables → const Map<String, Map<String, bool>>
Columns (in order) and nullability of the tables Laravel and Daravel share. true = nullable.
simplePaginatorKeys → const List<String>
Paginator::toArray() key order (simplePaginate).
throttleHeaders → const List<String>
ThrottleRequests::getHeaders on a 429.
tooManyAttempts → const String
ThrottleRequests::buildException message (429).
unauthenticated → const String
AuthenticationException default message (401).
unauthorized → const String
AuthorizationException / AccessDeniedHttpException message (403).