Api: Method getUri does not exist.

Created on 11 Sep 2017  ·  7Comments  ·  Source: dingo/api

I use for Laravel 5.5,
when I just add a route,
then php artisan route:list

[BadMethodCallException]
Method getUri does not exist.

Most helpful comment

Just change Dingo\Api\Routing\Adapter\Laravel.php line 98 to:
return [$route->action['uri'], $route->methods, $route->action];

All 7 comments

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" } ],

When will there be an official release with the above changes and I can't use the above solution with 5.5?

Hi mate.

We will be doing a release supporting Laravel 5.5 ASAP. Let's us go through these pull requests and merge them to the masters. As soon as package is ready willing cut a release.

Hopefully within the next week 😀

Good then, I had been manually uploading a fixed Laravel Adapter since we upgraded all our live sites...

Just change Dingo\Api\Routing\Adapter\Laravel.php line 98 to:
return [$route->action['uri'], $route->methods, $route->action];

Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BartHuis picture BartHuis  ·  3Comments

cristiammercado picture cristiammercado  ·  3Comments

yanguanglan picture yanguanglan  ·  3Comments

lloricode picture lloricode  ·  3Comments

pedrolari picture pedrolari  ·  3Comments