HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
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();
    }

}