Installation
Requirements
- PHP 8.3 or higher
- Laravel 12 or higher
Install via Composer
For local use, Truss is a development and inspection tool, so install it as a dev dependency:
composer require albertoarena/laravel-truss --devThe service provider is auto-discovered by Laravel. There is nothing to publish to get started.
Publish the config (optional)
To customise Truss, publish its configuration file to config/truss.php:
php artisan vendor:publish --tag=truss-configEvery option is documented inline and has a sensible default. See the Configuration reference.
That is it
By default Truss is enabled in the local environment only. Start your app and open:
/trussYou should see your schema as an ER diagram. Head to the Quick start for a tour of the interface, or Authorization to run it safely in a non-local environment.