Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AccountRepository.php
<?php
namespace App\Repositories;
use App\Models\Account;
class AccountRepository extends BaseRepository
{
/**
* @var array
*/
protected $fieldSearchable = [
'name',
'type',
'description',
'status',
];
/**
* Return searchable fields
* @return array
*/
public function getFieldsSearchable()
{
return $this->fieldSearchable;
}
/**
* Configure the Model
**/
public function model()
{
return Account::class;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment