Skip to content
  • Sponsor spatie/laravel-honeypot

  • Notifications You must be signed in to change notification settings
  • Fork 102

Commit cb9ec31

Browse files
committedMar 2, 2020
wip
1 parent 914299d commit cb9ec31

6 files changed

+17
-20
lines changed
 

‎.github/workflows/tests.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
1212
php: [7.4]
13-
laravel: [5.8.*, 6.*, 7.*]
13+
laravel: [7.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
1616
- laravel: 7.*
1717
testbench: 5.*
18-
- laravel: 6.*
19-
testbench: 4.*
20-
- laravel: 5.8.*
21-
testbench: 3.8.*
2218

2319
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
2420

‎CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-honeypot` will be documented in this file
44

5+
## 2.1.0 - 2020-03-02
6+
7+
- drop support for anything below Laravel 6
8+
59
## 2.0.0 - 2020-03-02
610

711
- block all requests without honeypot fields

‎composer.json

+9-8
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@
1717
],
1818
"require": {
1919
"php": "^7.2",
20-
"illuminate/contracts": "5.8.*|^6.0|^7.0",
21-
"illuminate/encryption": "5.8.*|^6.0|^7.0",
22-
"illuminate/http": "5.8.*|^6.0|^7.0",
23-
"illuminate/support": "5.8.*|^6.0|^7.0",
24-
"illuminate/validation": "5.8.*|^6.0|^7.0",
25-
"nesbot/carbon": "^2.0"
20+
"illuminate/contracts": "^7.0",
21+
"illuminate/encryption": "^7.0",
22+
"illuminate/http": "^7.0",
23+
"illuminate/support": "^7.0",
24+
"illuminate/validation": "^7.0",
25+
"laravel/framework": "^7.0",
26+
"nesbot/carbon": "^2.0",
27+
"orchestra/testbench": "^5.0"
2628
},
2729
"require-dev": {
28-
"orchestra/testbench": "3.8.*|^4.0|^5.0",
29-
"spatie/phpunit-snapshot-assertions": "^2.0"
30+
"spatie/phpunit-snapshot-assertions": "^3.0"
3031
},
3132
"autoload": {
3233
"psr-4": {

‎tests/ProtectAgainstSpamTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace Spatie\Honeypot\Tests;
44

5-
use Illuminate\Foundation\Testing\TestResponse;
65
use Illuminate\Support\Facades\Route;
76
use Illuminate\Support\Str;
7+
use Illuminate\Testing\TestResponse;
88
use Spatie\Honeypot\EncryptedTime;
99
use Spatie\Honeypot\ProtectAgainstSpam;
1010

‎tests/__snapshots__/HoneypotBladeDirectiveTest__the_honeypot_blade_directive_renders_correctly__1.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<?php
2-
3-
return '<form method="POST">
1+
<?php return '<form method="POST">
42
<div id="my_name_wrap" style="display:none;">
53
<input name="my_name" type="text" value="" id="my_name">
64
<input name="valid_from" type="text" value="1546300801-encrypted">

‎tests/__snapshots__/HoneypotBladeDirectiveTest__the_honeypot_blade_directive_renders_correctly_when_using_CarbonImmutable__1.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
<?php
2-
3-
return '<form method="POST">
1+
<?php return '<form method="POST">
42
<div id="my_name_wrap" style="display:none;">
53
<input name="my_name" type="text" value="" id="my_name">
64
<input name="valid_from" type="text" value="1546300801-encrypted">

0 commit comments

Comments
 (0)
Please sign in to comment.