get model name laravel code example
Example 1: laravel get class name
$myObject = $em->find(ContactRelation::class, $userId);
echo get_class($myObject);
// Some\Name\Space\Domain\Identity\ContactRelation
Example 2: get table name from model laravel
$item = new Item;
$table = $item->getTable();
print_r($table);