Bladeren bron

add views publication doc support for Lumen

Stylianos Panagakos 4 jaren geleden
bovenliggende
commit
29c5aec3b8
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 4 0
      docs/customization.md

+ 4 - 0
docs/customization.md

@@ -43,6 +43,7 @@ The contents of `prepend.md` will be added after the Introduction section, while
 ## Adding more example languages
 For each endpoint, an example request is shown in [each language configured](config.html#example-languages). To add a language which is not supported by this package, you'll have to create your own view for how an example should render. Here's how:
  
+ ### Laravel 
 First, publish the vendor views by running:
  
  ```bash
@@ -50,6 +51,9 @@ First, publish the vendor views by running:
  ```
  
 This will copy the views to `resources/views/vendor/scribe`.
+
+### Lumen
+In order to publish the vendor views, you need to manually create a `vendor/scribe` directory under `resources/views`. Then, copy the contents of `vendor/knuckleswtf/scribe/resources/views/` into the newly created `resources/views/vendor/scribe`.
  
 Next, create a file called `{language-name}.blade.php` (for example, `ruby.blade.php`) in the `partials/example-requests` directory.