Вынес конфиг сокетов из env

This commit is contained in:
brusnitsyn
2026-06-03 17:10:33 +09:00
parent 720ca1b39a
commit aa0cd0c449
2 changed files with 31 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
<html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -6,6 +6,15 @@
<title>{{ config('app.name', 'Laravel') }}</title>
<script>
window.reverb = {
key: "{{ env('REVERB_APP_KEY') }}",
host: "{{ env('REVERB_APP_HOST') }}",
port: "{{ env('REVERB_APP_PORT') }}",
scheme: "{{ env('REVERB_APP_SCHEME') }}",
}
</script>
<!-- Styles / Scripts -->
@if (file_exists(public_path('build/manifest.json')) || file_exists(public_path('hot')))
@vite(['resources/js/app.js'])