This package allows you to add Star CloudPRNT integration in your Laravel application.
composer require onkbear/laravel-star-cloud-prnt
Please publish the config file with:
php artisan vendor:publish --provider="Onkbear\StarCloudPRNT\StarCloudPRNTServiceProvider"
This is the contents of the config file that will be published at config/star-cloud-prnt.php
:
Please add CloudPRNT server route to the routes file. It is used in
Route::starCloudPRNT('cloud-prnt-route');
You will need to add that route to the except array of the VerifyCsrfToken
middleware:
protected $except = [
'cloud-prnt-route',
];
Name | Method |
---|---|
Select emphasized printing | setTextEmphasized |
| Specify left alignment | setTextLeftAlign | | Specify center alignment | setTextCenterAlign | | Specify right alignment | setTextRightAlign |
| Select code page | setCodepage |
Please look at the Online Manual
If you need to integrate with basic auth, following package allows you to add it very easily without using DB.