/** * @author: lmkhang - skype * @date: 2016-01-10 * check account */ public function checkAccount($account = '', $password = '') { return \App\Admin::select('admin_id', 'username', 'email')->whereRaw('`group` = ? AND del_flg = ? AND ( username = ? OR email = ? ) AND `password` = ? ', [1, 1, $account, $account, $password])->first(); }