Laravel real-time CRUD using Google Firebase.
Step 1 : Create a Firebase Project
Letâs first create a firebase project and take firebase credentials. Go to https://firebase.google.com/ and create a project.
Step 2 : Create a Laravel Project
composer create-project --prefer-dist laravel/laravel laravelproject
Step 3 : Register View Route
- Go to routes >> web.php and register this route:
Route::view('customers', 'customers');
Step 4 : Configure Firebase Setting
Now, we are configuring google firebase setting in our laravel application. so, open config/services.php file and set following configuration in this file.
Step 5 : Add a Blade File
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
Step 6 : Run and Test
-
run php artisan serve
-
Now visit the route(http://localhost:8000/customers) to see the form. You can start testing by adding data.
The Laravel framework is open-sourced software licensed under the MIT license.