Skip to content

Checks Reference Guide ​

This document lists all active checks in the laravel-integrity pipeline.

KeyNameSeverityFixableExpensiveDescription
strict-typesStrict Types DeclarationLowYesNoEnforces declare(strict_types=1); is present as the first statement in PHP files.
root-facadeRoot Namespace FacadesLowYesNoReplaces root facade references (e.g. \DB::) with clean imports.
direct-envDirect Env CallsMediumNoNoProhibits direct calls to env() outside config files.
unused-importUnused Import StatementsLowYesNoIdentifies and removes unused use declarations.
missing-named-routeMissing Named RoutesHighNoNoVerifies that calls to route('name') map to valid routes.
missing-view-pathMissing View PathsHighNoNoVerifies that calls to view('name'), @include('name'), and @extends('name') exist on disk.
orphaned-componentOrphaned ComponentsMediumNoNoVerifies that custom Blade tags (e.g. <x-alert />) resolve to components or views.
livewire-manifestLivewire Manifest CheckCriticalNoNoVerifies that <livewire:name /> and @livewire('name') map to registered Livewire aliases.
wire-action-methodLivewire Action MethodsCriticalNoNoAsserts that methods bound via wire:click="..." exist and are public.
wire-visibilityLivewire Property VisibilityHighNoNoAsserts that fields bound via wire:model="..." exist and are public on the component class.
missing-env-variableMissing Env VariablesMediumNoNoScans for env("KEY") calls and ensures they exist in .env.example.
route-serializationRoute SerializationHighNoYesFlags Closure routes that prevent route caching (route:cache).
dangling-controllerDangling Controller ActionsCriticalNoYesAsserts that routes map to valid controllers and public methods.
blade-compileBlade Compile CheckHighNoYesSandboxes Blade views to catch syntax and compilation errors.
blade-component-strict-typeBlade Component Strict TypesMediumNoYesStatically verifies that required @props are passed to Blade components.
seeder-existsSeeder Class ExistenceHighNoNoVerifies that classes invoked in $this->call([...]) inside database seeders exist.
pending-migrationPending MigrationsHighNoYesFlags migrations that exist on disk but have not been executed.
migration-syntaxMigration Syntax CheckCriticalNoNoParses migrations to assert they compile cleanly.
model-table-mappingModel Table MappingHighNoYesVerifies that Eloquent models correspond to existing database tables.
database-indexDatabase Index HygieneMediumNoYesDetects missing indexes on foreign key columns (e.g., _id) in the database schema.
dead-providerDead Service ProvidersCriticalNoNoFlags service provider configurations mapping to missing classes.
policy-mappingPolicy Method MappingMediumNoYesVerifies that authorization abilities map to public policy methods.
event-listener-mappingEvent Listener MappingsHighNoYesAsserts that event listener callbacks exist and are public.
n-plus-oneStatic N+1 Query DetectionHighNoYesDetects Eloquent queries or lazy-loaded property accesses inside loops (N+1 vulnerability).
unreferenced-private-methodDead Code Elimination (DCE)LowNoNoDetects private methods that are never called locally within the same class ($this->method()).
model-mass-assignmentModel Mass Assignment SecurityHighNoNoDetects models with $guarded = [] that are high risk for mass assignment vulnerabilities.