Skip to content

Error: Class "LibSQL" not found #8

Description

@77EnderGuy77

Description
When I go trough Self-host on a php artisan key:generate I get error
Class "LibSQL" not found at vendor\tursodatabase\turso-driver-laravel\src\Database\LibSQLDatabase.php:28

Expected Behavior:
Should be generated php key

Actual Behavior

Error

  Class "LibSQL" not found

  at vendor\tursodatabase\turso-driver-laravel\src\Database\LibSQLDatabase.php:28
     24▕
     25▕         if ($this->connection_mode === 'local') {
     26▕
     27▕             $url = \str_replace('file:', '', database_path($config['url']));
  ➜  28▕             $this->db = new LibSQL("file:$url", LibSQL::OPEN_READWRITE | LibSQL::OPEN_CREATE, $config['encryptionKey']);
     29▕
     30▕         } elseif ($this->connection_mode === 'memory') {
     31▕
     32▕             $this->db = new LibSQL($libsql['uri']);

  1   vendor\tursodatabase\turso-driver-laravel\src\Database\LibSQLConnectionFactory.php:13
      Turso\Driver\Laravel\Database\LibSQLDatabase::__construct()

  2   vendor\laravel\framework\src\Illuminate\Database\Connectors\ConnectionFactory.php:76
      Turso\Driver\Laravel\Database\LibSQLConnectionFactory::createConnection("sqlite", Object(Closure), "D:\openalbion\database\database.sqlite", "")

Steps to Reproduce
git clone https://github.com/OpenAlbion/api.git openalbion
cd openalbion
composer install
cp .env.example .env
php artisan key:generate

OS: Windows 10 Pro

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions