GithubHelp home page GithubHelp logo

izzeran96 / laravel-telescope-toolbar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fruitcake/laravel-telescope-toolbar

0.0 0.0 0.0 242 KB

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

License: MIT License

PHP 80.35% CSS 19.65%

laravel-telescope-toolbar's Introduction

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

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

laravel-telescope-toolbar's People

Contributors

barryvdh avatar daveismynamecom avatar arjanwestdorp avatar braunson avatar joeriaben avatar bilfeldt avatar binotaliu avatar joowdx avatar cyrildewit avatar guladima avatar gboquizosanchez avatar koenhoeijmakers avatar koozza avatar plegenza avatar rspeekenbrink avatar stefanbauer avatar taliptako avatar theblckbird avatar victorlap avatar zoispag avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.