Skip to content

Commit

Permalink
update file App.php
Browse files Browse the repository at this point in the history
  • Loading branch information
juancristobalgd1 authored Mar 14, 2024
1 parent 11c30a1 commit 342b874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public function __construct()
{
$this->loadEnv();
$this->configureEnvironment();
$this->setApp();
$this->registerComponents();
$this->setApp();
$this->bootServices();
}

Expand Down Expand Up @@ -206,7 +206,7 @@ private function generateTokens(): string
public function setCsrfCookie(string $csrfToken): void
{
$expiration = config('session.expiration');
setcookie('csrfToken', $csrfToken, time() + 60 * $expiration);
setcookie('csrfToken', $csrfToken, (int) time() + 60 * $expiration);
}

/**
Expand Down

0 comments on commit 342b874

Please sign in to comment.