halivert / laravel-js-routes

Command for use Laravel routes in JS
https://halivert.dev/laravel-js-routes
MIT License
11 stars 6 forks source link

Include not exclude the rest #12

Closed dansleboby closed 3 years ago

dansleboby commented 3 years ago

Hi, Here is the config in "app.php" (we should use a separate config file)

'jsroutes' => [
        'name' => 'routes.js',
        'include' => [
            'admin.clients.autocomplete'
        ],
        'exclude' => [
            //
        ],
        'methods' => [
            //
        ],
    ]

With this config "includeRoute" in CreateJSRoutesCommand.php always return true

I made a pull request for the fix of both