VladsGG Malupet
VladsGG Malupet

Reputation: 3

Laravel CRUD using Firebase

I'm trying to implement Realtime CRUD using Google Firebase in my web application,I've managed to retrieve data from the Firebase Database but I saw an error while inspecting elements.

Error:

Uncaught ReferenceError: $ is not defined at users:37

I've tried all possible solutions, these made the error gone but I can't add/update/delete data. basically none of this work

links:

  1. ReferenceError: $ is not defined
  2. Laravel 5 WebPack JQuery - $ is not defined
  3. https://medium.com/@onwuka_gideon/fixing-laravel-jquery-is-not-defined-a316fd918e0a

I've followed every step on here:

*note that I am using Laravel 5.8 rather than 5.6

https://laravelcode.com/post/laravel-56-realtime-crud-system-using-google-firebase#

You can recreate the problem by following it.

Upvotes: 0

Views: 626

Answers (1)

Sunil Kashyap
Sunil Kashyap

Reputation: 2984

include jQuery before firebase.js i.e.

recreated and worked as you mentioned in this LINK

<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/4.9.1/firebase.js"></script>

Example Repo - GITHUB

Upvotes: 2

Related Questions