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
1 answer

Laravel 7 change language of authentification forms

I would like to change langage of auth views in french. I went to this github repo and downloaded it : enter link description here I copied the necessaries files into ressources/lang/fr : and I changed the app.php like this : 'locale' => 'fr', but…
David
  • 427
  • 1
  • 5
  • 21
0
votes
1 answer

want to login in laravel passport multiauth

here how i can pass my new guard name is trainer if (auth()->attempt($credentials)) { $token = auth()->user()->createToken('TutsForWeb')->accessToken; return response()->json(['token' => $token], 200); } else { return response()->json(['error' =>…
0
votes
1 answer

Laravel Logout Function Not working in custom auth

In my Laravel project, I am using multi auth. But form my newly created user agency, log out function is not working Following is my code in view for logout
  • Xavier Issac
    • 414
    • 1
    • 4
    • 25
  • 0
    votes
    1 answer

    How can i submit form using name route when i am logged in with admin guard?

    im using multiple authentication using guards and i stuck with routing of resource Controller I have two Different Controllers with same name in different namespaces Route::namespace('Admin')->prefix('admin')->group(function(){ …
    0
    votes
    1 answer

    Why I keep getting 401 Unauthorized error when trying to login with Laravel basic Auth?

    I need an explanation for this behavior on Laravel's basic authentication. First thing I have a seeder class with factory file to generate users. $factory->define(User::class, function (Faker $faker) { return [ 'name' => $faker->name, …
    Ali Ali
    • 1,756
    • 2
    • 15
    • 34
    0
    votes
    1 answer

    View is not loading after login in laravel

    In my laravel project i have a login system from another table named agencie. Login functionality is working but view page is returning '404 error'. Following is my code in Logincontroller.php
    Xavier Issac
    • 414
    • 1
    • 4
    • 25
    0
    votes
    0 answers

    Laravel multi table authentication is not logging in

    In my laravel project , am implementing another login for agencies, which i want to take from agencies table.Agencies table have email and password fields. But when i try to login it not get logged in and redirecting to same page and prducing…
    Xavier Issac
    • 414
    • 1
    • 4
    • 25
    0
    votes
    1 answer

    How to use One Laravel Controller with Multiple Guard instead of Duplicating the Controller

    I have two Guards Admin User Also i have created controllers where user can manage his own data and admin can also manage user data. So i created two Controllers Controllers Admin EducatonBackgroundController User …
    0
    votes
    3 answers

    Laravel API request middleware unathenthicated

    I need your help with my Laravel API HTTP Request. I am trying to get a response from my api. But it sends back "Error: "Request failed with status code 401" and the AuthenthicationException shows "Unauthenticated." . I have not found any solutions.…
    0
    votes
    1 answer

    laravel auth attempt work only with first record

    I made a multi auth system in laravel 6 one for admins and the other for visitors So I made a second guard with the name visitor 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'visitor' => [ …
    IBMdig
    • 163
    • 2
    • 12
    0
    votes
    0 answers

    How to display index page without login/register on Laravel 7?

    I'm making a website in Laravel 7 and it was working fine. Then, I enable authentication and now it wouldn't let me go to index page. It keeps displaying default registraion form on index page. I even changed the content of…
    0
    votes
    1 answer

    Laravel: One IP per User, and how to give session to client IP from Laravel server

    I'm beginner in Laravel Session, and little confuse with laravel session system, but I'm already make session stored to database: And then I have question: How to make 1 row session is dedicated for one user_id and one ip_address? so there is no…
    0
    votes
    1 answer

    Laravel Multi Roles

    I am just new in Laravel 6. I installed the default auth in Laravel. I want to have multiple user. Admin - This user can monitor everything from the dashboard and other pages. Maker - This user can create only a job. Approver - This user can only…
    0
    votes
    0 answers

    How can I return authentication errors from a custom Laravel UserProvider?

    I have built my own UserProvider that is authenticating against another database. Everything is working great; I'm able to log in/out etc. I'm down to returning error messages and running into a snag. Here is what an example of my code looks…
    Damon
    • 4,151
    • 13
    • 52
    • 108
    0
    votes
    2 answers

    Laravel 5.8 Multiple middlewares using guards and specific options for each guard

    I have a laravel application that allows both admins and customers to gain access to it and for each one of them will have specific permissions using 2 separated tables for each type of user to auth and 2 different guards. what I need now is to give…