forward_static_call
laravel/framework
Supported Versions: PHP 5 >= 5.3.0, PHP 7, PHP 8
Call a static method
forward_static_call
(callable
$callback
,
mixed
...
$args
):
mixed
$method
=
'boot'
.
class_basename
(
$trait
);
if (
method_exists
(
$class
,
$method
) && !
in_array
(
$method
,
$booted
)) {
forward_static_call
([
$class
,
$method
]);
$booted
[] =
$method
;
}
src/Illuminate/Database/Eloquent/Model.php