Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 传递的参数1必须是提供程序存储库中模型的实例_Php_Laravel - Fatal编程技术网

Php 传递的参数1必须是提供程序存储库中模型的实例

Php 传递的参数1必须是提供程序存储库中模型的实例,php,laravel,Php,Laravel,我和项目团队一起工作,我的工作很好,但我不得不改变我的操作系统。 克隆后,我必须更新它给我的作曲家 Argument 1 passed to Jsdecena\Baserepo\BaseRepository::__construct() must b e an instance of Illuminate\Database\Eloquent\Model, instance of Illuminate \Foundation\Application given, called in

我和项目团队一起工作,我的工作很好,但我不得不改变我的操作系统。 克隆后,我必须更新它给我的作曲家

Argument 1 passed to Jsdecena\Baserepo\BaseRepository::__construct() must b  
  e an instance of Illuminate\Database\Eloquent\Model, instance of Illuminate  
  \Foundation\Application given, called in /home/amr/.composer/vendor/laravel  
  /installer/onlinestore/vendor/laravel/framework/src/Illuminate/Foundation/P  
  roviderRepository.php on line 208   
它和我的同事相处得很好
我希望有人能帮我做这件事

我重新克隆了存储库并安装了composer,而不是更新它,它工作得很好

只需将软件包版本精确地降级为“1.0”,而不是使用最新版本,即1.0.6“^1.0”

github中的问题:

"jsdecena/baserepo": "1.0",
"jsdecena/mcpro": "1.1",