mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 17:24:10 +00:00
22 lines
434 B
PHP
22 lines
434 B
PHP
<?php
|
|
|
|
namespace App\Support;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
class InstallWizardAuth
|
|
{
|
|
public const HEADER = 'X-Install-Wizard';
|
|
|
|
public const HEADER_VALUE = '1';
|
|
|
|
public const TOKEN_NAME = 'installation-wizard';
|
|
|
|
public const TOKEN_ABILITY = 'installation:wizard';
|
|
|
|
public static function isRequest(Request $request): bool
|
|
{
|
|
return $request->headers->get(self::HEADER) === self::HEADER_VALUE;
|
|
}
|
|
}
|