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.

376 questions
0
votes
0 answers

Laravel MultiAuth logged in , but sees me as a Guest

I created MultiAuth, i can now login with my new admin auth. But the problem is , he redirects me to the normal login page of Auth because of im a guest. But im also logged in as a admin. When i login with normal auth, it works as normal, some code…
0
votes
1 answer

Laravel 5.8 Session not being written to cookies after Git Branch checkout

I have a team who are developing a Laravel app. We are at the early stages so almost no code has been written. One of my teammates ran the ‘php artisan make:auth’ command on his branch to activate authentication which worked fine and continues to…
0
votes
1 answer

Laravel Email Verification 5.8 with sqlsrv

I implemented the email verification that Laravel offers out of the box but currently have an issue when one click on the verification link sent on email. It brings the error: Data Missing This error is throw by Carbon at the point when the column…
JBakasa
  • 1
  • 1
0
votes
1 answer

How to change table prefix when a user logs in to account?

I am in new laravel, In my application When a user logs into his account I want to change the default database prefix from the env file. I setup wildcard subdomain for every users. When every user logs in I want to change the database prefix…
Midlaj
  • 215
  • 2
  • 9
0
votes
1 answer

Laravel 5.8 Developing Auth With Custom Table and Fields

I am creating a Laravel 5.8 app and I have an existing app with its users registered in a SQL table. I am able to connect to sql so the .env files are correct but I need custom fields in the Auth process. I have checked online guides but a lot seems…
Apoorv Pal
  • 197
  • 3
  • 14
0
votes
1 answer

custom password reset api in laravel 5.7

by default the password reset token emailed to email is different from one being saved to database. I have used the Hasher::make() and hash_hmac('sha256', $token, env('APP_KEY')) to hash that and then compare that token to database but invain. what…
Ahmed Nawaz Khan
  • 1,451
  • 3
  • 20
  • 42
0
votes
1 answer

ReactJS display components based on authentication

I have a ReactJS front-end app mixed with a Laravel back-end app. I'm facing a problem with auth. I'm authenticating the user with Laravel auth but I have some trouble on displaying components. I have some posts (/posts/1 or /posts/2 etc...) and…
Zeyukan Ich'
  • 651
  • 7
  • 21
0
votes
0 answers

Laravel Multi-Auth system Auth::user() is returning null

I've done the multi-authentication system for admins and it's working fine. But when the admins logged in i want to show their names in the frontend header. I'm using Auth::user() but it's returning null even if the user(admins) are logged in. Below…
0
votes
1 answer

Laravel RegisterController route not found

I'm learning Laravel and I'm trying to use Laravel Passport. When I try to create a new user I'm getting error 404 not found. RegisterController.php app/Http/Controllers/Auth I also have this path for my api…
Alan Godoi
  • 657
  • 1
  • 12
  • 39
0
votes
0 answers

Laravel Routing 404 Error on First Redirect

If I go to mysite.test/admin/ sometimes it gives me a 404 error. I cannot understand why. Here is my code: Routes /** Admin Routes */ Route::group(array('prefix' => 'admin'), function() { Route::get('/', 'Admin\PagesController@home'); }); /**…
0
votes
1 answer

laravel auth with api response different database

I have the same case with laravel custom authentication based on API response call need an answer please as this post has none
0
votes
1 answer

Laravel 5.7 , login redirectes back to login

Im using laravel 5.7, I implemented login using make-auth(). also folowing is my login funtion: public function login(Request $request) { $this->validate($request, [ 'email' => 'required|email', 'password' => 'required|min:6' …
gauri
  • 121
  • 1
  • 3
  • 14
0
votes
1 answer

Middleware not following the condition - Laravel 5.7

I am trying to implement a user registration system in Laravel 5.7 where I am facing an issue. I have two tables for Users- Admin(created by copying default Laravel auth), new routes, new middleware for admin. Every thing works fine while using…
0
votes
0 answers

How to make different pages of auth() register pages by configuring routes with data defined

When I try to open Studentregister page it opens the default register page of auth(). I'm new in Laravel I m having issues with syntaxes... I have made only one User class having link with role class. (User class is generated through $php artisan…
0
votes
2 answers

How to Use Auth() Register During Login Session in Laravel 5.7

I have changed the register page of Laravel 5.7 Auth() to the studentRegister page to register a new student, but it is inaccessible when I'm logged in through another user. The route didn't work while I'm in the session. However, it works perfectly…