Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adding Laravel Vapor Support - Fixes #716 #729

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

Merged
shalvah merged 4 commits into mpociot:master from BenjaminRosell:master
Apr 12, 2020

Conversation

Copy link
Contributor

@BenjaminRosell BenjaminRosell commented Apr 10, 2020
edited
Loading

Hello,

I added Laravel Vapor Support.

The changes were relatively simple:

  1. Adding a storage configuration variable so that users can choose the storage disk to use. In case of vapor, the users need to use S3
  2. The calls to theStorage class now use the disk referenced in the config file.
  3. Fixes the references to all.css and all.js to use the asset() function, since it generates a URL for an asset using the current scheme of the request (HTTP or HTTPS). In case of Vapor users, it will automatically reference the correct url for static files in AWS.

shalvah and cwilby reacted with thumbs up emoji
Copy link
Contributor

shalvah commented Apr 10, 2020

Does this work for both laravel and static types (the asset URLs especially)? Also, build is failing. See https://travis-ci.org/github/mpociot/laravel-apidoc-generator/jobs/673463648. You'll need to add an exception for that error in the phpstan.neon (follow the existing examples).

Copy link
Contributor Author

The asset() function is a blade function. I didn't touch the static files, since it's my understanding that they do work with Vapor. The only exception is the postman collection. Wich will be fixed as long as they use the s3 disk.

I just committed the ignore errors as requested

@shalvah shalvah merged commit 771ab73 into mpociot:master Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@shalvah shalvah shalvah approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /