Created
June 2, 2022 21:36
-
-
Save enmanuel97/7b17a22808226d459a5919a77f980c0c to your computer and use it in GitHub Desktop.
AccountRepository.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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