Answers for "get model name laravel"

PHP
1

get table name from model laravel

$item = new Item;
$table = $item->getTable();
print_r($table);
Posted by: Guest on October-11-2020
1

laravel get class name

$myObject = $em->find(ContactRelation::class, $userId);
echo get_class($myObject);
// Some\Name\Space\Domain\Identity\ContactRelation
Posted by: Guest on October-28-2020

Code answers related to "get model name laravel"

Browse Popular Code Answers by Language