public function hipchat(Request $request)
    {
        $this->validate($request, [
            'hipchattoken' => 'required|string|min:1|max:80',
            'roomid' => 'required|string|min:4|max:7',
            'low' => 'required|boolean',
            'medium' => 'required|boolean',
            'high' => 'required|boolean',
        ]);

        Recipient::create([
            'type' => 'hipchat',
            'address' => $request->roomid,
            'meta' => ['token' => $request->hipchattoken],
            'low' => $request->low,
            'medium' => $request->medium,
            'high' => $request->high,
        ]);

        return redirect(route('eyewitness.settings.index').'#recipients')->withSuccess('The HipChat recipient has been created. You can send a test notification to ensure it is working by click on the button next to the recipient.');
    }
public function hipchat(Request $request)
    {
        $this->validate($request, [
            'hipchattoken' => 'required|string|min:1|max:80',
            'roomid' => 'required|string|min:4|max:7',
            'low' => 'required|boolean',
            'medium' => 'required|boolean',
            'high' => 'required|boolean',
        ]);

        Recipient::create([
            'type' => 'hipchat',
            'address' => $request->roomid,
            'meta' => ['token' => $request->hipchattoken],
            'low' => $request->low,
            'medium' => $request->medium,
            'high' => $request->high,
        ]);

        return redirect(route('eyewitness.settings.index').'#recipients')->withSuccess('The HipChat recipient has been created. You can send a test notification to ensure it is working by click on the button next to the recipient.');
    }
public function hipchat ( Request $ request ) { $ this -> validate ( $ request , [ 'hipchattoken' => 'required|string|min:1|max:80' , 'roomid' => 'required|string|min:4|max:7' , 'low' => 'required|boolean' , 'medium' => 'required|boolean' , 'high' => 'required|boolean' , ] ) ; Recipient :: create ( [ 'type' => 'hipchat' , 'address' => $ request -> roomid , 'meta' => [ 'token' => $ request -> hipchattoken ] , 'low' => $ request -> low , 'medium' => $ request -> medium , 'high' => $ request -> high , ] ) ; return redirect ( route ( 'eyewitness.settings.index' ) . '#recipients' ) -> withSuccess ( 'The HipChat recipient has been created. You can send a test notification to ensure it is working by click on the button next to the recipient.' ) ; }
Create a HipChat recipient.

@param  Request  $request
@return \Illuminate\Http\Response
Create a HipChat recipient .