get name of the ,model laravel code example
Example 1: get table name from model laravel
$item = new Item;
$table = $item->getTable();
print_r($table);
Example 2: laravel get column field name
// You may need to run
composer require doctrine/dbal
// Retrieve laravel column type
$columnType = DB::getSchemaBuilder()->getColumnType($tableName, $colName)
// for example
$columnType = DB::getSchemaBuilder()->getColumnType('user', 'age')