'paths' => ['api/*', 'sanctum/csrf-cookie'], 'allowed_methods' => ['*'], 'allowed_origins' => ['*'], 'allowed_origins_patterns' => [], 'allowed_headers' => ['*'], 'exposed_headers' => [], 'max_age' => 0, 'supports_credentials' => true,
protected function loadConfigurationFile(RepositoryContract $repository, $name, $path, array $base) { $config = require $path; if (isset($base[$name])) { $config = array_merge($base[$name], $config); foreach ($this->mergeableOptions($name) as $option) { if (isset($config[$option])) { $config[$option] = array_merge($base[$name][$option], $config[$option]); } protected function loadConfigurationFile(RepositoryContract $repository, $name, $path, array $base) { $config = require $path; if (isset($base[$name])) { $config = array_merge($base[$name], $config); foreach ($this->mergeableOptions($name) as $option) { if (isset($config[$option])) { $config[$option] = array_merge($base[$name][$option], $config[$option]); } foreach (array_diff(array_keys($base), array_keys($files)) as $name => $config) { $repository->set($name, $config); } foreach ($files as $name => $path) { $base = $this->loadConfigurationFile($repository, $name, $path, $base); } foreach ($base as $name => $config) { $repository->set($name, $config); } // directory and load each one into the repository. This will make all of the // options available to the developer for use in various parts of this app. $app->instance('config', $config = new Repository($items)); if (! isset($loadedFromCache)) { $this->loadConfigurationFiles($app, $config); } // Finally, we will set the application's environment based on the configuration // values that were loaded. We will pass a callback which will be used to get // the environment in a web context where an "--env" switch is not present. $this->hasBeenBootstrapped = true; foreach ($bootstrappers as $bootstrapper) { $this['events']->dispatch('bootstrapping: '.$bootstrapper, [$this]); $this->make($bootstrapper)->bootstrap($this); $this['events']->dispatch('bootstrapped: '.$bootstrapper, [$this]); } } * @return void */ public function bootstrap() { if (! $this->app->hasBeenBootstrapped()) { $this->app->bootstrapWith($this->bootstrappers()); } } /** * Get the route dispatcher callback. { $this->app->instance('request', $request); Facade::clearResolvedInstance('request'); $this->bootstrap(); return (new Pipeline($this->app)) ->send($request) ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware) ->then($this->dispatchToRouter()); $this->requestStartedAt = Carbon::now(); try { $request->enableHttpMethodParameterOverride(); $response = $this->sendRequestThroughRouter($request); } catch (Throwable $e) { $this->reportException($e); $response = $this->renderException($request, $e); } */ public function handleRequest(Request $request) { $kernel = $this->make(HttpKernelContract::class); $response = $kernel->handle($request)->send(); $kernel->terminate($request, $response); } /**// Register the Composer autoloader...require __DIR__.'/../vendor/autoload.php';// Bootstrap Laravel and handle the request...(require_once __DIR__.'/../bootstrap/app.php') ->handleRequest(Request::capture());|
TypeError
|
|---|
TypeError:
array_merge(): Argument #2 must be of type array, int given
at /home/ccs/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:99
at array_merge(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), 1)
(/home/ccs/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:99)
at Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFile(object(Repository), 'cors', '/home/ccs/public_html/config/cors.php', array('view' => array('paths' => array('/home/ccs/public_html/resources/views'), 'compiled' => '/home/ccs/public_html/storage/framework/views'), 'session' => array('driver' => 'file', 'lifetime' => '120', 'expire_on_close' => false, 'encrypt' => true, 'files' => '/home/ccs/public_html/storage/framework/sessions', 'connection' => null, 'table' => 'sessions', 'store' => null, 'lottery' => array(2, 100), 'cookie' => 'ccs_session', 'path' => '/', 'domain' => '.ccs.atypicweb.com', 'secure' => true, 'http_only' => true, 'same_site' => 'lax', 'partitioned' => false), '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))), 'hashing' => array('driver' => 'bcrypt', 'bcrypt' => array('rounds' => '12', 'verify' => true), 'argon' => array('memory' => 65536, 'threads' => 1, 'time' => 4, 'verify' => true), 'rehash_on_login' => true), 'database' => array('default' => 'mysql', 'connections' => array('sqlite' => array('driver' => 'sqlite', 'url' => null, 'database' => 'ccs_db', 'prefix' => '', 'foreign_key_constraints' => true), 'mysql' => array('driver' => 'mysql', 'url' => null, 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'ccs_db', 'username' => 'ccs_user', 'password' => '!DDo', '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' => '127.0.0.1', 'port' => '3306', 'database' => 'ccs_db', 'username' => 'ccs_user', 'password' => '!DDo', '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' => '127.0.0.1', 'port' => '3306', 'database' => 'ccs_db', 'username' => 'ccs_user', 'password' => '!DDo', 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, 'search_path' => 'public', 'sslmode' => 'prefer'), 'sqlsrv' => array('driver' => 'sqlsrv', 'url' => null, 'host' => '127.0.0.1', 'port' => '3306', 'database' => 'ccs_db', 'username' => 'ccs_user', 'password' => '!DDo', 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true)), 'migrations' => array('table' => 'migrations', 'update_date_on_publish' => true), 'redis' => array('client' => 'phpredis', 'options' => array('cluster' => 'redis', 'prefix' => 'ccs_database_'), 'default' => array('url' => null, 'host' => '127.0.0.1', 'username' => null, 'password' => null, 'port' => '6379', 'database' => '0'), 'cache' => array('url' => null, 'host' => '127.0.0.1', 'username' => null, 'password' => null, 'port' => '6379', 'database' => '1'))), '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), 'broadcasting' => array('default' => 'log', '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'))), 'mail' => array('default' => 'smtp', 'mailers' => array('smtp' => array('transport' => 'smtp', 'url' => null, 'host' => 'smtp.sendgrid.net', 'port' => '587', 'encryption' => 'tls', 'username' => 'apikey', 'password' => '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', 'timeout' => null, 'local_domain' => null), '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' => 'ccs@atypicweb.com', 'name' => 'CCS'), 'markdown' => array('theme' => 'default', 'paths' => array('/home/ccs/public_html/resources/views/vendor/mail'))), 'queue' => array('default' => 'database', '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')), 'filesystems' => array('default' => 'local', 'disks' => array('local' => array('driver' => 'local', 'root' => '/home/ccs/public_html/storage/app', 'throw' => false), 'public' => array('driver' => 'local', 'root' => '/home/ccs/public_html/storage/app/public', 'url' => 'https://ccs.atypicweb.com/storage', 'visibility' => 'public', 'throw' => false), 's3' => array('driver' => 's3', 'key' => '', 'secret' => '', 'region' => 'us-east-1', 'bucket' => '', 'url' => null, 'endpoint' => null, 'use_path_style_endpoint' => false, 'throw' => false)), 'links' => array('/home/ccs/public_html/public/storage' => '/home/ccs/public_html/storage/app/public')), 'logging' => array('default' => 'stack', 'deprecations' => array('channel' => null, 'trace' => false), 'channels' => array('stack' => array('driver' => 'stack', 'channels' => array('single'), 'ignore_exceptions' => false), 'single' => array('driver' => 'single', 'path' => '/home/ccs/public_html/storage/logs/laravel.log', 'level' => 'debug', 'replace_placeholders' => true), 'daily' => array('driver' => 'daily', 'path' => '/home/ccs/public_html/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' => '/home/ccs/public_html/storage/logs/laravel.log')))))
(/home/ccs/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:77)
at Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles(object(Application), object(Repository))
(/home/ccs/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:38)
at Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap(object(Application))
(/home/ccs/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:316)
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'))
(/home/ccs/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:186)
at Illuminate\Foundation\Http\Kernel->bootstrap()
(/home/ccs/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170)
at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
(/home/ccs/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:144)
at Illuminate\Foundation\Http\Kernel->handle(object(Request))
(/home/ccs/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:1183)
at Illuminate\Foundation\Application->handleRequest(object(Request))
(/home/ccs/public_html/public/index.php:17)
|