typehints/laravel-unused

Unused Views,Controllers,.. for Laravel


README

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

demo.png?raw=true

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.