When we want to broadcast events on our server to the client, how exactly do we do that?

|
Behzodjohn 2019-08-20 16:42:54
laravel_discuss-11381.jpg
Like that?
Behzodjohn 2019-08-20 16:43:15
What do you think?
Behzodjohn 2019-08-20 16:43:24
yeah
RdotDev 2019-08-20 16:43:47
php artisan route:list
Behzodjohn 2019-08-20 16:45:06
RdotDev 2019-08-20 16:43:47
php artisan route:list

laravel_discuss-11388.jpg

Behzodjohn 2019-08-20 16:46:24
ok
Behzodjohn 2019-08-20 16:47:19
So that’s we need relationship?
Behzodjohn 2019-08-20 16:51:17
laravel_discuss-11400.jpg
like that?
Behzodjohn 2019-08-20 16:53:28
laravel_discuss-11404.jpg
Is that right?
Behzodjohn 2019-08-20 16:53:54
@Rattone is that right?
Behzodjohn 2019-08-20 16:54:19
laravel_discuss-11406.jpg
but the error
Behzodjohn 2019-08-20 16:55:20
How?
Behzodjohn 2019-08-20 16:56:25
Sorry,I don’t understand Could you explain a bit more?
Behzodjohn 2019-08-20 16:56:58
with example
Behzodjohn 2019-08-20 16:57:32
O yeah understood
Behzodjohn 2019-08-20 16:57:48
laravel_discuss-11418.jpg
error
RdotDev 2019-08-20 16:59:09
Behzodjohn 2019-08-20 16:53:28
Is that right?

Product::findOrFail($request->product_id);

RdotDev 2019-08-20 17:00:10
Remove product_id param from store function
Behzodjohn 2019-08-20 17:00:18
my route is resource
Behzodjohn 2019-08-20 17:00:25
RdotDev 2019-08-20 17:00:10
Remove product_id param from store function

ok

Behzodjohn 2019-08-20 17:01:00
laravel_discuss-11426.jpg
the same error
Behzodjohn 2019-08-20 17:02:53
but It’s post
Behzodjohn 2019-08-20 17:03:02
laravel_discuss-11437.jpg

Behzodjohn 2019-08-20 17:03:23
Sorry I know
Behzodjohn 2019-08-20 17:03:31
How ?
RdotDev 2019-08-20 17:04:38
Behzodjohn 2019-08-20 17:03:02

Remove ,$product->id from action=route(‘

Behzodjohn 2019-08-20 17:05:27
Ok
Behzodjohn 2019-08-20 17:11:54
RdotDev 2019-08-20 17:04:38
Remove ,$product->id from action=route(‘

Sorry but when I press the save

Behzodjohn 2019-08-20 17:11:56
laravel_discuss-11448.jpg

Behzodjohn 2019-08-20 17:14:10
I mean I can’t save data
Behzodjohn 2019-08-20 17:16:29
Ok! I see, Thank you very much for your precious help
Behzodjohn 2019-08-20 17:17:03
Anyway I’ve learnt a lot,Thank you
πŸ…½πŸ…ΈπŸ…ΌπŸ…°οΈ 2019-08-20 17:56:21
Hey Guys
I Have 3 Models

section
β€”β€”β€”β€”β€”-
id
name

userType
β€”β€”β€”β€”β€”
id
name

apply
β€”β€”β€”-
user_type_id
section_id
.
.
I want Sections when
1. in Apply exists
2. user_type_id equal to input ($request)

any ideah ?
i need Eloquent example

avinashpai 2019-08-20 19:46:30
Abhishek Akbari 2019-08-18 22:18:39
You can use socket.io

Any guide?

oxbir 2019-08-20 19:51:24
I have a checkbox in admin page. When it did not checked I get this error
oxbir 2019-08-20 19:51:31
SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘backup’ cannot be null (SQL: update plans set backup = ?, plans.updated_at = 2019-08-20 21:03:28 where id = 1)
RajkotRocks 2019-08-20 19:52:56
oxbir 2019-08-20 19:51:31
SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘backup’ cannot be null (SQL: update plans set backup = ?, plans.updated_at = 2019-08-20 21:03:28 where id = 1)

Set backup column To NULL in database

StanleyMasinde 2019-08-20 19:53:18
make backup to be nullable
oxbir 2019-08-20 19:53:41
Are you sure?
RajkotRocks 2019-08-20 19:53:46
Yup
RajkotRocks 2019-08-20 19:54:02
Safe and secure
Abhishek Akbari 2019-08-20 20:06:48
avinashpai 2019-08-20 19:46:30
Any guide?

https://laracasts.com/series/real-time-laravel-with-socket-io

Real-time Laravel with Socket.ioLaracasts
When we want to broadcast events on our server to the client, how exactly do we do that? Well, there’s a number of ways to tackle it, including using a dedicated service like Pusher. However, in this mini-series, we’ll wire everything up on our own, while leveraging Node, Redis, and Socket.io. Sound fun?
Abhishek Akbari 2019-08-20 20:08:44
avinashpai 2019-08-20 19:46:30
Any guide?

https://movor.io/article/simple-chat-app-using-laravel-echo-redis-and-socketio

Simple Chat App Using Laravel-Echo, Redis And Socket.io | Movormovor.io
Basics on how to use WebSocket protocol with Laravel-Echo and Redis with socket.io server in order to create real time chat app
Telegram 2019-08-20 20:10:58
Hi i’m new in laravel. Where did i get best tutorial as beginner??
oxbir 2019-08-20 20:39:05
RajkotRocks 2019-08-20 19:52:56
Set backup column To NULL in database

Ok , I changed to nullable and I want to when it did not check it save 0, Because It default value = 1.

RajkotRocks 2019-08-20 20:40:11
oxbir 2019-08-20 20:39:05
Ok , I changed to nullable and I want to when it did not check it save 0, Because It default value = 1.

First time it tack default

RajkotRocks 2019-08-20 20:40:21
Not every time
oxbir 2019-08-20 20:42:16
RajkotRocks 2019-08-20 20:40:11
First time it tack default

I did not catch

RajkotRocks 2019-08-20 20:43:45
Ones record create and update not existing in insert value it tack default value

In update if you can’t provide value for column it’s remain same as it’s

oxbir 2019-08-20 20:45:35
Can you put codes here ?
|