Comments (20)
Can you paste the full error? There is nothing in the dependencies that should cause an issue with 5.1, it depends on 4.*|5.*
from eloquent-oauth-l5.
I tried re-installing and didn't get the error.
But, I had some problems. In composer.json, I had to use ~7.0 but I had used dev-laravel-5 for 2 other installs.
The composer update worked. But when I tried to install the package, I get this:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'AdamWathan\EloquentOAuthL5\EloquentOAuthServiceProvider' not found
The provider and alias are in app.php as they appear on your site.
from eloquent-oauth-l5.
The dev-laravel-5
branch is gone now, and there is no ~7.0
release of this package. It sounds like maybe you are explicitly requiring adamwathan/eloquent-oauth
, rather than this wrapper package which is adamwathan/eloquent-oauth-l5
. Right now the latest releast is 0.2.0
, so I would recommend this in your composer.json:
{
// ...
"adamwathan/eloquent-oauth-l5": "0.2.*",
// ...
}
That will pull in this package, which will pull in ~7.0
of adamwathan/eloquent-oauth
.
The base eloquent-oauth
package has no service providers or anything anymore, that stuff has been split out into separate Laravel 4 and Laravel 5 wrappers (this repo is the Laravel 5 wrapper) because the installation process was too different for the two versions.
from eloquent-oauth-l5.
Ok. When I run the command php artisan eloquent-oauth-l5:install, it tells me that there are no commands defined in the "eloquent-oauth-l5" namespace.
from eloquent-oauth-l5.
The command is php artisan eloquent-oauth:install
but that is an inconsistency, so will update that in a future version, thanks for pointing that out.
from eloquent-oauth-l5.
I get the error:
There are no commands defined in the "eloquent-oauth" namespace.
On Tue, Jun 16, 2015 at 9:58 AM, Adam Wathan [email protected]
wrote:
The command is php artisan eloquent-oauth:install but that is an
inconsistency, so will update that in a future version, thanks for pointing
that out.—
Reply to this email directly or view it on GitHub
#6 (comment)
.
from eloquent-oauth-l5.
Are you registering this service provider?
AdamWathan\EloquentOAuthL5\EloquentOAuthServiceProvider
I just created a brand new 5.1 project and the command shows up for me. I've pushed the repo, maybe you can spot a difference between this project and yours:
https://github.com/adamwathan/eloquent-oauth-l5-example
from eloquent-oauth-l5.
Ok. Thanks.
When I publish the config, it works. But when I go to auth/login, I get a file not found.
from eloquent-oauth-l5.
Can you give more information about the error? What line of code is failing, and what is the file that isn't found?
from eloquent-oauth-l5.
from eloquent-oauth-l5.
It sounds like maybe the route hasn't been defined correctly.
Can you post the code from your routes file that should be responding to that route?
from eloquent-oauth-l5.
Yeah. It matches your example.
Route::get('/', function () {
return view('welcome');
});
from eloquent-oauth-l5.
Ah ok well you need a route defined for auth/login
, the example I pushed up isn't fully complete, just getting the package installed.
Are you new to Laravel? Defining a route for mysite.com/auth/login would look like this:
Route::get('auth/login', function () {
// do some stuff
});
As it stands you only have your home mysite.com/
route defined. You should be able to follow the rest of the usage instructions here to get going with the package:
https://github.com/adamwathan/eloquent-oauth#usage
Read up on how routing works in Laravel in general if you're not familiar: http://laravel.com/docs/5.1/routing
from eloquent-oauth-l5.
from eloquent-oauth-l5.
The package has never created any routes, you need to define the routes in your routes file manually.
from eloquent-oauth-l5.
The installation process has changed since this video, but all of the other setup (routes and stuff) is still the same:
from eloquent-oauth-l5.
from eloquent-oauth-l5.
No problem! Good luck, if you run into any other issues let me know, always looking for ways to improve the package.
from eloquent-oauth-l5.
Hi,I am registering with keycloak authentication ....
I am getting the error -- No provider has been registered under the alias 'keycloak' ----
I have done the same setting what you have told....I am calling the function from route...
and in the controller I am calling SocialAuth::authorize('keycloak'); ...I am getting the above error....
from eloquent-oauth-l5.
This package only supports the following providers:
- GitHub
- SoundCloud
...as per the documentation here: https://github.com/adamwathan/eloquent-oauth#supported-providers
from eloquent-oauth-l5.
Related Issues (20)
- Problem with user has same email address on login HOT 1
- Twitter HOT 1
- Add support for Twitter provider HOT 3
- EloquentOAuthServiceProvider not found HOT 4
- cannot get gender from facebook HOT 3
- Exception: Publish package configuration in Laravel 5.2 HOT 1
- API calls from the server require an appsecret_proof HOT 1
- Why are you using another config file? HOT 1
- Nice package but can be framework agnostic. Can you do that please HOT 1
- Support Laravel 5.3 HOT 4
- Installation Problem HOT 1
- Sentinel integration HOT 2
- Error 500 HOT 2
- Tag for Laravel 5.4-support? HOT 3
- Allow more than one scope HOT 12
- Is There a way to auth sending email and password to Facebook or google? HOT 3
- how do i make remember me now?? HOT 2
- login in with a customised guard HOT 1
- already have an account registred with the same email HOT 1
- i got guzzle http exception 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 eloquent-oauth-l5.