|
@@ -78,6 +78,25 @@ Run the database seeder
|
78
|
78
|
|
79
|
79
|
php artisan migrate:refresh
|
80
|
80
|
|
|
81
|
+## Generating PDFs for Reports
|
|
82
|
+
|
|
83
|
+To generate PDFs for reports, the application uses Laravel Snappy. The Laravel Snappy package is already included in the application, but you need to install Wkhtmltopdf separately.
|
|
84
|
+
|
|
85
|
+### Wkhtmltopdf Installation
|
|
86
|
+
|
|
87
|
+1. **Download and install Wkhtmltopdf**
|
|
88
|
+ - [Wkhtmltopdf Downloads](https://wkhtmltopdf.org/downloads.html)
|
|
89
|
+
|
|
90
|
+ - Alternatively, if you are using Homebrew on macOS, you can install it using the following command:
|
|
91
|
+ ```bash
|
|
92
|
+ brew install wkhtmltopdf
|
|
93
|
+ ```
|
|
94
|
+
|
|
95
|
+2. **Configure the binary paths**
|
|
96
|
+ - If needed, you can change the paths to the Wkhtmltopdf binaries in the Snappy configuration file (`config/snappy.php`).
|
|
97
|
+
|
|
98
|
+For detailed installation instructions, refer to the [Laravel Snappy documentation](https://github.com/barryvdh/laravel-snappy).
|
|
99
|
+
|
81
|
100
|
## Live Currency
|
82
|
101
|
|
83
|
102
|
### Overview
|