@@ -132,7 +132,7 @@ public function testSignedUrlParametersParsedCorrectly()
132
132
public function testExceptedParametersCanBeAddedInAnyOrder ()
133
133
{
134
134
Route::get ('/foo/{id} ' , function (Request $ request , $ id ) {
135
- return $ request ->hasValidSignatureWithExceptions (['one ' , 'two ' , 'three ' ]) ? 'valid ' : 'invalid ' ;
135
+ return $ request ->hasValidSignatureWhileIgnoring (['one ' , 'two ' , 'three ' ]) ? 'valid ' : 'invalid ' ;
136
136
})->name ('foo ' );
137
137
138
138
$ this ->assertIsString ($ url = URL ::signedRoute ('foo ' , ['id ' => 1 ,
@@ -147,7 +147,7 @@ public function testUnusualExceptedParametersWorksAsExpexted()
147
147
{
148
148
$ this ->withoutExceptionHandling ();
149
149
Route::get ('/foo/{id} ' , function (Request $ request , $ id ) {
150
- return $ request ->hasValidSignatureWithExceptions (['' ]) ? 'valid ' : 'invalid ' ;
150
+ return $ request ->hasValidSignatureWhileIgnoring (['' ]) ? 'valid ' : 'invalid ' ;
151
151
})->name ('foo ' );
152
152
153
153
$ this ->assertIsString ($ url = URL ::signedRoute ('foo ' , ['id ' => 1 ,
@@ -157,7 +157,7 @@ public function testUnusualExceptedParametersWorksAsExpexted()
157
157
$ this ->assertSame ('valid ' , $ this ->get ($ url )->original );
158
158
159
159
Route::get ('/foo/{id} ' , function (Request $ request , $ id ) {
160
- return $ request ->hasValidSignatureWithExceptions (['* ' , '[a-z]+ ' ]) ? 'valid ' : 'invalid ' ;
160
+ return $ request ->hasValidSignatureWhileIgnoring (['* ' , '[a-z]+ ' ]) ? 'valid ' : 'invalid ' ;
161
161
})->name ('foo ' );
162
162
163
163
$ this ->assertIsString ($ url = URL ::signedRoute ('foo ' , ['id ' => 1 ,
@@ -170,7 +170,7 @@ public function testUnusualExceptedParametersWorksAsExpexted()
170
170
public function testExceptedParameterCanBeAPrefixOrSuffixOfAnotherParameter ()
171
171
{
172
172
Route::get ('/foo/{id} ' , function (Request $ request , $ id ) {
173
- return $ request ->hasValidSignatureWithExceptions (['pre ' , 'fix ' ]) ? 'valid ' : 'invalid ' ;
173
+ return $ request ->hasValidSignatureWhileIgnoring (['pre ' , 'fix ' ]) ? 'valid ' : 'invalid ' ;
174
174
})->name ('foo ' );
175
175
176
176
$ this ->assertIsString ($ url = URL ::signedRoute ('foo ' , ['id ' => 1 ,
0 commit comments