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

Not getting it to work #16

Closed DennisHUtrecht closed 7 years ago

DennisHUtrecht commented 7 years ago

It might just be a very dumb question but I dont get it to work. I've done every step inside: http://marcelpociot.de/blog/2016-06-20-synchronise-laravel-eloquent-models-with-firebase

But when I get to the php artisan tinker part where I create my model it just gives back: Illuminate\Database\QueryException with message 'SQLSTATE[HY000] [2002] Can not make a connection because the computer has denied access.

Behind this is an SQL query with an insert.

I think i'm doing a whole lot of stuff wrong, but I would like some help. I'm pretty familair with laravel but very new with firebase. Thanks

DennisHUtrecht commented 7 years ago

I solved my problem already. Sorry for the noob question :) But it's about syncing with a mySQL db, I thought it was a direct connection and mysql not getting in the way of it. So now I have a connection with my mysql database and have the services implemented and it syncs :)

Great work, I can go forward with my project because of your open source project. Thank you very much!