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...
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
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
],
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see the License File for more information.