File: D:/HostingSpaces/SBogers10/wingssprayer.komma.pro/app/Questions/QuestionService.php
<?php
namespace App\Questions;
use App\Base\Service;
use App\Questions\Models\Question;
use App\Routes\Models\Route;
use Komma\KMS\Core\AbstractTranslatableModel;
final class QuestionService extends Service
{
private function baseQuery()
{
return Question::where('active', 1)
->where('lft', '!=', 1)
->with('translation')
->has('translation');
}
public function getAllQuestions()
{
return $this->baseQuery()->get();
}
public function getShortlistQuestions()
{
return $this->baseQuery()
->where('in_shortlist', 1)
->get();
}
}