Skip to content

Instantly share code, notes, and snippets.

@enmanuel97
Created June 2, 2022 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enmanuel97/7b17a22808226d459a5919a77f980c0c to your computer and use it in GitHub Desktop.
Save enmanuel97/7b17a22808226d459a5919a77f980c0c to your computer and use it in GitHub Desktop.
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