Git Product home page Git Product logo

Comments (7)

zulhfreelancer avatar zulhfreelancer commented on July 20, 2024

When I run php artisan migrate --path=vendor/lucadegasperi/oauth2-server-laravel/migrations, I get this error:

Fatal error: Call to undefined method Laravel\Lumen\Application::bindShared() in /Applications/MAMP/htdocs/order_api/vendor/lucadegasperi/oauth2-server-laravel/src/Storage/FluentStorageServiceProvider.php on line 54


  [Symfony\Component\Debug\Exception\FatalErrorException]
  Call to undefined method Laravel\Lumen\Application::bindShared()

What should I do now? I'm new to Laravel & Lumen. Thanks.

from oauth2-server-lumen.

manojsaini81 avatar manojsaini81 commented on July 20, 2024

getting same error.

Found a solution, one of the fork repository "thomasgambina/oauth2-server-lumen.git", has made changes into composer.json. I have used same repository like below:
in composer.json:
"repositories": [
{
"type": "git",
"url": "https://github.com/thomasgambina/oauth2-server-lumen.git"
}
],
and under "require":

    "optimus/oauth2-server-lumen":"dev-master"

This has resolved the issue.

from oauth2-server-lumen.

zulhfreelancer avatar zulhfreelancer commented on July 20, 2024

@manojsaini81 can you please share your entire composer.json file?

from oauth2-server-lumen.

manojsaini81 avatar manojsaini81 commented on July 20, 2024

Here is the Json. I was able to install all bundle but there is another issue coming while using oAuth Authentication which says Facade root is not found.

However here is the composer.json

{
"name": "laravel/lumen",
"description": "The Laravel Lumen Framework.",
"keywords": ["framework", "laravel", "lumen"],
"license": "MIT",
"type": "project",
"repositories": [
{
"type": "git",
"url": "https://github.com/thomasgambina/oauth2-server-lumen.git"
}
],
"require": {
"php": ">=5.5.9",
"laravel/lumen-framework": "5.2.*",
"vlucas/phpdotenv": "~2.2",
"optimus/oauth2-server-lumen":"dev-master",
"guzzlehttp/guzzle": "^6.1"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"phpunit/phpunit": "~4.0"
},
"autoload": {
"psr-4": {
"App": "app/"
}
},
"autoload-dev": {
"classmap": [
"tests/",
"database/"
]
}
}

from oauth2-server-lumen.

mhousser avatar mhousser commented on July 20, 2024

Damn this one just killed me during my upgrade to Lumen 5.2.*.

Call to undefined method Laravel\Lumen\Application::bindShared()

Caused by this include:

"optimus/oauth2-server-lumen": "0.1.*"

Would really prefer not to put a dev-master dependency in my Composer file.

Since this is a critical/showstopper bug for using this library with the current version of Lumen, is there an ETA for this update being moved into a mainstream Composer dependency? Say, 0.2?

from oauth2-server-lumen.

kojilab avatar kojilab commented on July 20, 2024

I replaced the occurences of bindShared with singleton after reading this
https://laracasts.com/discuss/channels/laravel/call-to-undefined-method-illuminatefoundationapplicationbindshared

from oauth2-server-lumen.

 avatar commented on July 20, 2024

@mhousser Could you update this package without put 'dev-master' version? Which version did you use for Lumen 5.2?

from oauth2-server-lumen.

Related Issues (6)

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.