public function index(Request $request, string $anyVariable){
anyCode...
$secondMethod = $this->secondMethod($request, $anyVariable)
if($secondMethod){
dosomething...
}
}
public function secondMethod(Request $request, string $anyVariable){
anyCode...
return true;
}