Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
gilour
/
laravel
/
scout
/
src
/
Jobs
:
RemoveableScoutCollection.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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(); } }