typehints / laravel-unused
Unused Views,Controllers,.. for Laravel
Installs: 3 302
Dependents: 0
Suggesters: 0
Security: 0
Stars: 49
Watchers: 3
Forks: 7
Open Issues: 14
Requires
- php: >=7.1
- illuminate/filesystem: 5.6.*|5.7.*|5.8.*|^6.0|^7.0
- illuminate/routing: 5.6.*|5.7.*|5.8.*|^6.0|^7.0
Requires (Dev)
- nunomaduro/phpinsights: ^1.11
- phpstan/phpstan: ^0.12.3
- phpunit/phpunit: ^8.0
- dev-develop
- v0.1.2
- v0.1.1
- v0.1.0
- dev-dependabot/npm_and_yarn/json5-1.0.2
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/eventsource-1.1.1
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/composer/composer/composer-1.10.26
- dev-dependabot/npm_and_yarn/minimist-1.2.6
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/prismjs-1.27.0
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/ajv-6.12.6
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-upgrade-dependencies
- dev-Add-check-unused-view-command
- dev-Add-ignored-views-to-config
- dev-master
This package is auto-updated.
Last update: 2025-04-06 07:50:36 UTC
README
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.