How you define that message read on unread?

|
pringal7 2020-03-15 07:51:34
Feature::whereIn(‘id’ , [‘1’, ‘3’ , ‘7’])->get();

It would be something like this

DesolatorMagno 2020-03-15 08:18:11
Find accept a array.
sadeqi125 2020-03-15 08:41:38
how to count unread massage in laravel
akhil341 2020-03-15 09:12:21
sadeqi125 2020-03-15 08:41:38
how to count unread massage in laravel

How you define that message read on unread ??? You may have some flag , read count which have that flag set or unset .!!!

akhil341 2020-03-15 09:12:47
akhil341 2020-03-15 09:12:21
How you define that message read on unread ??? You may have some flag , read count which have that flag set or unset .!!!

-*read or unread

sadeqi125 2020-03-15 09:13:10
akhil341 2020-03-15 09:12:21
How you define that message read on unread ??? You may have some flag , read count which have that flag set or unset .!!!

How can set flag

sadeqi125 2020-03-15 09:13:23
I set flag in db table
akhil341 2020-03-15 09:14:51
sadeqi125 2020-03-15 09:13:23
I set flag in db table

You can use pivot table for that , message_id, user_id

sadeqi125 2020-03-15 09:17:36
akhil341 2020-03-15 09:14:51
You can use pivot table for that , message_id, user_id

this is my table

sadeqi125 2020-03-15 09:17:38
id name email subject massage created_at updated_at
sadeqi125 2020-03-15 09:17:42
column
akhil341 2020-03-15 09:27:11
sadeqi125 2020-03-15 09:17:38
id name email subject massage created_at updated_at

Are you sending this message through email ???

sadeqi125 2020-03-15 09:51:41
akhil341 2020-03-15 09:27:11
Are you sending this message through email ???

Missage come from a form in website and i want mark read massage for every user in laravel

sadeqi125 2020-03-15 09:51:47
Backend
akhil341 2020-03-15 09:55:29
sadeqi125 2020-03-15 09:51:41
Missage come from a form in website and i want mark read massage for every user in laravel

Perfect, see you can apply any logic to achieve this. One solution is to make a pivot table with columns , message_id, user_id, and status. If one user logins after creation of your message an entry will made to this table with status of delivered and once user opens that message do an update to that flags that it’s read

ouboros 2020-03-15 12:19:22
Hello, i get problem when i configure my host for laravel based web site
ouboros 2020-03-15 12:19:40
php artisan migrate gives that error
ouboros 2020-03-15 12:19:48
IlluminateDatabaseQueryException : SQLSTATE[HY000] [1698] Access denied for user ‘root’@’localhost’
ouboros 2020-03-15 12:20:15
i configured .env for my database
ayberk 2020-03-15 12:20:18
Mysql user and password wrong
ayberk 2020-03-15 12:20:33
Make sure you set correct credentials at .env
ouboros 2020-03-15 12:20:48
okay goona look thanks you
2020-03-15 12:29:03
laravel_discuss-29640.jpg

2020-03-15 12:29:15
Kindly assist guys my question is in the comment section
2020-03-15 12:30:56
Any clarification will provide if needed
2020-03-15 12:32:28
$find brings an array for each loop I want those array accessed proper outside the for each in a fashion that’s simple & easier any idea
2020-03-15 12:32:43
Using laravel eloguent
Alireza1kazemi 2020-03-15 12:37:54
2020-03-15 12:29:03

first you should write get() at end of first query
Then outside of loop make a variable (type must be array)
After that inside loop
Write array_push(variable, $find);

“Search about array push im not sure about syntax😄
At last if you want convert generated array to object☺️

2020-03-15 12:39:54
Alireza1kazemi 2020-03-15 12:37:54
first you should write get() at end of first query
Then outside of loop make a variable (type must be array)
After that inside loop
Write array_push(variable, $find);

“Search about array push im not sure about syntax😄
At last if you want convert generated array to object☺️

Thanks so much let me try out 😊 makes a lot of sense 😊😊

Alireza1kazemi 2020-03-15 12:40:28
2020-03-15 12:39:54
Thanks so much let me try out 😊 makes a lot of sense 😊😊

Your welcome
🎈🌹

2020-03-15 13:30:58
Alireza1kazemi 2020-03-15 12:40:28
Your welcome
🎈🌹

The solution works …

2020-03-15 13:32:58
Alireza1kazemi 2020-03-15 12:40:28
Your welcome
🎈🌹

Am using a model that was done by some one else when I pass a value it showing some error maybe you may suggest something its a different unity of code

2020-03-15 13:33:43
laravel_discuss-29651.jpg

2020-03-15 13:34:31
laravel_discuss-29652.jpg

2020-03-15 13:35:05
laravel_discuss-29653.jpg

2020-03-15 13:35:24
laravel_discuss-29654.jpg

ayberk 2020-03-15 13:35:41
are you sure $fee is not null?
ayberk 2020-03-15 13:36:44
can you share full code on pastebin or somethink like that
Ulrich Mbouna 2020-03-15 13:37:02
Morning
Ulrich Mbouna 2020-03-15 13:37:29
I have problems while create a controller
Ulrich Mbouna 2020-03-15 13:37:36
Please help me
2020-03-15 13:38:26
ayberk 2020-03-15 13:35:41
are you sure $fee is not null?

Surprising when I do dd($fee) I get no output it only gets to the part of saying trying to get property of non-object …but you have a point let me test further and see if its null

2020-03-15 13:39:22
ayberk 2020-03-15 13:36:44
can you share full code on pastebin or somethink like that

Let me try out if not null comes out true or false

ayberk 2020-03-15 13:39:36
if($fee != null)
Andersonbsp 2020-03-15 13:42:23
hello friends can someone help me I have a main site and a sub domain that is linked to the main how do I configure this in laravel someone help me
2020-03-15 13:44:09
ayberk 2020-03-15 13:39:36
if($fee != null)

Thanks alot my machine is now down we have load shedding. When am able to bring it up I will Start from here …noted

ayberk 2020-03-15 13:45:07
also look “debugging” topic you can solve problems more easly without dd or echo
EEEN1993 2020-03-15 14:12:20
how to filter model before uploading data to algolia using laravel scout
2020-03-15 14:15:17
ayberk 2020-03-15 13:45:07
also look “debugging” topic you can solve problems more easly without dd or echo

Cool noted

Ulrich Mbouna 2020-03-15 14:36:34
Ulrich Mbouna 2020-03-15 13:37:29
I have problems while create a controller

Please help me

|