]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Middleware/VerifyCsrfToken.php
Add the "Create Shelf" resp. "Create Book" to the home view
[bookstack] / app / Http / Middleware / VerifyCsrfToken.php
index fc5bd2351ee71e1caa15dfac0d997a3e19abb76a..1a29a2b1d121f35f56dfd9e2eeb5611c84c4b42a 100644 (file)
@@ -1,11 +1,18 @@
 <?php
 
-namespace Oxbow\Http\Middleware;
+namespace BookStack\Http\Middleware;
 
-use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
+use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
 
-class VerifyCsrfToken extends BaseVerifier
+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.
      *