All Projects → beyondcode → Laravel View Xray

beyondcode / Laravel View Xray

Licence: mit
Take a look into your Laravel views

Labels

Projects that are alternatives of or similar to Laravel View Xray

Tenanti
[Package] Multi-tenant Database Schema Manager for Laravel
Stars: ✭ 525 (-7.08%)
Mutual labels:  laravel
Laravel Mediable
Laravel-Mediable is a package for easily uploading and attaching media files to models with Laravel 5.
Stars: ✭ 541 (-4.25%)
Mutual labels:  laravel
Sudo Su
Laravel package to easily login as other users during development.
Stars: ✭ 554 (-1.95%)
Mutual labels:  laravel
Laravel Eloquent Query Cache
Adding cache on your Laravel Eloquent queries' results is now a breeze.
Stars: ✭ 529 (-6.37%)
Mutual labels:  laravel
Idea Php Laravel Plugin
Laravel Framework Plugin for PhpStorm / IntelliJ IDEA
Stars: ✭ 537 (-4.96%)
Mutual labels:  laravel
Ecommerce Open Api
果酱小店:基于 Laravel + swoole + 小程序的开源电商系统,优雅与性能兼顾 : )
Stars: ✭ 546 (-3.36%)
Mutual labels:  laravel
Larametrics
A self-hosted metrics and notifications platform for Laravel apps
Stars: ✭ 517 (-8.5%)
Mutual labels:  laravel
Laravel Model States
State support for models
Stars: ✭ 559 (-1.06%)
Mutual labels:  laravel
Laravel Vue Pagination
A Vue.js pagination component for Laravel paginators that works with Bootstrap
Stars: ✭ 541 (-4.25%)
Mutual labels:  laravel
Ecjia Daojia
EC+(ecjia)到家是一款可开展O2O业务的移动电商系统。它包含:移动端APP,采用原生模式开发,覆盖使用iOS 及Android系统的移 动终端;后台系统,针对平台日常运营维护的平台后台,针对入驻店铺管理的商家后台,独立并行;移动端H5,能够灵活部署于微信及其他APP、网页等。
Stars: ✭ 547 (-3.19%)
Mutual labels:  laravel
Compoships
Multi-columns relationships for Laravel's Eloquent ORM
Stars: ✭ 537 (-4.96%)
Mutual labels:  laravel
Laravel Blade X
Use custom HTML components in your Blade views
Stars: ✭ 538 (-4.78%)
Mutual labels:  laravel
Blade
🔪 A standalone version of Laravel's Blade templating engine for use outside of Laravel.
Stars: ✭ 542 (-4.07%)
Mutual labels:  laravel
Init.engineer
這是一份純靠北工程師的專案,請好好愛護它,謝謝。
Stars: ✭ 528 (-6.55%)
Mutual labels:  laravel
Laravel Pdf
📄 Easily generate PDF documents from HTML inside of Laravel 5
Stars: ✭ 552 (-2.3%)
Mutual labels:  laravel
Laravel Binary Uuid
Optimised binary UUIDs in Laravel
Stars: ✭ 523 (-7.43%)
Mutual labels:  laravel
Laravel Firewall
Web Application Firewall (WAF) package for Laravel
Stars: ✭ 544 (-3.72%)
Mutual labels:  laravel
Laravel Soap
A soap client wrapper for Laravel
Stars: ✭ 559 (-1.06%)
Mutual labels:  laravel
Ip Location Zh
获取 IP 地址的真实地理位置
Stars: ✭ 556 (-1.59%)
Mutual labels:  laravel
Framework
The Laravel Framework.
Stars: ✭ 25,679 (+4444.96%)
Mutual labels:  laravel

Xray - Take a look into your Laravel views

Latest Version on Packagist Build Status Quality Score Total Downloads

When your Laravel project grows, so do the Laravel views. Sometimes it might be hard to figure out, which part of the output HTML was rendered using which template. With this package, you can take a peek into your Laravel views and find out which template is responsible for which part of the output HTML.

Example output

Installation

You can install the package via composer:

composer require beyondcode/laravel-view-xray --dev

The package is enabled by default - so all you need to do is visit your application in the browser and hit the Xray shortcut.

  • Windows: CTRL + Shift + X
  • OSX: CMD + Shift + X

This toggles the Xray view, where you can see which view (and optionally section) rendered the visual output.

Disabling Xray

You can disable Xray by setting an environment variable called XRAY_ENABLED to false.

Excluding views

If you want to exclude certain views from being processed by Xray, you can do this by adding them to the configuration file.

Publish the configuration file using:

php artisan vendor:publish --provider=BeyondCode\\ViewXray\\ViewXrayServiceProvider

This will publish a file called xray.php in your config folder.

This is the content of the configuration file:

<?php

return [

    /*
     * Determines if the Xray package should be enabled.
     */
    'enabled' => env('XRAY_ENABLED', true),

    /*
     * If you want to exclude certain views from being processed by Xray,
     * you can list them here. Be aware that the check only applies to the
     * root views that you add here. If these views include other views
     * themselves, they need to be excluded manually.
     */
    'excluded' => [
        //
    ],

];

Just place the view names that you want to exclude in the excluded array.

FAQ

  • Does this work with VueJS too?

Yes, this package does work in combination with VueJS, but you need to enable comments in your VueJS app. This package works by adding specific HTML comments into the rendered views and uses these comments to find the bounding boxes of the rendered HTML. VueJS by default removes HTML comments prior to rendering.

You can enable HTML comments in your VueJS app by setting comments to true:

let app = new Vue({
    el: '#content',
    comments: true
});

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

This project is inspired by xray-rails.

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].