public function update()
    {
        if (!Input::has('settings')) {
            return $this->jsonErrorResponse('"settings" is required.');
        }

        $settings = Subbly::api('subbly.setting');

        $user = $settings->updateMany(Input::get('settings'));

        return $this->jsonResponse(array(
                'settings' => $settings->all(),
            ),
            array(
                'status' => array(
                    'code'    => 200,
                    'message' => 'Settings updated',
                ),
        ));
    }
public function update()
    {
        if (!Input::has('settings')) {
            return $this->jsonErrorResponse('"settings" is required.');
        }

        $settings = Subbly::api('subbly.setting');

        $user = $settings->updateMany(Input::get('settings'));

        return $this->jsonResponse(array(
                'settings' => $settings->all(),
            ),
            array(
                'status' => array(
                    'code'    => 200,
                    'message' => 'Settings updated',
                ),
        ));
    }
public function update ( ) { if ( ! Input :: has ( 'settings' ) ) { return $ this -> jsonErrorResponse ( '"settings" is required.' ) ; } $ settings = Subbly :: api ( 'subbly.setting' ) ; $ user = $ settings -> updateMany ( Input :: get ( 'settings' ) ) ; return $ this -> jsonResponse ( array ( 'settings' => $ settings -> all ( ) , ) , array ( 'status' => array ( 'code' => 200 , 'message' => 'Settings updated' , ) , ) ) ; }
Update a Setting.

@route PUT|PATCH /api/settings
@authentication required
Update a Setting .