• Stars
    star
    772
  • Rank 58,858 (Top 2 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 5 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A toolbar for Laravel Telescope, based on the Symfony Web Profiler.

Laravel Telescope Toolbar

Unit Tests Packagist License Latest Stable Version Total Downloads Fruitcake

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.

image

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:

image

Preview for Exceptions/Mail/Notifications/Log entries with link to details:

image

Counter for Queries (and Cache etc):

image

Catch debug()/Toolbar::dump() calls and show them directly in the Toolbar instead of the page:

image

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 - Copyright (c) 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 - Copyright (c) Taylor Otwell

More Repositories

1

laravel-cors

Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application
PHP
6,258
star
2

php-cors

CORS (Cross-Origin Resource Sharing) for your Symfony/Laravel requests
PHP
141
star
3

laravel-performance-monitor

Laravel Performance Monitor for Incoming Requests
PHP
33
star
4

magerun-modman

Magerun Modman command
PHP
27
star
5

magento2-custom-image-url

Magento2 Custom Image URLS for the catalog (like Imgproxy)
PHP
22
star
6

php-inbound-mail

PHP Inhound Mail parser for different clients (Sendgrid, Gmail, Postmark etc)
PHP
20
star
7

php-recaptcha

reCAPTCHA library
PHP
16
star
8

magento2-email-advanced-config

Advanced SMTP for Magento2
PHP
16
star
9

php-decimal

PHP
14
star
10

magento2-image-optimizer

Image Optimizer for Magento2
PHP
9
star
11

magento2-b2b-essentials

Magento2 B2B Essentials
PHP
7
star
12

laravel-recaptcha

Laravel integration for reCAPTCHA Library
PHP
7
star
13

omnipay-sisow

Sisow gateway for Omnipay
PHP
6
star
14

laravel-apn-notification-channel

Laravel APN (Apple Push) channel for Notifications
PHP
6
star
15

magento2-alwaysloginascustomer

Magento2 - Always allow Login as Customer
PHP
5
star
16

php-google-cloudprint

PHP
5
star
17

laravel-gcm-notification-channel

Google Android GCM Notification Channel for Laravel
PHP
4
star
18

php-aws-iot-manager

PHP
4
star
19

omnipay-pesapal

Omnipay Pesapal gateway
PHP
2
star
20

php-knvb-dataservice-api

KNVB Dataservice API Wrapper
PHP
2
star
21

magento2-essentials

Magento2 Essentials
1
star
22

magento2-dev-essentials

Magento2 dev essentials
PHP
1
star
23

omnipay-magnius

Omnipay gateway for Magnius
PHP
1
star
24

php-honeywell-client

Honeywell client for honeywell T-type Thermostats
PHP
1
star