Anyone know how to create real time chat application in php using firebase?

|
LSNV_Loki 2021-03-14 21:36:59
hi. very basic. creating user. creating profile for user (models but created from controllers or similar). how can create profile from user model? self::created (function ($model) {}) how to get user_id to create model from there? to be sure it is created and no other options.
LSNV_Loki 2021-03-14 21:41:21
$admin_user->save();
$admin_user_profile = Profile::create([‘user_id’ => $admin_user->id]);
$admin_user_profile->save();
want to avoid last two lines.
pranavsense 2021-03-14 22:15:57
LSNV_Loki 2021-03-14 21:41:21
$admin_user->save();
$admin_user_profile = Profile::create([‘user_id’ => $admin_user->id]);
$admin_user_profile->save();
want to avoid last two lines.

Add updated event in model

Moses Ejim 2021-03-14 22:16:34
ridaazyaiz 2021-03-14 18:14:40
how to make website laravel francais to anglais like google translate

Check laravel localization

LSNV_Loki 2021-03-14 22:16:43
pranavsense 2021-03-14 22:15:57
Add updated event in model

sorry. it was more simple). Just oncreate $model already has all info. Id etc.

pranavsense 2021-03-14 22:18:32
LSNV_Loki 2021-03-14 21:41:21
$admin_user->save();
$admin_user_profile = Profile::create([‘user_id’ => $admin_user->id]);
$admin_user_profile->save();
want to avoid last two lines.

So both were on same model? Should’ve mentioned model for $admin_user

pranavsense 2021-03-14 22:19:03
LSNV_Loki 2021-03-14 22:16:43
sorry. it was more simple). Just oncreate $model already has all info. Id etc.

Glad you figured out

LSNV_Loki 2021-03-14 22:19:50
model are different. but inside user model I used self::created to create profile model. stupid inital question from my side)
pranavsense 2021-03-14 22:20:28
Oh ok so you are using event, alright, np
LSNV_Loki 2021-03-14 22:22:34
is it common practicing? I want to be sure so no user can exist without profile. so creating user, then creating profile in component is bad behavior I assume. if expected every user has a profile.
Patricklab 2021-03-14 22:54:02
Hi everyone we need 3 very fast and experienced freelance laravel php developers must have worked with reactjs and Angular10 on the Front-end have known of nodejs and sock.io libraries and laravel and has built up modular based systems designs in laravel to help complete up a project development process
simon_an 2021-03-14 23:24:50
Patricklab 2021-03-14 22:54:02
Hi everyone we need 3 very fast and experienced freelance laravel php developers must have worked with reactjs and Angular10 on the Front-end have known of nodejs and sock.io libraries and laravel and has built up modular based systems designs in laravel to help complete up a project development process

So which developer do you want? Laravel or php or node js or react or angular10😒

GunMerchant 2021-03-15 00:12:29
Patricklab 2021-03-14 22:54:02
Hi everyone we need 3 very fast and experienced freelance laravel php developers must have worked with reactjs and Angular10 on the Front-end have known of nodejs and sock.io libraries and laravel and has built up modular based systems designs in laravel to help complete up a project development process

Some people are very serious jokers 🤣🤣

amir_0787 2021-03-15 00:26:06
hi friends

i have two folders

back
front

in view folder

when i want to load index.blade.php in front folder it gives me the page but for the back folder it gives me 403 error

i moved back folder into front folder and the problem left but i know it is not a good solution

Patricklab 2021-03-15 00:45:06
simon_an 2021-03-14 23:24:50
So which developer do you want? Laravel or php or node js or react or angular10😒

Front-ends are built up in reactjs 5 projects 2 projects are built up with Angular10 and the other 3 are built up with reactjs Front-end backend laravel for nodejs we are using the Socket.IO libraries for push notifications

LSNV_Loki 2021-03-15 00:59:30
How to return full stack of object? say i have User::limit(10)->get(); and i want to include those children by model (all or exact ones). So is there kind of User::attachChild(‘profile’)->get();? Manually for sure it is possible. Get Users, get companies, get profiles, then combine and return. But predefined easier way exists?
segungreat 2021-03-15 01:32:45
LSNV_Loki 2021-03-15 00:59:30
How to return full stack of object? say i have User::limit(10)->get(); and i want to include those children by model (all or exact ones). So is there kind of User::attachChild(‘profile’)->get();? Manually for sure it is possible. Get Users, get companies, get profiles, then combine and return. But predefined easier way exists?

If the models are related, that’s you set up the relationship well you should be able to eager load the models and their child or children models, check Lara el eager-loading

segungreat 2021-03-15 01:33:00
Laravel eager-loading
LSNV_Loki 2021-03-15 01:41:21
segungreat 2021-03-15 01:33:00
Laravel eager-loading

thanks. I assume getting model()->all() is supposed to return only this very model data. so I have to combine extra children by myself so they will be included via return.

natghi2010 2021-03-15 04:56:43
LSNV_Loki 2021-03-15 01:41:21
thanks. I assume getting model()->all() is supposed to return only this very model data. so I have to combine extra children by myself so they will be included via return.

thats not what hes saying

natghi2010 2021-03-15 04:57:08
if you set up a relationship you can do it like this
natghi2010 2021-03-15 04:57:28
$model->with(‘profile’,’company’)->get();
Mit Kum 2021-03-15 07:02:52
Good morning all .
Where i found laravel interview questions its based on development functionality some issues scenario related to data manipulation in laravel
flyingdragons 2021-03-15 08:13:16
https://stackcoder.in/posts/php-resumable-large-file-uploads-in-chunks-using-flowjs
Plain PHP Resumable Large File Uploads In Chunks Using FlowJs

Plain PHP Resumable Large File Uploads In Chunks Using FlowJs | StackCoderStackCoder
In this article let’s see how we can upload large files in chunks using FlowJs.
themanojyadav 2021-03-15 09:39:16
Hey guys, is there any year picker for bootstrap or jquery based in which we can pic year like this:
2020-2021,
2019-2020
dhenish 2021-03-15 09:39:58
Anyone know how to create real time chat application in php using firebase ????????
2021-03-15 10:06:32
I’m new in Laravel and i need help
I have a admin and only the admin can create another users
How it’s done ?
Help me
2021-03-15 10:07:04
Plz
2021-03-15 10:07:15
Anybody
2021-03-15 10:07:26
🤦🏽‍♂️🤦🏽‍♂️🤦🏽‍♂️🤦🏽‍♂️
2021-03-15 10:09:20
No helpers
nsmodi 2021-03-15 10:16:12
dhenish 2021-03-15 09:39:58
Anyone know how to create real time chat application in php using firebase ????????

PHP Firebase Real Time Chat Application | Free Source CodeYouTube
PHP Firebase Real Time Messaging System

Installation Link
https://webscript.info/rizwan/real-time-messaging-system-using-php-and-firebase

Complete Messenger tutorial using ReactJS and Firestore
https://www.youtube.com/playlist?list=PLB_Wd4-5SGAZ-IK-_Qb3WDHNTGaG0Hfcv

nsmodi 2021-03-15 10:17:18
2021-03-15 10:06:32
I’m new in Laravel and i need help
I have a admin and only the admin can create another users
How it’s done ?
Help me

Jinu Did you try

https://laraadmin.com/

Multipurpose Laravel CRM | Admin Panel for LaravelLaraadmin
LaraAdmin is a Open source Laravel Admin Panel / CMS which can be used as Admin Backend, Data Management Tool or CRM boilerplate for Laravel
2021-03-15 10:32:10
I ever used this
2021-03-15 10:32:42
Any other solutions
|