@@ -35,9 +35,9 @@ |
||
35 | 35 | { |
36 | 36 | $this->loadViewsFrom(__DIR__ . '/../assets/views', 'laravel-pdf-tinker'); |
37 | 37 | |
38 | - $this->mergeConfigFrom(__DIR__.'/../config/laravel-pdf-tinker.php', 'laravel-pdf-tinker'); |
|
38 | + $this->mergeConfigFrom(__DIR__ . '/../config/laravel-pdf-tinker.php', 'laravel-pdf-tinker'); |
|
39 | 39 | |
40 | - $this->loadRoutesFrom(__DIR__.'/Http/routes.php'); |
|
40 | + $this->loadRoutesFrom(__DIR__ . '/Http/routes.php'); |
|
41 | 41 | |
42 | 42 | $this->publishes([ |
43 | 43 | __DIR__ . '/../config/laravel-pdf-tinker.php' => config_path('laravel-pdf-tinker.php'), |
@@ -7,18 +7,18 @@ |
||
7 | 7 | 'prefix' => config('laravel-pdf-tinker.route_prefix'), |
8 | 8 | 'as' => 'vendor.laravel-pdf-tinker.' |
9 | 9 | ], function() { |
10 | - Route::get('/playground', [PlaygroundController::class, 'index']) |
|
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 | }); |
@@ -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([ |