fix: resolve deprecation warnings across the application
This commit is contained in:
1 parent
f65f1ae817
commit
50ea3bd667
3 files changed
+3
-3
No files matched your search
@@ -94,7 +94,7 @@ class ClientController extends Controller
|
||||
*/
|
||||
private function isBrowserAccess(Request $request): bool
|
||||
{
|
||||
$userAgent = strtolower($request->input('flag', $request->header('User-Agent')));
|
||||
$userAgent = strtolower($request->input('flag', $request->header('User-Agent', '')));
|
||||
return str_contains($userAgent, 'mozilla')
|
||||
|| str_contains($userAgent, 'chrome')
|
||||
|| str_contains($userAgent, 'safari')
|
||||
|
||||
Reference in new issue
Block a user