2
2
<p align =" center " ><img src =" https://static.typeset.sh/images/typeset.sh-logo.svg " width =" 300 " ></p >
3
3
4
4
5
- # Typeset.sh wrapper for Laravel 7, 8, 9 and 10
5
+ # Typeset.sh wrapper for Laravel 7, 8, 9, 10 and 11
6
6
7
7
This is a laravel typeset.sh wrapper that lets you easily configure and use typeset.sh
8
8
in your laravel project. Typeset.sh is a printcss layout and rendering engine written in PHP.
@@ -33,7 +33,7 @@ use Typesetsh\LaravelWrapper\Facades\Pdf;
33
33
34
34
Route::get('/invoice/print', function () {
35
35
$invoice = new stdClass();
36
-
36
+
37
37
return Pdf::make('invoice', ['invoice' => $invoice]);
38
38
});
39
39
```
@@ -47,7 +47,7 @@ Alternative you can use the helper.
47
47
48
48
Route::get('/invoice/print', function () {
49
49
$invoice = new stdClass();
50
-
50
+
51
51
return Typesetsh\pdf('invoice', ['invoice' => $invoice]);
52
52
});
53
53
```
@@ -58,7 +58,7 @@ or force a download
58
58
59
59
Route::get('/invoice/print', function () {
60
60
$invoice = new stdClass();
61
-
61
+
62
62
return Typesetsh\pdf('invoice', ['invoice' => $invoice])->forceDownload('invoice.pdf');
63
63
});
64
64
```
@@ -67,7 +67,7 @@ Route::get('/invoice/print', function () {
67
67
## Configuration
68
68
69
69
Typeset.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,...)
71
71
unless specified.
72
72
73
73
See 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.
76
76
You can also publish the file using:
77
77
78
78
php artisan vendor:publish --provider="Typesetsh\LaravelWrapper\ServiceProvider"
79
-
80
-
79
+
80
+
81
81
## License
82
82
83
83
This extension is under the [ MIT license] ( LICENSE ) .
0 commit comments