-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote only not working #5
Comments
Yes, same exception in remote db. |
There's some places where this library/libsql-php just aren't compatible with Laravel, meaning a lot of the base commands like db:wipe, migrate etc don't work. I've opened an issue that should help track it down #6 |
Remote also doesn't work because of a small bug with the libsql crate. I'll be reporting it and the fix will be available soon. |
This issue should be fix by the latest release. |
I have updated to the latest version (^0.1.2), but now I get this error: Here is how my libsql connection looks: If I remove the database, I still get the error of: Undefined array key "database" |
@tyrailleverett Try copy-paste this: 'libsql' => [
'driver' => 'libsql',
'database' => '',
'prefix' => '',
'url' => 'your-turso-database-url',
'password' => 'yout-turso-auth-token',
], See this line And see what happen? |
@darkterminal I get the same error |
Did you use Which OS you used? If you used UNIX like Linux/Darwin, try to reload your |
Here my Laravel Setup Configuration for Remote Only Connection: here my DB_CONNECTION=libsql
DB_HOST=libsql://<your-database-url>.turso.io
DB_PASSWORD=<your-auth-token> at <?php
return [
App\Providers\AppServiceProvider::class,
Libsql\Laravel\LibsqlServiceProvider::class,
]; at ...
'libsql' => [
'driver' => 'libsql',
'url' => env('DB_HOST', ''),
'password' => env('DB_PASSWORD', ''),
'database' => null,
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
'busy_timeout' => null,
'journal_mode' => null,
'synchronous' => null,
],
... And here the result of |
I get the same |
It seems they haven't run any simple database commands, like migration, before the announcement. |
The docs did not mention adding Libsql\Laravel\LibsqlServiceProvider::class to the providers.php file, but I did that since you have it here, but I still get the same results. Sync is not supported in databases opened in Remote mode. My settings are exactly like yours that you have displayed here, but my migrations are not working. Im not sure what I am doing wrong if you are able to get your migrations working. I have done config:clear, cache:clear, all of it. Nothing is working. |
config/database.php file'connections' => [ "libsql" => [ "driver" => env("DB_CONNECTION", "libsql"), "database" => env('DB_PATH','xxxx-yyyzzz.aws-us-east-1.turso.io'), ], .env fileDB_CONNECTION=libsql DB_PATH=xxxx-yyyzzz.aws-us-east-1.turso.io #DB_HOST=127.0.0.1 #DB_PORT=3306 #DB_DATABASE=laravel #DB_USERNAME=root #DB_PASSWORD= Terminal Output |
It looks like @darkterminal is using the To make it work (for now):
|
with both env variables set
The text was updated successfully, but these errors were encountered: