ErrorException copy(C:\laragon\www\himochibear\database/seeders/IndoRegionDistrictSeeder.php): 无法打开流: 没有那个文件目录

时间:2021-03-21 16:52:32

标签: php laravel migration laragon

enter image description here

错误异常 copy(C:\laragon\www\himochibear\database/seeders/IndoRegionDistrictSeeder.php): 无法打开流:没有那个文件目录

<块引用>

function compareList(){ var s= SpreadsheetApp.openById('My sheet ID'); var ss = s.getSheetByName("Compare"); var oldsubs = ss.getRange(5,1,ss.getLastRow(),1).getValues(); var newsubs = ss.getRange(5,2,ss.getLastRow(),1).getValues(); var array = newsubs.filter(function(e) {return oldsubs.filter(function(f) {return f[0] == e[0]}).length == 0}); Logger.log(array.length)

<块引用>

我在 public function copy ($path, $target) { return copy($path, $target); } 中发现错误

1 个答案:

答案 0 :(得分:-1)

  1. 作曲家需要 azishapidin/indoregion

  2. php artisan indoregion:publish

  3. 在数据库文件夹中创建一个文件夹“seeders”。稍后将有 2 个文件夹可见;种子和播种机(新文件夹)。

  4. 作曲家转储自动加载

  5. 将播种机中的文件复制到种子

  6. php artisan db:seed --class=IndoRegionSeeder

  7. 如果数字5有错误,请一一输入:

    php artisan db:seed --class=IndoRegionProvinceSeeder

    php artisan db:seed --class=IndoRegionRegencySeeder

    php artisan db:seed --class=IndoRegionDistrictSeeder

    php artisan db:seed --class=IndoRegionVillageSeeder