Download the PHP package onelearningcommunity/laravel-model-explorer without Composer
On this page you can find all versions of the php package onelearningcommunity/laravel-model-explorer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download onelearningcommunity/laravel-model-explorer
More information about onelearningcommunity/laravel-model-explorer
Files in onelearningcommunity/laravel-model-explorer
Package laravel-model-explorer
Short Description Developer tools to explore your Laravel models.
License MIT
Homepage https://github.com/one-learning-community/laravel-model-explorer
Informations about the package laravel-model-explorer
Laravel Model Explorer
A developer tool for Laravel that gives you a browsable UI to explore your Eloquent models — their attributes, casts, relations, scopes, traits, and live data — without reading code.
Zero setup beyond Composer install. No vendor:publish, no frontend tooling required in your application.
Requirements
- PHP 8.4+
- Laravel 11, 12, or 13
Features
- Model list — searchable grid of all discovered Eloquent models
- Model detail — DB columns, casts, fillable/hidden/guarded, relations with type badges and foreign keys, scopes with source snippets, traits, and accessor snippets
- Record lookup — find any record by primary key or unique field; browse raw attributes, lazy-loaded accessor values, and expandable relations with drill-down navigation and breadcrumb trail
- Relationship graph — interactive force-directed SVG graph of all model relationships
Installation
The package auto-registers via Laravel's package discovery — no additional setup required.
Usage
Visit /_model-explorer in your application. In local environments, access is granted by default.
Authorization
Access is controlled by the viewModelExplorer gate, which defaults to allowing access in local environments only. Override it in your AuthServiceProvider to control access elsewhere:
To disable the explorer entirely regardless of the gate, set the environment variable:
Configuration
Publish the config file to customise behaviour:
Security
Laravel Model Explorer is intended for development use. The viewModelExplorer gate should prevent access in production environments.
All record reads are wrapped in a rolled-back transaction with Model::withoutEvents() to prevent accidental writes from observers or model events. Note that non-database side effects from accessor methods (HTTP calls, cache writes, queue pushes) are not prevented.
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-model-explorer with dependencies
illuminate/contracts Version ^11.0||^12.0||^13.0
spatie/laravel-model-info Version ^2.0
spatie/laravel-package-tools Version ^1.16