Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Independent Developers
  4. In Laravel, check login always goes back to the login failure page.

In Laravel, check login always goes back to the login failure page.

Scheduled Pinned Locked Moved Unsolved Independent Developers
phphtmlcssbootstraplaravel
3 Posts 2 Posters 766 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lucky01
    wrote on 7 Sept 2022, 06:15 last edited by
    #1
    public function check_login(Request $request){
    
        if(Auth::attempt(['email' => $request->email, 'password'=> $request->password])){
        $request->session()->regenerateToken();
        return redirect("/profile");
      }
      return back()->withErrors(['failed'=>'invalid email and password']);
    
    
    }
    
    1 Reply Last reply
    0
    • P Online
      P Online
      Paul Colby
      wrote on 7 Sept 2022, 06:26 last edited by
      #2

      Hi @Lucky01, this is a forum for users of Qt - a cross-platform C++ framework.

      For Laravel (an unrelated PHP web framework), I suggest you try a Laravel user forum, such as Laracasts or Laravel.io.

      Cheers.

      L 1 Reply Last reply 9 Sept 2022, 12:06
      3
      • P Paul Colby
        7 Sept 2022, 06:26

        Hi @Lucky01, this is a forum for users of Qt - a cross-platform C++ framework.

        For Laravel (an unrelated PHP web framework), I suggest you try a Laravel user forum, such as Laracasts or Laravel.io.

        Cheers.

        L Offline
        L Offline
        Lucky01
        wrote on 9 Sept 2022, 12:06 last edited by
        #3

        @Paul-Colby thanks this is really helpful

        1 Reply Last reply
        0

        1/3

        7 Sept 2022, 06:15

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved