Amranidev\ScaffoldInterface\Datasystem\Database\DatabaseManager::make PHP Method

make() public static method

New instance based on app's database driver.
public static make ( ) : self
return self
    public static function make()
    {
        $class = str_replace('DatabaseManager', ucfirst(config('database.default')) . 'Database', self::class);
        try {
            return new self(new $class());
        } catch (\Exception $e) {
            return new self(new MysqlDatabase());
        }
    }