File "RemoveableScoutCollection.php"
Full Path: /var/www/drive/laravel/scout/src/Jobs/RemoveableScoutCollection.php
File size: 572 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Laravel\Scout\Jobs;
use Illuminate\Database\Eloquent\Collection;
use Laravel\Scout\Searchable;
class RemoveableScoutCollection extends Collection
{
/**
* Get the Scout identifiers for all of the entities.
*
* @return array
*/
public function getQueueableIds()
{
if ($this->isEmpty()) {
return [];
}
return in_array(Searchable::class, class_uses_recursive($this->first()))
? $this->map->getScoutKey()->all()
: parent::getQueueableIds();
}
}