mpociot / laravel-firebase-sync

Synchronize your Eloquent models with a Firebase Realtime Database.
http://marcelpociot.com/blog/2016-06-20-synchronise-laravel-eloquent-models-with-firebase
265 stars 70 forks source link

this package doesn't work #20

Open tzs007 opened 6 years ago

tzs007 commented 6 years ago

Hello.

I don't know how could you make it work, but I can't...

Illuminate\Database\QueryException with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'homestead.todos' doesn't exist (SQL: insert into `todos` (`task`, `is_done`, `updated_at`, `created_at`) values (MUKODJ, 0, 2017-09-01 12:24:31, 2017-09-01 12:24:31))'

Which part did I wrong?

Anyway, your documentation pretty insufficent, please correct it with some details, like how can I set database env variables... or why want to connect to mysql instead of firebase service?

Thank you

Skintillion commented 6 years ago

Looks like its a problem with something on your side of things, not the plugin.

Base table or view not found: 1146 Table 'homestead.todos' doesn't exist

martiendt commented 6 years ago

Base table or view not foundyou're using homestead as your database and not found table todos, are you sure your migration database is ready and migrated to your database ?