public function postStep2()
    {
        $postData = Binput::all();

        $v = Validator::make($postData, $this->rulesStep1 + $this->rulesStep2);

        if ($v->passes()) {
            return Response::json(['status' => 1]);
        }

        return Response::json(['errors' => $v->getMessageBag()], 400);
    }
public function postStep2()
    {
        $postData = Binput::all();

        $v = Validator::make($postData, $this->rulesStep1 + $this->rulesStep2);

        if ($v->passes()) {
            return Response::json(['status' => 1]);
        }

        return Response::json(['errors' => $v->getMessageBag()], 400);
    }
public function postStep2 ( ) { $ postData = Binput :: all ( ) ; $ v = Validator :: make ( $ postData , $ this -> rulesStep1 + $ this -> rulesStep2 ) ; if ( $ v -> passes ( ) ) { return Response :: json ( [ 'status' => 1 ] ) ; } return Response :: json ( [ 'errors' => $ v -> getMessageBag ( ) ] , 400 ) ; }
Handles validation on step two of the setup form.

@return \Illuminate\Http\Response
Handles validation on step two of the setup form .