for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanesoft\Tracker\Bases;
use Arcanedev\Support\Bases\Migration as BaseMigration;
/**
* Class Migration
*
* @package Arcanesoft\Tracker\Bases
* @author ARCANEDEV <[email protected]>
*/
abstract class Migration extends BaseMigration
{
/* -----------------------------------------------------------------
| Constructor
| -----------------------------------------------------------------
* Migration constructor.
public function __construct()
$this->setConnection($this->getConfig('database.connection', null));
$this->setPrefix($this->getConfig('database.prefix', 'tracker_'));
}
| Other Methods
* Get a value from config.
* @param string $key
* @param mixed|null $default
* @return mixed
protected function getConfig($key, $default = null)
return config("arcanesoft.tracker.$key", $default);