Giter Club home page Giter Club logo

Comments (7)

krisanalfa avatar krisanalfa commented on May 20, 2024 1

Thanks to @cleitonsouza. I'm sure it's all about your Dingo configuration. Change your .env file. Change API_PREFIX to something like this:

API_PREFIX=api

Maybe I'm missing documentation for this info. Can someone send me a PR?

from lumen-jwt.

cleitonsouza avatar cleitonsouza commented on May 20, 2024

Maybe php artisan migrate --seed ?

from lumen-jwt.

smarques84 avatar smarques84 commented on May 20, 2024

I already ran that command and checked if the database has the the user and its inserted correctly.

from lumen-jwt.

cleitonsouza avatar cleitonsouza commented on May 20, 2024

Test with api/auth/login.

Try setting API_PREFIX in your env file.

from lumen-jwt.

casperwitting avatar casperwitting commented on May 20, 2024

I've had this issue also, fixed it by adding /api in the url:

http://localhost:8001/api/auth/login

@krisanalfa please update the readme with this

from lumen-jwt.

krisanalfa avatar krisanalfa commented on May 20, 2024

@casperwitting Ok, can you send me a PR to update current readme? I'm lil busy right now.

from lumen-jwt.

smarques84 avatar smarques84 commented on May 20, 2024

Can confirm to make it work you need to add the /api to the url like @casperwitting said, just setting
API_PREFIX=api in the .env file is not enough

from lumen-jwt.

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.