22<p align =" center " ><img src =" https://static.typeset.sh/images/typeset.sh-logo.svg " width =" 300 " ></p >
33
44
5- # Typeset.sh wrapper for Laravel 7, 8, 9 and 10
5+ # Typeset.sh wrapper for Laravel 7, 8, 9, 10 and 11
66
77This is a laravel typeset.sh wrapper that lets you easily configure and use typeset.sh
88in your laravel project. Typeset.sh is a printcss layout and rendering engine written in PHP.
@@ -33,7 +33,7 @@ use Typesetsh\LaravelWrapper\Facades\Pdf;
3333
3434Route::get('/invoice/print', function () {
3535 $invoice = new stdClass();
36-
36+
3737 return Pdf::make('invoice', ['invoice' => $invoice]);
3838});
3939```
@@ -47,7 +47,7 @@ Alternative you can use the helper.
4747
4848Route::get('/invoice/print', function () {
4949 $invoice = new stdClass();
50-
50+
5151 return Typesetsh\pdf('invoice', ['invoice' => $invoice]);
5252});
5353```
@@ -58,7 +58,7 @@ or force a download
5858
5959Route::get('/invoice/print', function () {
6060 $invoice = new stdClass();
61-
61+
6262 return Typesetsh\pdf('invoice', ['invoice' => $invoice])->forceDownload('invoice.pdf');
6363});
6464```
@@ -67,7 +67,7 @@ Route::get('/invoice/print', function () {
6767## Configuration
6868
6969Typeset.sh does not require much configuration. The only important aspect to understand is that
70- by default typeset.sh does not allow including any external resources (image, css, fonts,...)
70+ by default typeset.sh does not allow including any external resources (image, css, fonts,...)
7171unless specified.
7272
7373See the configuration file ` config/typesetsh.php ` for more information. By default, typeset.sh
@@ -76,8 +76,8 @@ has access to the public directory and any http(s) resources.
7676You can also publish the file using:
7777
7878 php artisan vendor:publish --provider="Typesetsh\LaravelWrapper\ServiceProvider"
79-
80-
79+
80+
8181## License
8282
8383This extension is under the [ MIT license] ( LICENSE ) .
0 commit comments