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.
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
use Barryvdh\DomPDF\Facade\Pdf;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
Route::get('/', function () {
|
||||
return view('welcome');
|
||||
@@ -10,4 +12,15 @@ 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';
|
||||
|
||||
Reference in New Issue
Block a user