Skip to content

Commit

Permalink
Merge pull request #38 from hemal-digiflux/patch-2
Browse files Browse the repository at this point in the history
Update routes.php
  • Loading branch information
Kryptonit3 authored Aug 21, 2020
2 parents 1a0bcf2 + 434861d commit 62057d3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/routes.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<?php

Route::group(['middleware' => ['web']], function () {
if (Cookie::get(env('COUNTER_COOKIE', 'kryptonit3-counter')) == false) {
Cookie::queue(env('COUNTER_COOKIE', 'kryptonit3-counter'), str_random(80), 2628000); // Forever aka 5 years
Cookie::queue(env('COUNTER_COOKIE', 'kryptonit3-counter'), str_random(80), env('COUNTER_COOKIE_EXPIRATION', 2628000)); // Configurable from ENV
}
});

0 comments on commit 62057d3

Please sign in to comment.