caner / laravel-helper-commands
Simple Laravel Helper Commands
v1.0.0
2023-01-04 02:19 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^9.0
- spatie/laravel-package-tools: ^1.13.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^6.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^7.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-11-04 06:08:04 UTC
README
Laravel Helper Commands
Installation
You can install the package via composer:
composer require caner/laravel-helper-commands
You can publish the config file with:
php artisan vendor:publish --tag="laravel-helper-commands-config"
This is the contents of the published config file:
<?php /** * Caner/LaravelHelperCommands Config File. */ return [ /** * List all controllers paths. * * This value is used to find all Controller files. */ 'controller_paths' => [ 'App/Http/Controllers', ], /** * List Excluded controllers for permission check. */ 'excluded_controllers_for_permission_check' => [ // 'App\Http\Controllers\TestController' ], ];
Usage
This command list not authorized controller methods. Please see Laravel Authorization Via Controller Helpers ;
php artisan dev:permission-check
This command will list the methods that are in the route but not in the controller;
php artisan dev:missing-routes
This command will list the methods that are in the controller but not in the route;
php artisan dev:missing-controller-methods
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.