/**
* set database table schema
*
* @param string $table table name
* @param bool $force force
* @return bool
*/
public function setSchemaCache($table, $force = false)
{
$cache = $this->coupler->getCache();
if ($force === true) {
$cache->forget($table);
}
$schema = $this->getConnection('master')->getSchemaBuilder()->getColumnListing($table);
if (count($schema) === 0) {
return false;
}
$cache->put($table, $schema);
return true;
}