カスタムメイドのパッケージを実行するためのコンソール(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
}
}
これを試してみてください、私はこれが助ける、あるいは全くできますかわからないが、あなたは '作曲install'または'作曲update'を実行できますか?このエラーは、パッケージが見つからないことが原因で発生しました –
試してみました - うまくいきませんでした。 –
これでgithubから直接ダウンロードし、 'vendor/laravel/framework/src/illuminate/Contracts/Queue'ディレクトリに置く必要があります。https://github.com/illuminate/contracts/からダウンロードできます。 tree/master/Queue –