App\Http\Controllers\NytController::__construct PHP 메소드

__construct() 공개 메소드

Initialize the Controller with necessary arguments
public __construct ( )
    public function __construct()
    {
        $this->baseUrl = self::API_URL;
        $this->client = new Client(['base_uri' => $this->baseUrl]);
        $this->setGetResponse($this->getRelativeUrl());
    }