rename
laravel/framework
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Renames a file or directory
rename
(
string $from
,
string $to
, ?
resource $context
=
null
):
bool
file_put_contents
(
$tempPath
,
$content
);
rename
(
$tempPath
,
$path
);
}
src/Illuminate/Filesystem/Filesystem.php
public function
move
(
$path
,
$target
)
{
return
rename
(
$path
,
$target
);
}
src/Illuminate/Filesystem/Filesystem.php
return
false
;
}
return @
rename
(
$from
,
$to
) ===
true
;
}
src/Illuminate/Filesystem/Filesystem.php