SuggestionApi.php 599 B

1234567891011121314151617
  1. <?php
  2. namespace App\Http\Api;
  3. use App\Models\SentPr;
  4. use App\Http\Api\PaliTextApi;
  5. class SuggestionApi{
  6. public static function getCountBySent($book,$para,$start,$end,$channel,$type="suggestion"){
  7. $count['suggestion'] = SentPr::where('book_id',$book)
  8. ->where('paragraph',$para)
  9. ->where('word_start',$start)
  10. ->where('word_end',$end)
  11. ->where('channel_uid',$channel)
  12. ->count();
  13. return $count;
  14. }
  15. }