Skip to content

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:

Terminal window
composer require albertoarena/laravel-truss --dev

The 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:

Terminal window
php artisan vendor:publish --tag=truss-config

Every 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:

/truss

You 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.