PHPackages                             nckrtl/laravel-toolbar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. nckrtl/laravel-toolbar

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

nckrtl/laravel-toolbar
======================

A customizable toolbar that sits nicely in the bottom of your screen, showing useful information for development.

v0.1.20(1mo ago)01.5k↓50%[5 PRs](https://github.com/nckrtl/laravel-toolbar/pulls)MITPHPPHP ^8.4CI passing

Since Jan 8Pushed 1mo agoCompare

[ Source](https://github.com/nckrtl/laravel-toolbar)[ Packagist](https://packagist.org/packages/nckrtl/laravel-toolbar)[ Docs](https://github.com/nckrtl/laravel-toolbar)[ GitHub Sponsors](https://github.com/nckrtl)[ RSS](/packages/nckrtl-laravel-toolbar/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (30)Versions (28)Used By (0)

Laravel Toolbar
===============

[](#laravel-toolbar)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b006f244d8e8ad80c76fa06fc7c038551ccb9fa6c9ae2003c51d8ac17f7e18cd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e636b72746c2f6c61726176656c2d746f6f6c6261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nckrtl/laravel-toolbar)[![GitHub Tests Action Status](https://camo.githubusercontent.com/7ba746824a1a3e8d453e6227abac7f5bcb0672cd478eca7423a6a3ccf0eda8a7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e636b72746c2f6c61726176656c2d746f6f6c6261722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/nckrtl/laravel-toolbar/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/44772480ecefdf62ca2e93f5baf2559bb1d94b3c533060376c3dc20072ad5f55/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e636b72746c2f6c61726176656c2d746f6f6c6261722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/nckrtl/laravel-toolbar/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/fa36e1c696834b8d980e4ae7d0ef0358199b2f71ea853408083c3a4775b5354b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e636b72746c2f6c61726176656c2d746f6f6c6261722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nckrtl/laravel-toolbar)

A powerful development toolbar for Laravel that sits at the bottom of your screen, providing real-time insights into your application's performance, database queries, request lifecycle, and more. Built with Vue.js and works standalone with optional Laravel Telescope integration for enhanced data collection.

Features
--------

[](#features)

- **Request Profiling**: Detailed breakdown of your request lifecycle with timing for each stage (bootstrapping, service providers, routing, middleware, controller, view rendering)
- **Database Query Monitoring**: Track all queries with timing, detect duplicates and slow queries, see SQL with bindings
- **Request Information**: View HTTP method, URI, IP address, controller action, and middleware stack
- **Laravel Environment**: Display Laravel version, environment, timezone, locale, and debug mode
- **PHP Information**: PHP version and configuration details
- **Eloquent Models**: Track model operations via Telescope integration
- **Vue.js Integration**: Monitor Vue.js related data in your application
- **Response Details**: Inspect response data and headers
- **Inertia.js Support**: Works seamlessly with Inertia.js requests via custom headers
- **AI Integration**: MCP (Model Context Protocol) server for AI assistants to access request data
- **Customizable Collectors**: Enable/disable specific data collectors based on your needs
- **Visual Timeline**: Color-coded request stage visualization showing where time is spent
- **Debug Mode**: Additional metadata and timing information for development

Requirements
------------

[](#requirements)

- PHP 8.4+
- Laravel 11.x or 12.x

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require nckrtl/laravel-toolbar
```

The package will automatically register itself via Laravel's auto-discovery.

### Optional Dependencies

[](#optional-dependencies)

While Laravel Toolbar works perfectly standalone, it includes optional integration with Laravel Telescope for enhanced data collection:

```
composer require laravel/telescope
```

**When Telescope is installed:**

- The `ModelsCollector` can track Eloquent model operations
- Additional request data can be sourced from Telescope entries

**Note:** All other collectors work independently without Telescope. The toolbar will automatically detect if Telescope is installed and enable enhanced features accordingly.

Configuration
-------------

[](#configuration)

### Basic Setup

[](#basic-setup)

By default, the toolbar will work out of the box with sensible defaults. All collectors are enabled and will start gathering data immediately.

### Advanced Customization

[](#advanced-customization)

To customize the toolbar configuration, run the customize command:

```
php artisan toolbar:customize
```

This will:

1. Publish a `ToolbarConfigProvider` to `app/Providers/ToolbarConfigProvider.php`
2. Register the provider in your application

You can then customize the toolbar by editing the provider:

```
