📜  laravel 获取类名 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:41.143000             🧑  作者: Mango

代码示例1
$myObject = $em->find(ContactRelation::class, $userId);
echo get_class($myObject);
// Some\Name\Space\Domain\Identity\ContactRelation