Use Laravel-Dompdf and create pdf invoices.

This commit is contained in:
2025-01-06 16:04:51 +01:00
parent fa085b7384
commit 8e0696d438
15 changed files with 872 additions and 4 deletions

View File

@@ -3,6 +3,7 @@
use App\Http\Controllers\CustomerController;
use App\Http\Controllers\InvoiceController;
use App\Http\Controllers\OptionController;
use App\Http\Controllers\PdfController;
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\TaxrateController;
use Illuminate\Support\Facades\Route;
@@ -24,6 +25,7 @@ Route::middleware('auth')->group(function () {
Route::resource('/taxrate', TaxrateController::class)->only(['index', 'create', 'edit']);
Route::resource('/invoice', InvoiceController::class)->only(['index', 'create', 'show', 'edit']);
Route::get('/option', [OptionController::class, 'index'])->name('option.index');
Route::get('/invoice/{id}/download', [PdfController::class, 'downloadInvoice'])->name('invoice.download');
});
require __DIR__.'/auth.php';