Skip to content

Commit

Permalink
Merge pull request #40 from hemal-digiflux/patch-1
Browse files Browse the repository at this point in the history
Update routes.php
  • Loading branch information
Kryptonit3 authored Aug 27, 2020
2 parents 62057d3 + 3a35ef3 commit aa69e6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/routes.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?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), env('COUNTER_COOKIE_EXPIRATION', 2628000)); // Configurable from ENV
}
});
?>

0 comments on commit aa69e6c

Please sign in to comment.