-1
1

use AppHttpControllersController;
use IlluminateFoundationAuthAuthenticatesUsers;

class LoginController extends Controller
{
   use AuthenticatesUsers;
}

public function authenticate(Request $request)
    {
        $credentials = $request->only('email', 'password');
        $credentials['status'] = 1;

        if (Auth::attempt($credentials)) {
            return redirect()->intended('home');
        }
    }

|

2

1

public function credentials(Request $request)
    {
        $credentials = $request->only($this->email(), 'password');
        $credentials = array_add($credentials, 'status', '1');
        return $credentials;
    } 
|
    1

    protected function getCredentials(Request $request)
    {
        $credentials = $request->only($this->loginUsername(), 'password');
    
        $credentials['status'] = 1;
    
        return $credentials;
    }
    

    |