trait_exists
laravel/octane
Supported Versions: PHP 5 >= 5.4.0, PHP 7, PHP 8
Checks if the trait exists
<?php trait_exists
(
string $trait
,
bool $autoload
=
true
):
bool