caner/laravel-helper-commands

Simple Laravel Helper Commands

v1.0.0 2023-01-04 02:19 UTC

This package is auto-updated.

Last update: 2024-11-04 06:08:04 UTC


README

Laravel Helper Commands

Laravel Helper Commands

Latest Version on Packagist
GitHub Tests Action Status
GitHub Code Style Action Status
Total Downloads

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.