niladam / laravel-unused

Laravel Unused helps you to detect unused blade views so you can safely remove them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect Unused Views on your Laravel Application

Software License Quality Score StyleCI

Introduction

LaraveUnused provides a UI where you can preview unused views from scanning all the routes on your application. It also allows you to see more data about used views like the action code where the view is being used / the partials that are used on a specific view / the views that a route is triggering...

Installation

You can install the package via composer:

composer require typehints/laravel-unused

You have to publish the package configuration using:

php artisan vendor:publish --provider=TypeHints\\Unused\\ServiceProvider

This will publish config/laravel-unused.php and vendor/laravel-unused

Usage

You just need to visit /laravelunused if you didn't change route_prefix in your config (make sure debug mode is true)

You can also add your own middelwares on config/laravel-unused.php

    'middleware' => [
        TypeHints\Unused\Middleware\LaravelUnusedMiddleware::class,
        // Custom Middleware
    ],

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 mohamed@typehints.com instead of using the issue tracker.

Credits

License

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

About

Laravel Unused helps you to detect unused blade views so you can safely remove them.


Languages

Language:PHP 58.6%Language:Vue 33.5%Language:JavaScript 5.8%Language:Blade 1.5%Language:SCSS 0.6%