Тёмный

CRUD in Laravel with Firestore Database 

Seven Stac
Подписаться 374
Просмотров 9 тыс.
50% 1

Using Laravel with Firestore Database we create, update, delete and display.
Project Repo : github.com/suh...
For Authenticating Users in Firebase : • Laravel with Firebase ...
For CRUD in Realtime database : • CRUD in Laravel with F...
Get Composer : getcomposer.or...
Get Git : git-scm.com/do...
#firebase #firestore #laravel #crud #create #update #2021 #coding #github #repository #laravelwithfirebase #laravelwithfirestore #firestoredatabase #database #db #connection

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 38   
@ElDanichave
@ElDanichave 3 года назад
Thanks bro, I really apreciate it. Thanks for help us so much.
@TryCatchDev
@TryCatchDev 3 года назад
Thank you bro, this is very helpful.
@just9706
@just9706 3 года назад
Thanks a lot.
@shahinshaap5893
@shahinshaap5893 2 года назад
how to generate document id automatically
@sevenstac
@sevenstac 2 года назад
It is generated automatically when u create new data, but it would be a randomized key, if you want it to be in numerical follow the below code Old Code $newid = app('firebase.firestore')->database()->collection('User') ->documents()->size()+$i; //Insert new record app('firebase.firestore')->database()->collection('User') ->document($newid)->set(['id'=> $newid, 'name' => 'Name']); New Code $documents = app('firebase.firestore')->database()->collection('User') ->orderby('id','desc')->limit(1)->documents(); if($documents->size() > 0) { $lastid = intval($documents->rows()[0]->data()['id']); } //Insert new record app('firebase.firestore')->database()->collection('User') ->document($lastid)->set(['id'=> $lastid, 'name' => 'Perry']);
@mrinalpadhi
@mrinalpadhi Год назад
getting the following error Kreait\Firebase\Exception\InvalidArgumentException The email address is invalid
@Studywithsalma
@Studywithsalma 18 дней назад
every time i try to create or access document data serve shot down and i get site can't be reached i checked the rules and it is allow read and write
@sevenstac
@sevenstac 15 дней назад
Seems like something wrong with the rules. Try creating it with a new firebase project.
@nabilkrissane
@nabilkrissane 3 года назад
Thank you bro
@mahmoudakoobah5505
@mahmoudakoobah5505 3 года назад
Thx sir
@usamashakeel1210
@usamashakeel1210 2 года назад
@Seven stac you did a great job!!. I followed this tutorial. Can you help in enabling offline persistence so that laravel application could work offline and could syn data when the connection is back
@sevenstac
@sevenstac 2 года назад
Sorry to say but I have no idea about it, will surely refer you if I find any thing related to this topic.🙁🙁
@programmermiskin222
@programmermiskin222 2 года назад
how do you see all data in the collection? The display method only shows a record with specific document. Nice tutorial
@sevenstac
@sevenstac 2 года назад
What data would you want to display.
@programmermiskin222
@programmermiskin222 2 года назад
@@sevenstac all user data. Like, if in laravel, it's User::all() Something like that. Oh, do you have firebase upload data tutorial? Just asking as I do need to learn about it.
@sevenstac
@sevenstac 2 года назад
U want to select all the users who have logied in to the app. ?? Link for CRUD in firebase m.ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-0kmHdS1D0ns.html Sry for the late reply 😔
@amitsolanki9363
@amitsolanki9363 5 часов назад
How can i create relationship in firebase
@sevenstac
@sevenstac 5 часов назад
What relationship?? Can you specify or elaborate what you want
@amitsolanki9363
@amitsolanki9363 4 часа назад
@@sevenstac same like in laravel, hasmany, hasone, belongs
@amitsolanki9363
@amitsolanki9363 4 часа назад
I have a chats table and i want share posts in chats so how can i implement this and If you delete posts then need to delete share posts from chats
@nizamuddin5484
@nizamuddin5484 2 года назад
Sir how to show data in a table on web page after fetching the data from firestore
@sevenstac
@sevenstac 2 года назад
Use HTML table structure , add foreach loop for each table to displaying multiple data
@nizamuddin5484
@nizamuddin5484 2 года назад
@@sevenstac thank you sir
@nizamuddin5484
@nizamuddin5484 2 года назад
Sir how to display image on web page from firestore database
@sevenstac
@sevenstac 2 года назад
Use Firebase Storage to store image and save the link in firestore. Refer :ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-DV4YICpZ5FE.html
@egcgaming9883
@egcgaming9883 3 года назад
HELLO bro how about crud api with firestore? Can you a video example with it. Thanks
@sevenstac
@sevenstac 3 года назад
Will see abt it not sure if the video will be out soon ... It will take some time
@egcgaming9883
@egcgaming9883 3 года назад
Yeah thanks.I really appreciate of you
@thornsonita9049
@thornsonita9049 3 года назад
Hello brother. could make a video about how to intergrate laravel with firebase firestore?
@sevenstac
@sevenstac 3 года назад
The video already contains integration of laravel with firebase firestore only ... May I know what you want exactly .
@thornsonita9049
@thornsonita9049 3 года назад
@@sevenstac like in ur project that I have cloned from git hub. I saw u have firebase_credencail.json and in config folder/firestore I don't know where you got it from even my project doesn't have it. Thank you for your response.
@sevenstac
@sevenstac 3 года назад
I will add a video within 2 days , so stay tuned and hit the bell icon to get a notification of the video.
@mohammedelatbany5950
@mohammedelatbany5950 3 года назад
@@sevenstac +1
@thornsonita9049
@thornsonita9049 3 года назад
@@sevenstac haha thank you so much
@muhammadamjad8649
@muhammadamjad8649 3 года назад
getting google/cloud-firestore[v1.19.0, ..., v1.19.2] require ext-grpc * - while updating composer. I am a window user
@sevenstac
@sevenstac 3 года назад
See ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CMvGB12pdOw.html ( @1:20 ) this error is solved there
@firefrook
@firefrook 3 года назад
thank you for the video. maybe it's only happen to me . I use Manjaro with php 8^ and I've tried you code here is what I did : 1. clone the code from your repo using "git clone github.com/suhasrkms/laravel-with-firestore.git" this will create the folder "laravel-with-firestore" in my home directory I cd in that 2. I have copy the .env.example to .env then I have run "php artisan serve " it has throw an error! ///////////////////////////////////////////////////////////////////////// PHP Warning: require(/home/farook/Desktop/la2/laravel-with-firestore/vendor/autoload.php): Failed to open stream: No such file or directory in /home/farook/Desktop/la2/laravel-with-firestore/artisan on line 18 PHP Fatal error: Uncaught Error: Failed opening required '/home/farook/Desktop/la2/laravel-with-firestore/vendor/autoload.php' (include_path='.:') in /home/farook/Desktop/la2/laravel-with-firestore/artisan:18 Stack trace: #0 {main} thrown in /home/farook/Desktop/la2/laravel-with-firestore/artisan on line 18 ////////////////////////////////////////////////////////////////////////// this happen because it's cannot find the autoload.php so I run " composer update " hopefully will do some update for me but it cannot be done because it's require "grpc" so I just try to build it from source as it is here " grpc.io/docs/languages/php/quickstart/ " NO LUCK!, I cannot make it work on my project! farookphuket.com but I like your video thanks again.
@sevenstac
@sevenstac 3 года назад
Hey see ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CMvGB12pdOw.html for integrating firestore with existing projects . Hopefully it works , if any errors do mention.
Далее
Upload Image to Firebase Storage in Laravel
5:25
Просмотров 7 тыс.
Decompress small game, have time to play it!
00:35
Laravel CRUD in 50 minutes for Beginners  from Scratch
49:58
Building the WORLDS LARGEST functional iPhone
32:05
Просмотров 1,6 млн
We built the Biggest iPhone in the World.
23:30
Просмотров 3,7 млн
Integrating Laravel with Firestore
6:05
Просмотров 12 тыс.
Creating a Laravel API
59:10
Просмотров 93 тыс.
Laravel 11 Skeleton: What We Know So Far
7:03
Просмотров 22 тыс.
Laravel Tutorial For Beginners (Simple User CRUD App)
1:16:13
Push Notification using Laravel and FCM
8:38
Просмотров 42 тыс.