Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Turn on output buffering
ob_start(callable $callback nullint $chunk_size 0int $flags PHP_OUTPUT_HANDLER_STDFLAGS): bool
    {

        
extract($data);



        
ob_start();



        include 
__DIR__."/../../resources/views/components/$view.php";
    protected function generateImage($width$height$extension)

    {

        return 
tap(tmpfile(), function ($temp) use ($width$height$extension) {

            
ob_start();



            
$extension in_array($extension, ['jpeg''png''gif''webp''wbmp''bmp'])

                ? 
strtolower($extension)
            PHPUnit::fail('The response is not a streamed response.');

        }



        
ob_start(function (string $buffer): string {

            
$this->streamedContent .= $buffer;



            return 
'';

        });



        
$this->sendContent();
    public function startComponent($view, array $data = [])

    {

        if (
ob_start()) {

            
$this->componentStack[] = $view;



            
$this->componentData[$this->currentComponent()] = $data;
    {

        if (
func_num_args() === || $content !== null) {

            
$this->slots[$this->currentComponent()][$name] = $content;

        } elseif (
ob_start()) {

            
$this->slots[$this->currentComponent()][$name] = '';



            
$this->slotStack[$this->currentComponent()][] = [$name$attributes];
    public function startSection($section$content null)

    {

        if (
$content === null) {

            if (
ob_start()) {

                
$this->sectionStack[] = $section;

            }

        } else {
    public function startPush($section$content '')

    {

        if (
$content === '') {

            if (
ob_start()) {

                
$this->pushStack[] = $section;

            }

        } else {
    public function startPrepend($section$content '')

    {

        if (
$content === '') {

            if (
ob_start()) {

                
$this->pushStack[] = $section;

            }

        } else {
    public function startTranslation($replacements = [])

    {

        
ob_start();



        
$this->translationReplacements $replacements;

    }
    {

        
$obLevel ob_get_level();



        
ob_start();
        $files = new FilesystemAdapter($this->filesystem$this->adapter);

        
$response $files->response('file.txt');



        
ob_start();

        
$response->sendContent();

        
$content ob_get_clean();
        $template $this->compiler->compileString('@component(\'Test::class\', \'test\', ["foo" => "bar"])');



        
ob_start();

        eval(
" ?> $template <?php endif; ");

        
ob_get_clean();

    }
        $template $this->compiler(['profile' => TestProfileComponent::class])->compileTags('<x-profile {{ $attributes }} />');

        
$template $this->compiler->compileString($template);



        
ob_start();

        eval(
" ?> $template <?php ");

        
ob_get_clean();
            return $this->compiler;

        });



        
ob_start();

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

        
$output ob_get_contents();

        
ob_end_clean();
        $template $this->compiler->compileString('@props([\'test1\' => \'default\', \'test2\', \'test4\' => \'default\'])');



        
ob_start();

        eval(
" ?> $template <?php ");

        
ob_get_clean();