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

Laravel 10 support #12

Closed
Treggats opened this issue Mar 16, 2023 · 5 comments
Closed

Laravel 10 support #12

Treggats opened this issue Mar 16, 2023 · 5 comments

Comments

@Treggats
Copy link
Collaborator

Hi, I'm going to work to get Laravel 10 support for this package. I'm going to use this issue to ask question and get early feedback.

At the moment I have these questions;

  • what is the minimal PHP version you want to support?
    As Laravel 10 requires at minimum PHP 8.1
  • what is the minimal Laravel version that you want to support?

I'm probably going to make a few other pull requests with additional changes, but will add questions about those here in this issue.

Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
a lock file doesn't belong in a package

issue mazedlx#12
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
a lock file doesn't belong in a package

issue mazedlx#12
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
Treggats pushed a commit to Treggats/laravel-feature-policy that referenced this issue Mar 17, 2023
@Treggats
Copy link
Collaborator Author

Treggats commented Mar 18, 2023

@mazedlx what's the best / preferred way to test this in a Laravel 10 application?

Currently I have a Laravel 10 application, with my fork installed and the middleware is added to the middlewareGroups.

A curl -i -I <site url> returns the headers listed below. Locally, on macOS and using Laravel Valet.

Returned headers
HTTP/1.1 200 OK
Server: nginx/1.23.2
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
X-Powered-By: PHP/8.1.13
Cache-Control: no-cache, private
Date: Sat, 18 Mar 2023 14:22:25 GMT
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Referrer-Policy: strict-origin-when-cross-origin
X-Content-Type-Options: nosniff
Permissions-Policy: geolocation=self,fullscreen=self

@mazedlx
Copy link
Owner

mazedlx commented Mar 18, 2023

There are tests in the test folder. You could make use of the Http Fake.

@Treggats
Copy link
Collaborator Author

@mazedlx would you be ok as to create a release? I think it's Laravel 10 ready, but I'd like to try it out in our own application. Which is almost ready to upgrade to Laravel 10

@mazedlx
Copy link
Owner

mazedlx commented Mar 22, 2023

I've just released v2.0

@Treggats
Copy link
Collaborator Author

Closing, as we now have Laravel 10 support.

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

No branches or pull requests

2 participants