46 lines
733 B
PHP
46 lines
733 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Models\Question;
|
|
use App\Repositories\BaseRepository;
|
|
|
|
/**
|
|
* Class QuestionRepository
|
|
* @package App\Repositories
|
|
* @version May 30, 2022, 3:00 pm UTC
|
|
*/
|
|
|
|
class QuestionRepository extends BaseRepository
|
|
{
|
|
/**
|
|
* @var array
|
|
*/
|
|
protected $fieldSearchable = [
|
|
'content_id',
|
|
'question',
|
|
'question_name',
|
|
'image',
|
|
'score',
|
|
'hint'
|
|
];
|
|
|
|
/**
|
|
* Return searchable fields
|
|
*
|
|
* @return array
|
|
*/
|
|
public function getFieldsSearchable()
|
|
{
|
|
return $this->fieldSearchable;
|
|
}
|
|
|
|
/**
|
|
* Configure the Model
|
|
**/
|
|
public function model()
|
|
{
|
|
return Question::class;
|
|
}
|
|
}
|