is_readable
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Tells whether a file exists and is readable
is_readable
(
string $filename
):
bool
public function
isReadable
(
$path
)
{
return
is_readable
(
$path
);
}
src/Illuminate/Filesystem/Filesystem.php
$process
=
Process
::
fromShellCommandline
(
$command
,
null
,
null
,
null
,
null
);
if (
'\\'
!==
DIRECTORY_SEPARATOR
&&
file_exists
(
'/dev/tty'
) &&
is_readable
(
'/dev/tty'
)) {
try {
$process
->
setTty
(
true
);
} catch (
RuntimeException $e
) {
src/Illuminate/Foundation/Console/ShowModelCommand.php