Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Clean (erase) the output buffer and turn off output buffering
ob_end_clean(): bool
        include __DIR__."/../../resources/views/components/$view.php";



        return 
tap(ob_get_contents(), function () {

            
ob_end_clean();

        });

    }
        $this->sendContent();



        
ob_end_clean();



        return 
$this->streamedContent;

    }
    protected function handleViewException(Throwable $e$obLevel)

    {

        while (
ob_get_level() > $obLevel) {

            
ob_end_clean();

        }



        throw 
$e;
        ob_start();

        eval(
Str::of($this->compiler->compileString($blade))->remove(['<?php''?>']));

        
$output ob_get_contents();

        
ob_end_clean();



        
$this->assertSame($expectedOutput$output);

    }