Comments (3)
You need to change the config/pretty-routes.php
config file:
return [
// ...
'web_middleware' => null,
'api_middleware' => null,
// ...
];
from pretty-routes.
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
{
"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.
So there are several reasons:
-
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
-
Since the use of Lumen is not recommended by Taylor himself, we do not support its latest versions. Use Laravel instead.
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)
- Add quick filtering HOT 1
- Replace native routing with AJAX request HOT 1
- Api Routes HOT 3
- Problem with js file HOT 1
- What do you think if refresh button execute artisan route:clear? HOT 2
- PHPDocumentor issue HOT 1
- Request failed with status code 500 HOT 3
- Replace native code handling with VueJS
- Request failed with status code 500 HOT 2
- Add sorting and filtering data
- Throttle exception HOT 9
- Can't install Pretty Route Version: ^3.2 HOT 6
- Request failed with status code 500 (Return value must be of type ?array) HOT 5
- Add tests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pretty-routes.