Warning: require(/var/www/config/broadcasting.php): Failed to open stream: Permission denied in /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php on line 97

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/vendor/laravel/framework/src/Illuminate/Log/LogManager.php on line 637
Failed opening required '/var/www/config/broadcasting.php' (include_path='.:/usr/local/lib/php') (500 Internal Server Error)

Symfony Exception

Error

HTTP 500 Internal Server Error

Failed opening required '/var/www/config/broadcasting.php' (include_path='.:/usr/local/lib/php')

Exception

Error

  1. * @param array $base
  2. * @return array
  3. */
  4. protected function loadConfigurationFile(RepositoryContract $repository, $name, $path, array $base)
  5. {
  6. $config = (fn () => require $path)();
  7. if (isset($base[$name])) {
  8. $config = array_merge($base[$name], $config);
  9. foreach ($this->mergeableOptions($name) as $option) {
  1. * @param array $base
  2. * @return array
  3. */
  4. protected function loadConfigurationFile(RepositoryContract $repository, $name, $path, array $base)
  5. {
  6. $config = (fn () => require $path)();
  7. if (isset($base[$name])) {
  8. $config = array_merge($base[$name], $config);
  9. foreach ($this->mergeableOptions($name) as $option) {
  1. foreach ((new Collection($base))->diffKeys($files) as $name => $config) {
  2. $repository->set($name, $config);
  3. }
  4. foreach ($files as $name => $path) {
  5. $base = $this->loadConfigurationFile($repository, $name, $path, $base);
  6. }
  7. foreach ($base as $name => $config) {
  8. $repository->set($name, $config);
  9. }
  1. // directory and load each one into the repository. This will make all of the
  2. // options available to the developer for use in various parts of this app.
  3. $app->instance('config', $config = new Repository($items));
  4. if (! isset($loadedFromCache)) {
  5. $this->loadConfigurationFiles($app, $config);
  6. }
  7. // Finally, we will set the application's environment based on the configuration
  8. // values that were loaded. We will pass a callback which will be used to get
  9. // the environment in a web context where an "--env" switch is not present.
  1. $this->hasBeenBootstrapped = true;
  2. foreach ($bootstrappers as $bootstrapper) {
  3. $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]);
  4. $this->make($bootstrapper)->bootstrap($this);
  5. $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]);
  6. }
  7. }
  1. * @return void
  2. */
  3. public function bootstrap()
  4. {
  5. if (! $this->app->hasBeenBootstrapped()) {
  6. $this->app->bootstrapWith($this->bootstrappers());
  7. }
  8. }
  9. /**
  10. * Get the route dispatcher callback.
  1. {
  2. $this->app->instance('request', $request);
  3. Facade::clearResolvedInstance('request');
  4. $this->bootstrap();
  5. return (new Pipeline($this->app))
  6. ->send($request)
  7. ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  8. ->then($this->dispatchToRouter());
  1. $this->requestStartedAt = Carbon::now();
  2. try {
  3. $request->enableHttpMethodParameterOverride();
  4. $response = $this->sendRequestThroughRouter($request);
  5. } catch (Throwable $e) {
  6. $this->reportException($e);
  7. $response = $this->renderException($request, $e);
  8. }
  1. */
  2. public function handleRequest(Request $request)
  3. {
  4. $kernel = $this->make(HttpKernelContract::class);
  5. $response = $kernel->handle($request)->send();
  6. $kernel->terminate($request, $response);
  7. }
  8. /**
Application->handleRequest(object(Request)) in /var/www/public/index.php (line 17)
  1. // Register the Composer autoloader...
  2. require __DIR__.'/../vendor/autoload.php';
  3. // Bootstrap Laravel and handle the request...
  4. (require_once __DIR__.'/../bootstrap/app.php')
  5. ->handleRequest(Request::capture());

Stack Trace

Error
Error:
Failed opening required '/var/www/config/broadcasting.php' (include_path='.:/usr/local/lib/php')

  at /var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:97
  at Illuminate\Foundation\Bootstrap\LoadConfiguration->Illuminate\Foundation\Bootstrap\{closure}()
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:97)
  at Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFile(object(Repository), 'broadcasting', '/var/www/config/broadcasting.php', array('view' => array('paths' => array('/var/www/resources/views'), 'compiled' => '/var/www/storage/framework/views'), 'broadcasting' => array('default' => 'redis', 'connections' => array('reverb' => array('driver' => 'reverb', 'key' => null, 'secret' => null, 'app_id' => null, 'options' => array('host' => null, 'port' => 443, 'scheme' => 'https', 'useTLS' => true), 'client_options' => array()), 'pusher' => array('driver' => 'pusher', 'key' => null, 'secret' => null, 'app_id' => null, 'options' => array('cluster' => null, 'host' => 'api-mt1.pusher.com', 'port' => 443, 'scheme' => 'https', 'encrypted' => true, 'useTLS' => true), 'client_options' => array()), 'ably' => array('driver' => 'ably', 'key' => null), 'log' => array('driver' => 'log'), 'null' => array('driver' => 'null'))), 'cors' => array('paths' => array('api/*', 'sanctum/csrf-cookie'), 'allowed_methods' => array('*'), 'allowed_origins' => array('*'), 'allowed_origins_patterns' => array(), 'allowed_headers' => array('*'), 'exposed_headers' => array(), 'max_age' => 0, 'supports_credentials' => false), 'filesystems' => array('default' => 'local', 'disks' => array('local' => array('driver' => 'local', 'root' => '/var/www/storage/app', 'throw' => false, 'report' => false), 'public' => array('driver' => 'local', 'root' => '/var/www/storage/app/public', 'url' => 'http://37.252.14.28/storage', 'visibility' => 'public', 'throw' => false, 'report' => false), 's3' => array('driver' => 's3', 'key' => '', 'secret' => '', 'region' => 'us-east-1', 'bucket' => '', 'url' => null, 'endpoint' => null, 'use_path_style_endpoint' => false, 'throw' => false, 'report' => false)), 'links' => array('/var/www/public/storage' => '/var/www/storage/app/public')), 'hashing' => array('driver' => 'bcrypt', 'bcrypt' => array('rounds' => '12', 'verify' => true), 'argon' => array('memory' => 65536, 'threads' => 1, 'time' => 4, 'verify' => true), 'rehash_on_login' => true), 'session' => array('driver' => 'database', 'lifetime' => 10080, 'expire_on_close' => false, 'encrypt' => false, 'files' => '/var/www/storage/framework/sessions', 'connection' => null, 'table' => 'sessions', 'store' => null, 'lottery' => array(2, 100), 'cookie' => 'testpay_session', 'path' => '/', 'domain' => '37.252.14.28', 'secure' => false, 'http_only' => true, 'same_site' => 'lax', 'partitioned' => false), 'database' => array('default' => 'mysql', 'connections' => array('sqlite' => array('driver' => 'sqlite', 'url' => null, 'database' => 'paradox', 'prefix' => '', 'foreign_key_constraints' => true, 'busy_timeout' => null, 'journal_mode' => null, 'synchronous' => null), 'mysql' => array('driver' => 'mysql', 'url' => null, 'host' => 'db', 'port' => '3306', 'database' => 'paradox', 'username' => 'paradox', 'password' => 'paradox', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, 'engine' => null, 'options' => array()), 'mariadb' => array('driver' => 'mariadb', 'url' => null, 'host' => 'db', 'port' => '3306', 'database' => 'paradox', 'username' => 'paradox', 'password' => 'paradox', 'unix_socket' => '', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, 'engine' => null, 'options' => array()), 'pgsql' => array('driver' => 'pgsql', 'url' => null, 'host' => 'db', 'port' => '3306', 'database' => 'paradox', 'username' => 'paradox', 'password' => 'paradox', 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, 'search_path' => 'public', 'sslmode' => 'prefer'), 'sqlsrv' => array('driver' => 'sqlsrv', 'url' => null, 'host' => 'db', 'port' => '3306', 'database' => 'paradox', 'username' => 'paradox', 'password' => 'paradox', 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true)), 'migrations' => array('table' => 'migrations', 'update_date_on_publish' => true), 'redis' => array('client' => 'predis', 'options' => array('cluster' => 'redis', 'prefix' => 'testpay_database_', 'persistent' => false), 'default' => array('url' => null, 'host' => 'redis', 'username' => null, 'password' => '', 'port' => '6379', 'database' => '0'), 'cache' => array('url' => null, 'host' => 'redis', 'username' => null, 'password' => '', 'port' => '6379', 'database' => '1'))), 'logging' => array('default' => 'stack', 'deprecations' => array('channel' => null, 'trace' => false), 'channels' => array('stack' => array('driver' => 'stack', 'channels' => array('daily'), 'ignore_exceptions' => false), 'single' => array('driver' => 'single', 'path' => '/var/www/storage/logs/laravel.log', 'level' => 'debug', 'replace_placeholders' => true), 'daily' => array('driver' => 'daily', 'path' => '/var/www/storage/logs/laravel.log', 'level' => 'debug', 'days' => 14, 'replace_placeholders' => true), 'slack' => array('driver' => 'slack', 'url' => null, 'username' => 'Laravel Log', 'emoji' => ':boom:', 'level' => 'debug', 'replace_placeholders' => true), 'papertrail' => array('driver' => 'monolog', 'level' => 'debug', 'handler' => 'Monolog\\Handler\\SyslogUdpHandler', 'handler_with' => array('host' => null, 'port' => null, 'connectionString' => 'tls://:'), 'processors' => array('Monolog\\Processor\\PsrLogMessageProcessor')), 'stderr' => array('driver' => 'monolog', 'level' => 'debug', 'handler' => 'Monolog\\Handler\\StreamHandler', 'formatter' => null, 'with' => array('stream' => 'php://stderr'), 'processors' => array('Monolog\\Processor\\PsrLogMessageProcessor')), 'syslog' => array('driver' => 'syslog', 'level' => 'debug', 'facility' => 8, 'replace_placeholders' => true), 'errorlog' => array('driver' => 'errorlog', 'level' => 'debug', 'replace_placeholders' => true), 'null' => array('driver' => 'monolog', 'handler' => 'Monolog\\Handler\\NullHandler'), 'emergency' => array('path' => '/var/www/storage/logs/laravel.log'))), 'queue' => array('default' => 'redis', 'connections' => array('sync' => array('driver' => 'sync'), 'database' => array('driver' => 'database', 'connection' => null, 'table' => 'jobs', 'queue' => 'default', 'retry_after' => 90, 'after_commit' => false), 'beanstalkd' => array('driver' => 'beanstalkd', 'host' => 'localhost', 'queue' => 'default', 'retry_after' => 90, 'block_for' => 0, 'after_commit' => false), 'sqs' => array('driver' => 'sqs', 'key' => '', 'secret' => '', 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id', 'queue' => 'default', 'suffix' => null, 'region' => 'us-east-1', 'after_commit' => false), 'redis' => array('driver' => 'redis', 'connection' => 'default', 'queue' => 'default', 'retry_after' => 90, 'block_for' => null, 'after_commit' => false)), 'batching' => array('database' => 'mysql', 'table' => 'job_batches'), 'failed' => array('driver' => 'database-uuids', 'database' => 'mysql', 'table' => 'failed_jobs')), 'mail' => array('default' => 'log', 'mailers' => array('smtp' => array('transport' => 'smtp', 'scheme' => null, 'url' => null, 'host' => '127.0.0.1', 'port' => '2525', 'username' => null, 'password' => null, 'timeout' => null, 'local_domain' => '37.252.14.28'), 'ses' => array('transport' => 'ses'), 'postmark' => array('transport' => 'postmark'), 'resend' => array('transport' => 'resend'), 'sendmail' => array('transport' => 'sendmail', 'path' => '/usr/sbin/sendmail -bs -i'), 'log' => array('transport' => 'log', 'channel' => null), 'array' => array('transport' => 'array'), 'failover' => array('transport' => 'failover', 'mailers' => array('smtp', 'log')), 'roundrobin' => array('transport' => 'roundrobin', 'mailers' => array('ses', 'postmark'))), 'from' => array('address' => 'hello@example.com', 'name' => 'TestPay'), 'markdown' => array('theme' => 'default', 'paths' => array('/var/www/resources/views/vendor/mail'))), 'concurrency' => array('default' => 'process'), 'cache' => array('default' => 'redis', 'stores' => array('array' => array('driver' => 'array', 'serialize' => false), 'database' => array('driver' => 'database', 'connection' => null, 'table' => 'cache', 'lock_connection' => null, 'lock_table' => null), 'file' => array('driver' => 'file', 'path' => '/var/www/storage/framework/cache/data', 'lock_path' => '/var/www/storage/framework/cache/data'), 'memcached' => array('driver' => 'memcached', 'persistent_id' => null, 'sasl' => array(null, null), 'options' => array(), 'servers' => array(array('host' => 'memcached', 'port' => 11211, 'weight' => 100))), 'redis' => array('driver' => 'redis', 'connection' => 'cache', 'lock_connection' => 'default'), 'dynamodb' => array('driver' => 'dynamodb', 'key' => '', 'secret' => '', 'region' => 'us-east-1', 'table' => 'cache', 'endpoint' => null), 'octane' => array('driver' => 'octane')), 'prefix' => ''), 'services' => array('postmark' => array('token' => null), 'ses' => array('key' => '', 'secret' => '', 'region' => 'us-east-1'), 'resend' => array('key' => null), 'slack' => array('notifications' => array('bot_user_oauth_token' => null, 'channel' => null)))))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:78)
  at Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles(object(Application), object(Repository))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:39)
  at Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap(object(Application))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:342)
  at Illuminate\Foundation\Application->bootstrapWith(array('Illuminate\\Foundation\\Bootstrap\\LoadEnvironmentVariables', 'Illuminate\\Foundation\\Bootstrap\\LoadConfiguration', 'Illuminate\\Foundation\\Bootstrap\\HandleExceptions', 'Illuminate\\Foundation\\Bootstrap\\RegisterFacades', 'Illuminate\\Foundation\\Bootstrap\\RegisterProviders', 'Illuminate\\Foundation\\Bootstrap\\BootProviders'))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:187)
  at Illuminate\Foundation\Http\Kernel->bootstrap()
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:171)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:145)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (/var/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1220)
  at Illuminate\Foundation\Application->handleRequest(object(Request))
     (/var/www/public/index.php:17)