Files
logisticsAPI/routes/web.php
Marvin 657c5ad5e3 Update project dependencies and enhance documentation
- Added `barryvdh/laravel-dompdf` to `composer.json` for PDF generation capabilities.
- Updated `boost.json` to include `tailwindcss-development` in skills.
- Modified `package.json` and `package-lock.json` to upgrade Tailwind CSS and related packages.
- Improved README.md for clarity and corrected French language errors.
- Created design system documentation for Filament components.
- Added new Filament pages for Dashboard and Documentation with dynamic content loading.
- Enhanced TablesExplorer functionality with improved table and column management.
2026-02-20 14:16:24 +01:00

27 lines
747 B
PHP

<?php
use Barryvdh\DomPDF\Facade\Pdf;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Str;
Route::get('/', function () {
return view('welcome');
})->name('home');
Route::view('dashboard', 'dashboard')
->middleware(['auth', 'verified'])
->name('dashboard');
Route::get('/documentation/download-pdf', function () {
$markdown = file_get_contents(base_path('documentation/documentation_api_logistics.md'));
$htmlContent = Str::markdown($markdown);
$html = view('pdf.documentation', ['content' => $htmlContent])->render();
return Pdf::loadHTML($html)
->setPaper('a4')
->download('documentation_api_logistics.pdf');
})->name('documentation.download-pdf');
require __DIR__.'/settings.php';