mstaack / lumen-api-starter Goto Github PK
View Code? Open in Web Editor NEWQuickstarter for Lumen
Quickstarter for Lumen
I think the only relevant change in code is the cache directory in the storage/framework folder
(https://laravel.com/docs/5.7/upgrade#upgrade-5.7.0)
At first I tried to login , and after a few hours, I found that:
You need to verify the user before you can login.
If the email settings are correct you should receive an email. You can also use
$user = App\User::where('email', -yourEmail-)->first();
$user->verify();
Originally posted by @stefanvanherwijnen in #29 (comment)
I know that it may not be an issue (and I apologize in advance for this), but i'd like to know if there's a way to have multiple users tables, like "providers", where this provider can login in a different subdomain, the main idea is to decentralize the login, as part of the software business model.
Hi please support for Lumen 6
thanks
Hi there,
I would like to know how I can access the protected routes after loggin in with my email and password. I do receive the token but when I post it to /auth/user I only get 401.
Best regards
linatt
Sorry to bother you here ...
First time using Lumen, only used Laravel before.
The current setup requires the user to verify their email.
In Laravel I can remove the "Illuminate\Contracts\Auth\MustVerifyEmail" contract on the User Model, but I can't find it in this installation. Can you please direct me to where I can disable the email verification?
(Took me a while to figure out why the seeded [email protected] returned the email/password error")
Please example to create other role like guest, admin, etc
how to collision on this project , on console ?
what is terminal command?
It is easier to log in with the seeded demo user if it is verified.
<?php
use App\User;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$this->call([
RolesSeeder::class,
]);
$user = User::createFromValues('John Doe', '[email protected]', 'password')->assignRole('administrator');
$user->verify();
}
}
Hi, @mstaack
I'm newbie in lumen
I use lumen-api-starter with quasar-api-starter @stefanvanherwijnen
try login [email protected] password then login_failed
and i try register success but login failed
DevTools:
Request URL: http://127.0.0.1:8000/auth/login
Request Method: POST
Status Code: 401 Unauthorized
Remote Address: 127.0.0.1:8000
Referrer Policy: no-referrer-when-downgrade
Response:
{"message":"Email address or password is incorrect."}
Thx before
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.