@@ -45,7 +45,7 @@ |
||
45 | 45 | ])); |
46 | 46 | |
47 | 47 | return response()->json([ |
48 | - 'url' => route('vendor.laravel-pdf-tinker.download', ['alias' => $filename]) |
|
48 | + 'url' => route('vendor.laravel-pdf-tinker.download', [ 'alias' => $filename ]) |
|
49 | 49 | ]); |
50 | 50 | } catch (Exception $e) { |
51 | 51 | return response()->json([ |
@@ -13,17 +13,17 @@ |
||
13 | 13 | { |
14 | 14 | public function register() |
15 | 15 | { |
16 | - $this->app->singleton(PdfTinkerManager::class, function () { |
|
16 | + $this->app->singleton(PdfTinkerManager::class, function() { |
|
17 | 17 | $manager = new PdfTinkerManager(); |
18 | 18 | |
19 | - $manager->extend('dompdf', function () { |
|
19 | + $manager->extend('dompdf', function() { |
|
20 | 20 | $dompdf = new Dompdf(); |
21 | 21 | $dompdf->setBasePath(realpath(base_path('public'))); |
22 | 22 | |
23 | 23 | return new DompdfDriver($dompdf); |
24 | 24 | }); |
25 | 25 | |
26 | - $manager->extend('wkhtmltopdf', function () { |
|
26 | + $manager->extend('wkhtmltopdf', function() { |
|
27 | 27 | return new WkhtmltopdfDriver(new Pdf); |
28 | 28 | }); |
29 | 29 |
@@ -6,19 +6,19 @@ |
||
6 | 6 | Route::group([ |
7 | 7 | 'prefix' => config('laravel-pdf-tinker.route_prefix'), |
8 | 8 | 'as' => 'vendor.laravel-pdf-tinker.' |
9 | -], function () { |
|
10 | - Route::get('/playground', [PlaygroundController::class, 'index']) |
|
9 | +], function() { |
|
10 | + Route::get('/playground', [ PlaygroundController::class, 'index' ]) |
|
11 | 11 | ->name('playground'); |
12 | 12 | |
13 | - Route::post('/preview', [PlaygroundController::class, 'preview']) |
|
13 | + Route::post('/preview', [ PlaygroundController::class, 'preview' ]) |
|
14 | 14 | ->name('preview'); |
15 | 15 | |
16 | - Route::get('/pdf/{alias}', [PlaygroundController::class, 'download']) |
|
16 | + Route::get('/pdf/{alias}', [ PlaygroundController::class, 'download' ]) |
|
17 | 17 | ->name('download'); |
18 | 18 | |
19 | - Route::get('/css', [PlaygroundController::class, 'css']) |
|
19 | + Route::get('/css', [ PlaygroundController::class, 'css' ]) |
|
20 | 20 | ->name('css'); |
21 | 21 | |
22 | - Route::get('/js', [PlaygroundController::class, 'js']) |
|
22 | + Route::get('/js', [ PlaygroundController::class, 'js' ]) |
|
23 | 23 | ->name('js'); |
24 | 24 | }); |