Comments (7)
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.
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.
@manojsaini81 can you please share your entire composer.json file?
from oauth2-server-lumen.
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.
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.
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.
@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
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 oauth2-server-lumen.