Skip to content

Commit

Permalink
remove unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 20, 2019
1 parent 13e4389 commit 3ee0065
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/Http/Middleware/VerifyCsrfToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

class VerifyCsrfToken extends Middleware
{
/**
* Indicates whether the XSRF-TOKEN cookie should be set on the response.
*
* @var bool
*/
protected $addHttpCookie = true;

/**
* The URIs that should be excluded from CSRF verification.
*
Expand Down

3 comments on commit 3ee0065

@yankewei
Copy link

Choose a reason for hiding this comment

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

We are upgrading laravel version to 7, why delete $addHttpCookie and keep $except?

@Rah1x
Copy link

@Rah1x Rah1x commented on 3ee0065 Sep 18, 2020

Choose a reason for hiding this comment

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

Why did you remove it? What was it for anyway?

@GrahamCampbell
Copy link
Member

Choose a reason for hiding this comment

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

It still exists in the parent class. It is just the same. If you want to change it to false, you need to add it back, that's all.

Please sign in to comment.