Giter Club home page Giter Club logo

Comments (3)

andrey-helldar avatar andrey-helldar commented on June 16, 2024

You need to change the config/pretty-routes.php config file:

return [
    // ...

    'web_middleware' => null,
    'api_middleware' => null,

    // ...
];

from pretty-routes.

mazfreelance avatar mazfreelance commented on June 16, 2024

You need to change the config/pretty-routes.php config file:

return [
    // ...

    'web_middleware' => null,
    'api_middleware' => null,

    // ...
];

already follow your guide , i got new error
image

{
  "message": "DragonCode\\LaravelRoutesCore\\Support\\Routes::DragonCode\\LaravelRoutesCore\\Support\\{closure}(): Argument #1 ($route) must be of type Illuminate\\Routing\\Route, array given",
  "exception": "TypeError",
  "file": "D:\\project\\testlumen\\vendor\\dragon-code\\laravel-routes-core\\src\\Support\\Routes.php",
  "line": 31,
  "trace": [
    {
      "function": "DragonCode\\LaravelRoutesCore\\Support\\{closure}",
      "class": "DragonCode\\LaravelRoutesCore\\Support\\Routes",
      "type": "->"
    },
    {
      "file": "D:\\project\\testlumen\\vendor\\illuminate\\collections\\Arr.php",
      "line": 795,
      "function": "array_filter"
    },
    {
      "file": "D:\\project\\testlumen\\vendor\\illuminate\\collections\\Collection.php",
      "line": 372,
      "function": "where",
      "class": "Illuminate\\Support\\Arr",
      "type": "::"
    },
    {
      "file": "D:\\project\\testlumen\\vendor\\dragon-code\\laravel-routes-core\\src\\Support\\Routes.php",
      "line": 31,
      "function": "filter",
      "class": "Illuminate\\Support\\Collection",
      "type": "->"
    },
    {
      "file": "D:\\project\\testlumen\\vendor\\dragon-code\\laravel-routes-core\\src\\Support\\Routes.php",
      "line": 46,
      "function": "collection",
      "class": "DragonCode\\LaravelRoutesCore\\Support\\Routes",
      "type": "->"
    },
    {
      "file": "D:\\project\\testlumen\\vendor\\dragon-code\\pretty-routes\\src\\Http\\PrettyRoutesController.php",
      "line": 51,
      "function": "get",
      "class": "DragonCode\\LaravelRoutesCore\\Support\\Routes",
      "type": "->"
    },
    {
      "file": "D:\\project\\testlumen\\vendor\\illuminate\\container\\BoundMethod.php",
      "line": 36,
      "function": "routes",
      "class": "PrettyRoutes\\Http\\PrettyRoutesController",
      "type": "->"
    },

from pretty-routes.

andrey-helldar avatar andrey-helldar commented on June 16, 2024

So there are several reasons:

  1. Lumen support has been removed from dragon-code/laravel-routes-core version 5.0. This means that you need to install version 4.0 of the package. It works with Bar in backward compatibility mode. To do this, run the following commands:

    rm -R vendor && rm composer.lock
    composer require dragon-code/laravel-routes-core:^4.1
  2. Since the use of Lumen is not recommended by Taylor himself, we do not support its latest versions. Use Laravel instead.

    image

The latest version of Lumen for which we developed support for Routes Core is 6.0. In more recent versions, the project works "as is".

from pretty-routes.

Related Issues (15)

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.