Giter Site home page Giter Site logo

Laravel 5.1 about eloquent-oauth-l5 HOT 20 CLOSED

adamwathan avatar adamwathan commented on August 18, 2024
Laravel 5.1

from eloquent-oauth-l5.

Comments (20)

adamwathan avatar adamwathan commented on August 18, 2024

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.

jerauf avatar jerauf commented on August 18, 2024

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.

adamwathan avatar adamwathan commented on August 18, 2024

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.

jerauf avatar jerauf commented on August 18, 2024

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.

adamwathan avatar adamwathan commented on August 18, 2024

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.

jerauf avatar jerauf commented on August 18, 2024

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.

adamwathan avatar adamwathan commented on August 18, 2024

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.

jerauf avatar jerauf commented on August 18, 2024

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.

adamwathan avatar adamwathan commented on August 18, 2024

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.

jerauf avatar jerauf commented on August 18, 2024

from eloquent-oauth-l5.

adamwathan avatar adamwathan commented on August 18, 2024

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.

jerauf avatar jerauf commented on August 18, 2024

Yeah. It matches your example.

Route::get('/', function () {
return view('welcome');
});

from eloquent-oauth-l5.

adamwathan avatar adamwathan commented on August 18, 2024

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.

jerauf avatar jerauf commented on August 18, 2024

from eloquent-oauth-l5.

adamwathan avatar adamwathan commented on August 18, 2024

The package has never created any routes, you need to define the routes in your routes file manually.

from eloquent-oauth-l5.

adamwathan avatar adamwathan commented on August 18, 2024

The installation process has changed since this video, but all of the other setup (routes and stuff) is still the same:

https://vimeo.com/120085196

from eloquent-oauth-l5.

jerauf avatar jerauf commented on August 18, 2024

from eloquent-oauth-l5.

adamwathan avatar adamwathan commented on August 18, 2024

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.

manimadhup avatar manimadhup commented on August 18, 2024

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.

adamwathan avatar adamwathan commented on August 18, 2024

This package only supports the following providers:

  • Facebook
  • GitHub
  • Google
  • LinkedIn
  • Instagram
  • SoundCloud

...as per the documentation here: https://github.com/adamwathan/eloquent-oauth#supported-providers

from eloquent-oauth-l5.

Related Issues (20)

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.