Questions tagged [laravel-authentication]

Laravel ships with several pre-built authentication controllers for user registration, authentication, and password reset.

Laravel ships with several pre-built authentication controllers for user registration, authentication, and password reset.

311 questions
-1
votes
2 answers

Trying to get property 'id' of non-object in laravel and vuejs

I am using laravel ui auth for login and register and all other features and CRUD operation for that i used VueJS and for CRUD operation i used laravel api.php route to access controllers function all the data are received but when i try to access…
-1
votes
1 answer

Which one should i use among these. laravel/sanctum or laravel/passport or jwt-auth?

I am developing a very big "xyz.com" application. application will have multiple subdomains hosted in multiple servers like "abc.xyz.com" & "def.xyz.com", etc. All of the servers are driven by "laravel-package-development". "xyz" frontend will be…
-1
votes
1 answer

Customize Laravel auth Login

I need to customize the Login native code of the Laravel Authentication. I started by overrode some methods on LoginController such us credentials and validateLogin adding a field. But I need to add some other checks, such us the possibility to join…
Swim89
  • 238
  • 5
  • 20
-1
votes
1 answer

How to register without email with laravel auth

I want make register form by number, name, password with Laravel auth. So I change username method in LoginController.php and validate method ,create method in RegisterController.php like following code. But always show error SQLSTATE[HY000]:…
-1
votes
1 answer

Laravel authentication with google is not working with guard

I have been working with a Laravel project with multiple guard authentications. one of my guard name is 'customer'. Only customers are allowed to login with their Google Account. Previously I was using Laravel default Users Model as Customer account…
-1
votes
1 answer

How do I Logout and Login in same Controller in Laravel 6?

I have a system where Admin will Enter his Client Dashboard with Client's Credentials. Admin has all information of Clients. --------------------- Client1 Login Client2 Login --------------------- Now in my Controller I want to do…
-1
votes
1 answer

in Laravel HTTP Basic Authentication implementation it uses email for username , how do we change the column to be username?

in laravel we can use Http Basic Authentication to facilitate user login . without having a login page , by attaching middleware->('auth.basic') , to the end of the Route in web.php , but by default it gets email as the username , how may i change…
Geco
  • 125
  • 12
-1
votes
1 answer

auth::id(); returns 'null' or auth::check(); returns 'false'

I have tried different methods discussed in here but not successful to my problem. Assumptions: Failure to group routes under the same middleware group. Get all the sessions required from web middleware and replace them into global middleware But I…
4xMafole
  • 109
  • 2
  • 11
-1
votes
1 answer

Auth::guard() is working wrong in view laravel 5.7

i have a controller: if( Auth::attempt(['mssv' => $username,'password' =>$password])) { $success = new MessageBag(['successlogin' => 'Login Success]); return redirect()->back()->withErrors($success); } elseif(…
-3
votes
1 answer

Updating Php website to laravel and all md5 passwords are broken

i am upgrading my raw php website to laravel 7. all my users have their passwords stored in md5 encryption. now when i try to login any of those user account with correct password, it returns error with 'These credentials do not match our records.'.…
-4
votes
1 answer

Login using auth without DB

I trying to create laravel app where i get the login status from remote server. For example., I have to two website www.xyz.com and www.abc.com If a user is logged in on www.xyz.com, My app is www.abc.com. When user enter www.abc.com for login i…
Rahul Singh
  • 927
  • 13
  • 27
1 2 3
20
21