From 1d241b0bae608169f668002ff7a6b8bd858a90eb Mon Sep 17 00:00:00 2001 From: Evan Schleret Date: Tue, 23 Jul 2024 14:08:30 +0200 Subject: [PATCH] fix: remove workingdirectory --- README.md | 1 - config/laramjml.php | 8 -------- src/Providers/LaraMjmlServiceProvider.php | 1 - 3 files changed, 10 deletions(-) diff --git a/README.md b/README.md index f98b2fd6..c38dddf3 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ You can use this package by simply calling the `view` helper function with the n You can set the path to the mjml binary in your `.env` file. ```env -LARA_MJML_WORKING_DIRECTORY=resources/views MJML_NODE_PATH=null LARA_MJML_BEAUTIFY=false LARA_MJML_MINIFY=true diff --git a/config/laramjml.php b/config/laramjml.php index 8926b86d..8e8be75e 100644 --- a/config/laramjml.php +++ b/config/laramjml.php @@ -8,14 +8,6 @@ */ 'binary_path' => env('MJML_NODE_PATH', null), - - /* - * The path to the working directory - * - * string - */ - 'working_directory' => env('LARA_MJML_WORKING_DIRECTORY', base_path('resources/views')), - /* * Beautify the output * diff --git a/src/Providers/LaraMjmlServiceProvider.php b/src/Providers/LaraMjmlServiceProvider.php index f9a7bb4c..b6ebb5a0 100644 --- a/src/Providers/LaraMjmlServiceProvider.php +++ b/src/Providers/LaraMjmlServiceProvider.php @@ -33,7 +33,6 @@ public function boot(): void ->beautify(Config::get('laramjml.beautify')) ->minify(Config::get('laramjml.minify')) ->keepComments(Config::get('laramjml.keep_comments')) - ->workingDirectory(Config::get('laramjml.working_directory')) ->convert($view, ...Config::get('laramjml.options')) ->html(); }