public function create(int $fleetId, string $fullname, string $identification, array $optional = []): Response
    {
        $this->requiresAccessToken();

        return $this->sendJson(
            'POST',
            "fleets/{$fleetId}/drivers",
            $this->getApiHeaders(),
            \array_merge($optional, \compact('fullname', 'identification'))
        );
    }
public function create(int $fleetId, string $fullname, string $identification, array $optional = []): Response
    {
        $this->requiresAccessToken();

        return $this->sendJson(
            'POST',
            "fleets/{$fleetId}/drivers",
            $this->getApiHeaders(),
            \array_merge($optional, \compact('fullname', 'identification'))
        );
    }
public function create ( int $ fleetId , string $ fullname , string $ identification , array $ optional = [ ] ) : Response { $ this -> requiresAccessToken ( ) ; return $ this -> sendJson ( 'POST' , "fleets/{$fleetId}/drivers" , $ this -> getApiHeaders ( ) , \ array_merge ( $ optional , \ compact ( 'fullname' , 'identification' ) ) ) ; }
Create driver for a fleet.

@param int    $fleetId
@param string $fullname
@param string $identification
@param array  $optional

@return \Laravie\Codex\Contracts\Response
Create driver for a fleet .