fruitcake / laravel-telescope-toolbar
Toolbar for Laravel Telescope based on Symfony Web Profiler
Installs: 1 039 614
Dependents: 2
Suggesters: 0
Security: 0
Stars: 774
Watchers: 7
Forks: 38
Open Issues: 19
Requires
- php: ^8
- ext-json: *
- laravel/framework: ^9|^10|^11.0
- laravel/telescope: ^4|^5
Requires (Dev)
- orchestra/testbench-dusk: ^6|^7|^8
- dev-master / 1.4.x-dev
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v1.0.0-beta.2
- v1.0.0-beta.1
- v1.0.0-alpha.3
- v1.0.0-alpha.2
- v1.0.0-alpha.1
- dev-feat-symfony7
- dev-feat-laravel9
- dev-update-l8
- dev-fix-middleware
- dev-feat-showmore
- dev-feat-session
- dev-feat-layout
- dev-feat-assets
This package is auto-updated.
Last update: 2024-11-02 10:01:02 UTC
README
Extends Laravel Telescope to show a powerful Toolbar
See https://github.com/laravel/telescope
Install
First install Telescope and check it works (see https://laravel.com/docs/master/telescope)
composer require laravel/telescope
php artisan telescope:install
# Telescope 5.0 no longer automatically loads migrations from its own migrations directory. Instead, you should run the following command to publish Telescope's migrations to your application:
php artisan vendor:publish --tag=telescope-migrations
php artisan migrate
Then just install the package with Composer and it will register automatically:
composer require fruitcake/laravel-telescope-toolbar --dev
The Toolbar will show by default when Telescope is enabled and APP_DEBUG is true.
It can also enabled or disabled using the TELESCOPE_TOOLBAR_ENABLED
environment variable.
Note: The Toolbar is intended for Development environments, not for production.
Publishing the config
Run this command to publish the config for this package:
php artisan vendor:publish --provider="Fruitcake\\TelescopeToolbar\\ToolbarServiceProvider"
Current Features
- Inject Toolbar for quick info
- Show redirects and Ajax Requests
- Link to related Telescope Entry page
- Show up to 5 entries for collectors, link to details
- Supported Collectors:
- Request info / timing
- User auth
- Database queries
- Laravel/php version
- Cache hit/miss/set
- Logger entries
- Exceptions
- Mails
- Notifications
- Jobs
- Dumps (when watching the Dump screen, or using
debug(...$args)
) - Number of entries for: Commands/Models/Events
Screenshots
Ajax/ Redirects stack:
Preview for Exceptions/Mail/Notifications/Log entries with link to details:
Counter for Queries (and Cache etc):
Catch debug()
/Toolbar::dump()
calls and show them directly in the Toolbar instead of the page:
Running the Test Suite
- Make sure ChromeDriver is up to date:
vendor/bin/dusk-updater detect --auto-update
- Create the Sqlite database:
vendor/orchestra/testbench-dusk/create-sqlite-db
- Run the tests:
composer test
License and attribution
Laravel Telescope Toolbar is open-sourced software licensed under the MIT license.
Based on Symfony Web Profiler and Laravel Telescope
The styling, javascript, some icons and html of the Toolbar and (part of) its Collectors are based on the Symfony Web Profiler. JS/CSS is mostly copied and converted to Blade syntax. Collectors are modified to show Laravel data. See https://github.com/symfony/web-profiler-bundle - © 2004-2019 Fabien Potencier
Data from collectors is provided by Laravel Telescope. Some styling/icons/logic are alse re-used. See https://github.com/laravel/telescope - © Taylor Otwell