when I update laravel 5.4 to 5.5 ,it returned.
[2017-09-03 17:13:05] local.ERROR: Call to undefined method Illuminate\Routing\Route::getUri() {"userId":1,"email":"[email protected]","exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to undefined method Illuminate\Routing\Route::getUri() at /Users/north/www/fdb/vendor/dingo/api/src/Routing/Adapter/Laravel.php:98)
[stacktrace]
"}
Make sure you are using beta8, it fixes the issue. The main problem is in fact to do with dingo/blueprint which is required by the api but does not have Laravel 5.5 as a dependency.
@albofish it doesn't work :
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: remove laravel/framework v5.5.2
- Installation request for dingo/api 1.0.0-beta8 -> satisfiable by dingo/api[v1.0.0-beta8].
- Conclusion: don't install laravel/framework v5.5.2
- Conclusion: don't install laravel/framework v5.5.1
- dingo/api v1.0.0-beta8 requires dingo/blueprint 0.2.* -> satisfiable by dingo/blueprint[0.2.2, v0.2.0, v0.2.1].
- dingo/blueprint 0.2.2 requires illuminate/filesystem 5.1.* || 5.2.* || 5.3.* || 5.4.* -> satisfiable by illuminate/filesystem[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4, v5.4.0, v5.4.13, v5.4.17, v5.4.19, v5.4.27, v5.4.36, v5.4.9].
- dingo/blueprint v0.2.0 requires illuminate/filesystem 5.1.* || 5.2.* || 5.3.* -> satisfiable by illuminate/filesystem[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- dingo/blueprint v0.2.1 requires illuminate/filesystem 5.1.* || 5.2.* || 5.3.* -> satisfiable by illuminate/filesystem[v5.1.1, v5.1.13, v5.1.16, v5.1.2, v5.1.20, v5.1.22, v5.1.25, v5.1.28, v5.1.30, v5.1.31, v5.1.41, v5.1.6, v5.1.8, v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7, v5.3.0, v5.3.16, v5.3.23, v5.3.4].
- don't install illuminate/filesystem v5.4.0|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.4.13|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.4.17|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.4.19|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.4.27|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.4.36|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.4.9|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.1|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.13|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.16|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.2|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.20|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.22|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.25|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.28|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.30|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.31|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.41|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.6|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.1.8|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.0|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.19|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.21|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.24|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.25|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.26|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.27|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.28|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.31|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.32|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.37|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.43|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.45|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.6|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.2.7|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.3.0|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.3.16|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.3.23|don't install laravel/framework v5.5.0
- don't install illuminate/filesystem v5.3.4|don't install laravel/framework v5.5.0
- Installation request for laravel/framework 5.5.* -> satisfiable by laravel/framework[v5.5.0, v5.5.1, v5.5.2].
"dingo/blueprint": "0.2.*" is required in all versions.
See my previous comment. The issue is with dingo/blueprint not dingo/api
Yes but beta8 don't solve this issue.
Hi @Broutard here is my solution if you haven't found one yet...
In composer.json update the dingo dependencies to
"dingo/api": "1.0.0-beta8",
"dingo/blueprint": "dev-master",
And then add this so that the master branch of this fork is used ie "dingo/blueprint": "dev-master"
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Reddok/blueprint.git"
}
],
Hi @plexus77, following your instruction results to following errors:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Can only install one of: dingo/api[v1.0.0-beta8, 1.0.x-dev].
- Can only install one of: dingo/api[v1.0.0-beta8, 1.0.x-dev].
- Installation request for dingo/api 1.0.0-beta8 -> satisfiable by dingo/api[v1.0.0-beta8].
- Installation request for dingo/api 1.0.x-dev -> satisfiable by dingo/api[1.0.x-dev].
As I said in an other message
I forked the projects (api and blueprint). I use those forks in my composer.json and it works with Laravel 5.5.
Simply add
"repositories": [
{
"type": "vcs",
"url": "https://github.com/BafS/api"
},
{
"type": "vcs",
"url": "https://github.com/BafS/blueprint"
}
],
in your composer file and update.
升级到"dingo/api:1.0.0-beta8" 也还是报这个错
Most helpful comment
Hi @Broutard here is my solution if you haven't found one yet...
In composer.json update the dingo dependencies to
"dingo/api": "1.0.0-beta8", "dingo/blueprint": "dev-master",And then add this so that the master branch of this fork is used ie
"dingo/blueprint": "dev-master""repositories": [ { "type": "vcs", "url": "https://github.com/Reddok/blueprint.git" } ],