[英]zend db error on switching tables Catchable fatal error: Argument 1 passed to __construct() must be an array, object given, called in
[英]Catchable fatal error: Argument 1 passed to Illuminate\Config\Repository::__construct() must be of the type array, integer given
我在发出此命令时遇到问题php artisan cache:clear
或php artisan
我收到此错误。
可捕获的致命错误:传递给 Illuminate\\Config\\Repository::__construct() 的参数 1 必须是数组类型,给定整数给定整数,在 /var/www/mysite/vendor/laravel/framework/src/Illuminate/Foundation 中调用第 32 行的 /Bootstrap/LoadConfiguration.php 并在第 24 行的 /var/www/mysite/vendor/laravel/framework/src/Illuminate/Config/Repository.php 中定义
先感谢您。
已解决重命名位于bootstrap/cache/
cache.php
文件。 在此之后,如果仍然无法正常工作,请运行php artisan config:cache
命令。
在 Laravel 5.5 中通过删除bootstrap/cache
文件夹中的config.php
文件然后运行php artisan config:cache
在你的 config/***.php 文件中,第一行必须是
<?php
不是
<?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.