Domain\Repositories\BaseRepository::onlyTrashed PHP Method

onlyTrashed() public method

Only trashed.
public onlyTrashed ( )
    public function onlyTrashed()
    {
        if (!in_array(SoftDeletes::class, class_uses($this->model))) {
            throw new RepositoryException("Class {$this->model()} must be an instance of Illuminate\\Database\\Eloquent\\SoftDeletes");
        }
        $this->model = $this->makeModel()->onlyTrashed();
        return $this;
    }