laravel-telescope-toolbar

所属分类:后台框架
开发工具:PHP
文件大小:63KB
下载次数:0
上传日期:2023-02-21 12:48:35
上 传 者sh-1993
说明:  基于Symfony Web Profiler的Laravel Telescope工具栏。
(A toolbar for Laravel Telescope, based on the Symfony Web Profiler.)

文件列表:
composer.json (1227, 2023-02-21)
config (0, 2023-02-21)
config\telescope-toolbar.php (4962, 2023-02-21)
license.md (1078, 2023-02-21)
phpunit.xml.dist (857, 2023-02-21)
resources (0, 2023-02-21)
resources\css (0, 2023-02-21)
resources\css\base.css (12326, 2023-02-21)
resources\css\custom.css (1045, 2023-02-21)
resources\css\theme_light.css (2881, 2023-02-21)
resources\icons (0, 2023-02-21)
resources\icons\ajax.svg (421, 2023-02-21)
resources\icons\cache.svg (290, 2023-02-21)
resources\icons\close.svg (344, 2023-02-21)
resources\icons\commands.svg (210, 2023-02-21)
resources\icons\config.svg (433, 2023-02-21)
resources\icons\dumps.svg (245, 2023-02-21)
resources\icons\events.svg (249, 2023-02-21)
resources\icons\exceptions.svg (525, 2023-02-21)
resources\icons\forward.svg (260, 2023-02-21)
resources\icons\gates.svg (291, 2023-02-21)
resources\icons\jobs.svg (150, 2023-02-21)
resources\icons\laravel.svg (2089, 2023-02-21)
resources\icons\logs.svg (203, 2023-02-21)
resources\icons\mail.svg (267, 2023-02-21)
resources\icons\memory.svg (359, 2023-02-21)
resources\icons\menu.svg (434, 2023-02-21)
resources\icons\models.svg (177, 2023-02-21)
resources\icons\no-gray.svg (322, 2023-02-21)
resources\icons\no.svg (322, 2023-02-21)
resources\icons\notifications.svg (195, 2023-02-21)
resources\icons\pause.svg (155, 2023-02-21)
resources\icons\play.svg (141, 2023-02-21)
... ...

## Laravel Telescope Toolbar ![Unit Tests](https://github.com/fruitcake/laravel-telescope-toolbar/workflows/Unit%20Tests/badge.svg) [![Packagist License](https://poser.pugx.org/fruitcake/laravel-telescope-toolbar/license.png)](http://choosealicense.com/licenses/mit/) [![Latest Stable Version](https://poser.pugx.org/fruitcake/laravel-telescope-toolbar/version.png)](https://packagist.org/packages/fruitcake/laravel-telescope-toolbar) [![Total Downloads](https://poser.pugx.org/fruitcake/laravel-telescope-toolbar/d/total.png)](https://packagist.org/packages/fruitcake/laravel-telescope-toolbar) [![Fruitcake](https://img.shields.io/badge/Powered%20By-Fruitcake-b2bc35.svg)](https://fruitcake.nl/) ### 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) ```bash composer require laravel/telescope php artisan telescope:install php artisan migrate ``` Then just install the package with Composer and it will register automatically: ```bash composer require fruitcake/laravel-telescope-toolbar --dev ``` The Toolbar will show by default when Telescope is enabled and APP_DEBUG is true. ![image](https://user-images.githubusercontent.com/973269/63676710-d79ad000-c7eb-11e9-8793-c58c6bc25bbe.png) > 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 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](https://user-images.githubusercontent.com/973269/636753***-ef248***0-c7e8-11e9-8696-dbddd9feb4bd.png) Preview for Exceptions/Mail/Notifications/Log entries with link to details: ![image](https://user-images.githubusercontent.com/973269/63676030-67d81580-c7ea-11e9-9526-129bec5187f9.png) Counter for Queries (and Cache etc): ![image](https://user-images.githubusercontent.com/973269/63675578-68bc7780-c7e9-11e9-915d-b955dd070c94.png) Catch `debug()`/`Toolbar::dump()` calls and show them directly in the Toolbar instead of the page: ![image](https://user-images.githubusercontent.com/973269/63676511-60653c00-c7eb-11e9-9b8e-94739***a29a8.png) ## 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](https://opensource.org/licenses/MIT). ### 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

近期下载者

相关文件


收藏者