diff --git a/src/FpdfServiceProvider.php b/src/FpdfServiceProvider.php index 432bc43..0ac5daa 100644 --- a/src/FpdfServiceProvider.php +++ b/src/FpdfServiceProvider.php @@ -43,7 +43,7 @@ public function register() */ public function registerFpdf() { - if(config('fpdf.font_path') !== null) { + if(config('fpdf.font_path') !== null && !defined('FPDF_FONTPATH')) { define('FPDF_FONTPATH', config('fpdf.font_path')); }