Skip to content

Commit caff371

Browse files
authored
Update location for blade view override (#2158)
1 parent 43a317b commit caff371

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

core/openapi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -755,21 +755,21 @@ You may want to copy the [one shipped with API Platform](https://github.com/api-
755755

756756
### Overriding the UI Template using Laravel
757757

758-
As described [in the Laravel documentation](https://laravel.com/docs/blade#extending-a-layout), it's possible to override the Blade template that loads Swagger UI and renders the documentation:
758+
As described [in the Laravel documentation](https://laravel.com/docs/packages#overriding-package-views), it's possible to override the Blade template that loads Swagger UI and renders the documentation:
759759

760760
```html
761-
{# resources/views/swagger-ui.blade.php #}
761+
{{-- resources/views/vendor/api-platform/swagger-ui.blade.php --}}
762762
<!DOCTYPE html>
763763
<html>
764764
<head>
765765
<meta charset="UTF-8">
766766
<title>
767767
@if(isset($title))
768-
{{ $title }}
768+
{{ $title }}
769769
@endif
770770
My custom template
771771
</title>
772-
{# ... #}
772+
{{-- ... --}}
773773
</html>
774774
```
775775

0 commit comments

Comments
 (0)