Training.php 403 B

1234567891011121314151617181920
  1. <?php
  2. namespace App\Models;
  3. use Illuminate\Database\Eloquent\Model;
  4. class Training extends Game
  5. {
  6. protected static $singleTableType = 'training';
  7. public function get_single_table_type()
  8. {
  9. return self::$singleTableType;
  10. }
  11. public function sentences()
  12. {
  13. return $this->belongsToMany('App\Models\Sentence', 'game_sentence', 'game_id');
  14. }
  15. }