diff --git a/CHANGELOG.md b/CHANGELOG.md index b662d57..8a8e20f 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,10 @@ All notable changes to `easy-pdf` will be documented in this file. ## [Unreleased] -## 3.0.0 - 2024-04-08 +## 2.10.1 - 2024-10-10 +- Fix re-defining `K_PATH_IMAGES` constant bug. + +## 2.10.0 - 2024-04-08 - Laravel 11 and PHP 8.3 support added. ## 2.9.0 - 2023-08-16 diff --git a/README.md b/README.md index 9691875..b294c1b 100755 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ [![Total Downloads](https://img.shields.io/packagist/dt/tarfin-labs/easy-pdf.svg?style=flat-square)](https://packagist.org/packages/tarfin-labs/easy-pdf) ## Introduction -easy-pdf is a [tcpdf](https://tcpdf.org/) wrapper for Laravel 6.x, 7.x, 8.x, 9.x, 10.x. +easy-pdf is a [tcpdf](https://tcpdf.org/) wrapper for Laravel 6.x, 7.x, 8.x, 9.x, 10.x, 11.x. ## Installation diff --git a/src/EasyPdf.php b/src/EasyPdf.php index 539d54b..04fcbfc 100755 --- a/src/EasyPdf.php +++ b/src/EasyPdf.php @@ -45,7 +45,7 @@ class EasyPdf */ public function __construct(?string $imagePath = null) { - if ($imagePath !== null) { + if ($imagePath !== null && ! defined('K_PATH_IMAGES')) { define('K_PATH_IMAGES', $imagePath); }