Integrating the Report Viewer and Report Designer into an Application (Laravel)
Наши примеры проектов и шаблоны отчётов помогут Вам разобраться в основах работы с нашими продуктами.This example shows how to integrate the report viewer and report designer into an application with Laravel framework.
First, add the Stimulsoft library dependency using the Composer manager:
Next, add Stimulsoft service provider to
Then, add the Blade component template to the application resources, for example:
After, add a component controller and set the necessary methods for event handling in it, for example:
Finally, add the necessary routes to the created view and controller in the web.php file, for example:
First, add the Stimulsoft library dependency using the Composer manager:
composer require stimulsoft/reports-php
Next, add Stimulsoft service provider to
app.php file:
Stimulsoft\Laravel\StiServiceProvider::class
Then, add the Blade component template to the application resources, for example:
viewer.blade.php
After, add a component controller and set the necessary methods for event handling in it, for example:
HandlerController.php
Finally, add the necessary routes to the created view and controller in the web.php file, for example:
Route::get('/viewer', function () {
return view('viewer');
});
Route::any('/handler', [HandlerController::class, 'process']);
Everything is ready, you can launch the application and work with Stimulsoft reports.