Skip to content

Commit bfa4690

Browse files
Merge pull request #249 from rakutentech/feature/publish
publish assets for nginx users
2 parents 2d80822 + 2430c8b commit bfa4690

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ You can publish the config file with:
7979
```bash
8080
php artisan vendor:publish --tag=request-docs-config
8181
php artisan route:cache
82+
83+
# Optional publish assets
84+
# php artisan vendor:publish --tag=request-docs-assets
8285
```
8386

8487
(optional) Add the following middleware to your API, so that the SQL logs and model events are captured.

src/LaravelRequestDocsServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public function configurePackage(Package $package): void
2121
// ->hasAssets()
2222
->hasViews();
2323
// ->hasAssets();
24+
// publish resources/dist/_astro to public/
25+
$this->publishes([
26+
__DIR__.'/../resources/dist/_astro' => public_path('request-docs/_astro'),
27+
], 'request-docs-assets');
2428
}
2529

2630
public function packageBooted()

0 commit comments

Comments
 (0)