src/VkCommunityCallbackDriver.php
/**
     * Building the payload
     *
     * @param Request $request
     */
Building the payload
@param Request $request
Building the payload @param Request $request
public function buildPayload(Request $request) {
        $this->ip = $request->getClientIp();
        $this->payload = new ParameterBag((array) json_decode($request->getContent(), true));
        $this->event = Collection::make((array) $this->payload->get("object"));
        $this->content = $request->getContent();
        $this->config = Collection::make($this->config->get('vk', []));
    }
public function buildPayload ( Request $ request ) { $ this -> ip = $ request -> getClientIp ( ) ; $ this -> payload = new ParameterBag ( ( array ) json_decode ( $ request -> getContent ( ) , true ) ) ; $ this -> event = Collection :: make ( ( array ) $ this -> payload -> get ( " object " ) ) ; $ this -> content = $ request -> getContent ( ) ; $ this -> config = Collection :: make ( $ this -> config -> get ( 'vk' , [ ] ) ) ; }
Building the payload
 @param Request $request
Building the payload @param Request $request
// Setting IP-address // Setting the payload, which contains all JSON data sent by VK // Setting the event, which contains only JSON 'object' field // Setting the content, contains raw data sent by VK // Setting the config values from 'config/vk.php' file