vendredi 20 avril 2018

how to sign in or sign up with one auth for all user ?

public function postSignIn(Request $request)
{
    $this->validate($request, [
        'email' => 'required',
        'password' => 'required'
        ]);


    if (Auth::attempt(['email' => $request['email'], 'password' => $request['password'], 'active' => 1]))
    {
        return redirect()->route('dashboard');
    }
    return redirect()->back()->with('message', 'Email address and Password mismatch or account not yet activated.');
}

i want access to open my project with one auth for all users if soemoene know to method can you tell me



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2HdHouZ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire