Quantcast
Channel: Login only if user is active using Laravel - Stack Overflow
Viewing all articles
Browse latest Browse all 25

Answer by Raja Amer Khan for Login only if user is active using Laravel

$
0
0

In Laravel 5.4 open Auth/LoginController.php

and add this function:

/**     * Get the needed authorization credentials from the request.     *     * @param  \Illuminate\Http\Request  $request     * @return array     */    protected function credentials(\Illuminate\Http\Request $request)    {        //return $request->only($this->username(), 'password');        return ['email' => $request->{$this->username()}, 'password' => $request->password, 'status' => 1];    }

And you are done..!


Viewing all articles
Browse latest Browse all 25

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>