Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lumen publish views #62

Closed
stylianospanagakos opened this issue Jul 31, 2020 · 2 comments
Closed

Lumen publish views #62

stylianospanagakos opened this issue Jul 31, 2020 · 2 comments
Labels
question Further information is requested

Comments

@stylianospanagakos
Copy link
Contributor

I've read the documentation regarding the customization of the index.blade.php and I can't find details on how to achieve a similar result in Lumen.

I tried to replicate the file structure but when I generate the docs, it defaults to the original version. Is there something I'm missing?

@stylianospanagakos stylianospanagakos added the question Further information is requested label Jul 31, 2020
@stylianospanagakos
Copy link
Contributor Author

For everyone else that might have the same problem, the solution lies in ScribeServiceProvider.php file:

 $this->publishes([
            __DIR__ . '/../resources/views' => $this->app->basePath('resources/views/vendor/scribe'),
        ], 'scribe-views');

Just create a vendor/scribe directory under resources/views and copy all the views content from the scribe package i.e. scribe/resources/views/ and you should have a successful publication.

@shalvah
Copy link
Contributor

shalvah commented Jul 31, 2020

Cool. Wanna make a PR to mention this in the docs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants