Skip to content

Commit

Permalink
allow pass absolute parameter in has valid signature request macro (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasLeandro1204 authored and taylorotwell committed Nov 6, 2018
1 parent 94a54fc commit b87d53f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public function registerRequestValidation()
*/
public function registerRequestSignatureValidation()
{
Request::macro('hasValidSignature', function () {
return URL::hasValidSignature($this);
Request::macro('hasValidSignature', function ($absolute = true) {
return URL::hasValidSignature($this, $absolute);
});
}
}

1 comment on commit b87d53f

@makowskid
Copy link

@makowskid makowskid commented on b87d53f Nov 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R U 4 real?

Please sign in to comment.