App\Http\Controllers\TumblrController::__construct PHP Method

__construct() public method

Initialize the Controller with necessary arguments
public __construct ( )
    public function __construct()
    {
        $this->tumblr = new Tumblr();
        // Set API key.
        $this->tumblr->setApiKey(env('TUMBLR_API_KEY'));
    }