1 頁 (共 1 頁)

5.1 Auth

發表於 : 2015-12-13 10:49:32
yehlu

Re: 5.1 Auth

發表於 : 2015-12-13 15:49:53
yehlu
認證完轉向

app/Http/Controllers/Auth/AuthController.php

代碼: 選擇全部

    protected $redirectPath = '/stock';

Laravel 5.1: How to authenticate only active users

發表於 : 2016-08-24 11:57:15
yehlu
http://stackoverflow.com/questions/3433 ... tive-users

app/Http/Controllers/Auth/AuthController.php

代碼: 選擇全部


use Illuminate\Http\Request;


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