ob_end_clean
laravel/framework
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
();
});
}
src/Illuminate/Console/View/Components/Component.php
$this
->
sendContent
();
ob_end_clean
();
return
$this
->
streamedContent
;
}
src/Illuminate/Testing/TestResponse.php
protected function
handleViewException
(
Throwable $e
,
$obLevel
)
{
while (
ob_get_level
() >
$obLevel
) {
ob_end_clean
();
}
throw
$e
;
src/Illuminate/View/Engines/PhpEngine.php
ob_start
();
eval(
Str
::
of
(
$this
->
compiler
->
compileString
(
$blade
))->
remove
([
'<?php'
,
'?>'
]));
$output
=
ob_get_contents
();
ob_end_clean
();
$this
->
assertSame
(
$expectedOutput
,
$output
);
}
tests/View/Blade/BladeEchoHandlerTest.php