2017-07-27 16 views
1

カスタムメイドのパッケージを実行するためのコンソール(Artisan)コマンドを作成しています。パッケージとその機能のすべてのインポートがうまく働いているが、私は次のエラーがポップアップしなくても、任意の雄弁なモデルを問い合わせるように見えることはできません。ここでLaravel: 'Illuminate Contracts Queue QueueableCollection'インターフェイスが見つかりません

[Symfony\Component\Debug\Exception\FatalErrorException] 
Interface 'Illuminate\Contracts\Queue\QueueableCollection' not found 

は私のコードです...

<?php 

namespace App\Console\Commands; 
use Illuminate\Console\Command; 
use App\Property; 
use Sync; 

class SyncTool extends Command { 

    /** 
    * The name and signature of the console command. 
    * 
    * @var string 
    */ 
    protected $signature = 'sync:all'; 

    /** 
    * The console command description. 
    * 
    * @var string 
    */ 
    protected $description = 'Description'; 

    /** 
    * Create a new command instance. 
    * 
    * @return void 
    */ 
    public function __construct() 
    { 
     parent::__construct(); 
    } 

    /** 
    * Execute the console command. 
    * 
    * @return mixed 
    */ 
    public function handle() 
    { 
     $credentials = [ 
      ... 
     ]; 

     $sync = new Sync($credentials); 

     $properties = Property::all(); // this throws the error 

    } 


} 
+1

これを試してみてください、私はこれが助ける、あるいは全くできますかわからないが、あなたは '作曲install'または'作曲update'を実行できますか?このエラーは、パッケージが見つからないことが原因で発生しました –

+0

試してみました - うまくいきませんでした。 –

+0

これでgithubから直接ダウンロードし、 'vendor/laravel/framework/src/illuminate/Contracts/Queue'ディレクトリに置く必要があります。https://github.com/illuminate/contracts/からダウンロードできます。 tree/master/Queue –

答えて

0
Step 1 : Remove full vendor folder 
Step 2: delete /bootstrap/cache/services.php, /bootstrap/cache/compiled.php 
Step 3 : Run from your terminal composer install 

+0

それはそれを修正するようだ!ありがとう、トン! –

+0

あなたが大歓迎です、それが助けられたら答えとして受け入れることを忘れないでください – Exprator

関連する問題