Skip to content

Run php artisan ladocumenter:generate #7

Description

@Hein-Thu-Ya

ErrorException

Undefined array key "middleware"

at vendor/icodestuff/ladocumenter/src/LaDocumenter.php:48
44▕ $routes = collect($this->router->getRoutes()->getRoutes());
45▕
46▕ return $routes->map(function (Route $route){
47▕ // Remove if the middleware isn't an array.
➜ 48▕ if (!is_array($route->action['middleware'])) {
49▕ return false;
50▕ }
51▕
52▕ // Remove if the route is not using the api middleware.

  +1 vendor frames 

2 [internal]:0
Icodestuff\LaDocumenter\LaDocumenter::Icodestuff\LaDocumenter{closure}()

  +17 vendor frames 

20 artisan:37
Illuminate\Foundation\Console\Kernel::handle()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions