jeudi 19 avril 2018

Auth for multiple users laravel

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.');
}

if someone know how to make all user use to web site with one auth please tell me how to do it ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire