laravel-firebase-sync icon indicating copy to clipboard operation
laravel-firebase-sync copied to clipboard

this package doesn't work

Open tzs007 opened this issue 7 years ago • 2 comments

Hello.

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

  • I set everything up in Firebase as you wrote in the doc.
  • I cloned your example (because my trys in Laravel 5.5 was'nt successful)
  • I populated .env file with Firebase keys and urls...
  • I started php artisan tinker and call \App\Todo::create(['task'=>'test', 'is_done'=>false);
  • Then I got that message in console:
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

tzs007 avatar Sep 01 '17 12:09 tzs007

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

Skintillion avatar Oct 26 '17 04:10 Skintillion

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 ?

martiendt avatar Nov 17 '17 13:11 martiendt