|
|
@@ -15,4 +15,11 @@ class PaliTextApi{
|
|
|
$end = $para + $chapter->chapter_len -1;
|
|
|
return [$start,$end];
|
|
|
}
|
|
|
+
|
|
|
+ public static function getChapterPath($book,$para){
|
|
|
+ $path = PaliText::where('book',$book)
|
|
|
+ ->where('paragraph',$para)
|
|
|
+ ->value('path');
|
|
|
+ return $path;
|
|
|
+ }
|
|
|
}
|