Looking to hire Laravel developers? Try LaraJobs

laravel-helper-commands maintained by caner

Description
Simple Laravel Helper Commands
Last update
2023/01/04 03:19 (dev-main)
License
Downloads
15

Comments
comments powered by Disqus

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.