GithubHelp home page GithubHelp logo

sohelamin / lumen-route-list Goto Github PK

View Code? Open in Web Editor NEW
117.0 9.0 31.0 13 KB

Lumen Route List

Home Page: https://packagist.org/packages/appzcoder/lumen-routes-list

PHP 100.00%
lumen lumen-route

lumen-route-list's Issues

----

Sorry. Not this package.

Can not install in Lumen 7

I have some error when i run composer require appzcoder/lumen-routes-list in lumen 7.
This is error picture that i got.

image

Not working with Lumen 5.4

When installed, artisan help shows it as an available command as below:
route route:list Display all registered routes.

But using it generates a ReflectionException as follows:
[ReflectionException] Method Appzcoder\LumenRoutesList\RoutesCommand::handle() does not exist

Method getMiddleware does not exist.

I used

"laravel/lumen-framework": "5.5.*",
"dingo/api": "2.0.0-alpha1"

and route/web.php

$api = app('Dingo\Api\Routing\Router');

$api->version('v1', function ($api) {
    $api->get('/test', [
        'as' => 'index',
        'uses' => 'App\Http\Controllers\Controller@getIndex',
    ]);
});

When i am executing:

php artisan route:list

It returns a message:

In Macroable.php line 96:

  Method getMiddleware does not exist.

Class router does not exist

Hi, with lumen 5.4.7 obtain this error after php artisan route:list

[ReflectionException]
Class router does not exist

can u help me?
thanks.

Middleware not displayed if used in controller instead of web.php

Lumen Version:

"name": "laravel/lumen-framework",
"version": "v5.7.7"

When I use my middleware in the controller directly it doesn't show up in the list.

So when I use it like this in my controller class:

public function __construct() {
     $this->middleware('login', ['only' => [
         'createLogin'
     ]]);
}

instead of this in the web.php:

$router->get('/test', ['middleware' => 'test', function () {
    return response()->json('Foo');
}]);

the middleware isn't listed when I run php artisan route:list

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.