123456789101112131415161718192021222324 |
- <?php
- namespace App\Repositories;
- use App\Models\Training;
- use App\Models\Sentence;
- class TrainingRepository extends GameRepository {
- public function __construct(Training $training)
- {
- $this->game = $training;
- }
-
- protected function get_sentences($user_id)
- {
- return Sentence::join('corpora', 'corpora.id', '=', 'sentences.corpus_id')
- ->select('sentences.*')
- ->where('corpora.is_training', 1)
- ->get();
- }
- }
|