错误的很奇怪,请大师指点

浏览:481 发布日期:2018/09/06 分类:求助交流
错的内容,我一脸的疑惑,我也不知道我哪里写错了 ,大师指点 public function login(Request $request){
        $dl = $request ->post();
        $validate = Validate::make([
            'password' => 'require|min:3|max:20',
        ]);
        $yz = $validate ->check($dl);
        if($yz){
            $user = Db::table('bf_yh') ->where('username',$dl['username']) -> where('password',md5($dl['password'])) ->find();
            if($user){
                return $this -> success('登陆成功!!','index/rk/index');
            }else{
                return $this -> error('用户名或密码错误!');
            }
        }else{
            return $this -> error($validate ->getError());
        }
    }
错误提示
致命错误: Call to undefined method app\index\controller\Index::success()
或者是
致命错误: Call to undefined method app\index\controller\Index::error()
最佳答案
评论( 相关
后面还有条评论,点击查看>>