where('paragraph',$para) ->first(); if(!$chapter){ return false; } $start = $para; $end = $para + $chapter->chapter_len -1; return [$start,$end]; } }