Skip to content

Instantly share code, notes, and snippets.

@Harti
Harti / Searchable
Last active March 13, 2020 21:24
Overriding trait for laravel/scout's Searchable trait, to hide unpublished instances from the search
<?php
namespace App\Models\Traits;
use Illuminate\Support\Collection;
trait Searchable
{
use \Laravel\Scout\Searchable;
package de.rbitech.apps.forestmanager.sqlite2excel;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;