In newer laravel version those helpers are removed. Use \Str::snake_case() instead method name are same only thing is you have to access it using Str class
Hi ,, this is what i'm looking for.. But can you give me a tips, do i need to create relationships that only to some certain users that has role to have its notification.? thanks
Great tutorial. But I have a question. Let's say we have 3 notifications for 3 comments. When click on a notification i wanna view the related comment in the comment section. ( similar to Facebook,RUclips notification works). How do i connect notification table with another db table.
Hello guy! Thanks for your help! I have a question: how to update the tagging of notifications in real time, after calling the javascript function and returning the controller without refreshing the page or doing a return back (); ? Thank you!
Hello I'm new in laravel. Where did you get the Thread $thread? Is it possible to trigger the new RepliedToThread($thread) without the auth()->user()->notify and via api that can notify specific user?
May i know why there is error "undefined index: subject" ?? I saw your notifications table's, the "data" column successfully store subject(Laravel Eloquent & something else)...I got no idea how to do it..Hope you'll ans my question, thx in advance..
If you still looking for solution, in my case this is because data isn't array but json so instead of doing $notification->data['user']['id'] you must do $notification->data{'user'}{'id'}. This worked for me.
Hey! I am using laravel 5.4 and I can find Example.vue under resources/assets/js/components but when I use in my index.blade.php it is not showing anything there just showing in browser. what do you think why it is not working?
Hi, thanks for ur reply. I followed the tutorials (real time) but having errors. I am getting this error that says, Class\Http\Controllers\Thread does not exist. can u please help me. thanks.
Sir, i m not sure how can i import it? i am not using any blog system for this project. I am creating a app, where a user will fill the form (no authentication required) and once they fill the form, the admin user (authenticated user) will see the notificaiton. How can I do that? Thanks
I got an error when I implement this, the error says SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'notifiable_id' cannot be null. Why is it the notifiable_id is null?where do I get this notifiable_id?
notifiable_id is user id, so make sure you are authenticated. When you call auth()->user()->notify(new Class) it will automatically store notifiable id
Hi, when we say auth()->user->notify.. are we notifying ourselves? Because we are using Auth::user(). Shouldn't this should notify the creator of thread maybe?Why would I notify myself if I have replied to a thread :D ?
I will drop my email: batangkritiko703@gmail.com... I'm working with incoming webhook from github notification and Laravel docs their are Mail Notifications, Database Notifications, Broadcast Notifications, SMS Notifications, Slackt Notifications and Custom Notifications. But In my case is I need to notify for Incoming webhook from github that tells me that there's and update. What is the best implementation for that?
If still looking for solution, in my case this is because data isn't array but json so instead of doing $notification->data['user']['id'] you must do $notification->data{'user'}{'id'}. This worked for me.
@@WebDevMatics sir i am too much confused, please if you have any video then recommend me, or please also make video about this as soon as possible, thanks in advance
Your tutorials are the best on RUclips. Thank you my friend! Go on! Keep the great work on!!!
Thats inspiring. Thanks. New series coming soon.
I get trying to get property unreadNotifications while i click markasread function. Please help
Great serie man.It's ery helpfull.Tanks alot.
I am getting this error, Call to undefined function snake_case() , is there an alternative function that could be used
In newer laravel version those helpers are removed. Use \Str::snake_case() instead method name are same only thing is you have to access it using Str class
@@WebDevMatics Awesome, thank you
The best choice as always ❤️💯
Hi ,, this is what i'm looking for.. But can you give me a tips, do i need to create relationships that only to some certain users that has role to have its notification.? thanks
Great tutorial. But I have a question. Let's say we have 3 notifications for 3 comments. When click on a notification i wanna view the related comment in the comment section. ( similar to Facebook,RUclips notification works). How do i connect notification table with another db table.
Hello guy! Thanks for your help! I have a question: how to update the tagging of notifications in real time, after calling the javascript function and returning the controller without refreshing the page or doing a return back (); ? Thank you!
Hello I'm new in laravel. Where did you get the Thread $thread? Is it possible to trigger the new RepliedToThread($thread) without the auth()->user()->notify and via api that can notify specific user?
Yes you can call notify method on any user instance. Like User::find(2)->notify()
Very nice tutorial, keep it up bro.
im getting a Trying to get property 'unreadNotifications' of non-object error on my route. please help.
Awesome! Very Helpfull!
May i know why there is error "undefined index: subject" ?? I saw your notifications table's, the "data" column successfully store subject(Laravel Eloquent & something else)...I got no idea how to do it..Hope you'll ans my question, thx in advance..
If it is inside data column you can access it like we accessed other variables like thread name (refer to code).
If you still looking for solution, in my case this is because data isn't array but json so instead of doing $notification->data['user']['id'] you must do $notification->data{'user'}{'id'}. This worked for me.
Hey! I am using laravel 5.4 and I can find Example.vue under resources/assets/js/components but when I use in my index.blade.php it is not showing anything there just showing in browser.
what do you think why it is not working?
npm run dev
Hi, thanks for ur reply. I followed the tutorials (real time) but having errors. I am getting this error that says, Class\Http\Controllers\Thread does not exist. can u please help me. thanks.
You need to import thread class
Sir, i m not sure how can i import it? i am not using any blog system for this project. I am creating a app, where a user will fill the form (no authentication required) and once they fill the form, the admin user (authenticated user) will see the notificaiton.
How can I do that?
Thanks
Really Awesome Dear .
amazing serie !
" Call to undefined function snake_case() " what is solution?
Str::snake('fooBar')
I got an error when I implement this, the error says SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'notifiable_id' cannot be null. Why is it the notifiable_id is null?where do I get this notifiable_id?
notifiable_id is user id, so make sure you are authenticated. When you call auth()->user()->notify(new Class) it will automatically store notifiable id
oh I see..so, what if I want to notify other user, not the authenticated one.how will I do that?
Just find the user to whom you want to send notification.
$user=User:find(id);
And then call notify method on it
oh, now I get it..thanks a lot Sir!
could you please make it realtime notifications.
Sure!
Real time would be perfect! ;)
Hi, when we say auth()->user->notify.. are we notifying ourselves? Because we are using Auth::user(). Shouldn't this should notify the creator of thread maybe?Why would I notify myself if I have replied to a thread :D ?
watch full video :D i was thinking the same all the time :D At last he corrected it
MANGIT MAHARJAN Haha. I just lost the patient in between :D
is this a follow up to a previous series tauht or what. I get stick at the point you call up comment controller on the editor.
Yes it is follow up.
please sir can help me please
if i want tow notification on my web
how create tow table of notification
and thanks for you sir
There is $notification->data['user]['name'] in replied_to_thread.blade.php. Which controller is passing $notification to this blade?
We are not passing that from controller. Since that is partial which is included in navbar.blade.php we are passing that variable there.
you slove this problem!!!
Thanks
but Where is the Real time??
That's mean we send a notification When Click a button
Search for realtime notification webdevmatics
Question: what is the Route::get('/test', function) and why didn't you show? In 14:43
That is for debugging purpose. I test if function is working by making test route.
That is for debugging purpose. I test if function is working by making test route.
And what about the threadController? Can i try to use PostController to notify me of posts? Also comments?
Yes you can.
Of course I'm getting an error: Call to a member function notify() on null. Why?
Hey dude, great tutorial but i have some hard times to understand Laravel Notification... Can I ask you some help?
Sure
I will drop my email: batangkritiko703@gmail.com... I'm working with incoming webhook from github notification and Laravel docs their are Mail Notifications, Database Notifications, Broadcast Notifications, SMS Notifications, Slackt Notifications and Custom Notifications. But In my case is I need to notify for Incoming webhook from github that tells me that there's and update. What is the best implementation for that?
Notification feature is same you just need to trigger it whenever github hit your route
I got it dude. Thanks...
Hi, sir Could you explain how to send Email?
perfect video
thanks for your effort
Muito bom o video foi bem instrutivo e me ajudou muito, funcionou perfeitamente em meu projeto
Obrigado
when I display the user email who commented its gives error Undefined index: user
If still looking for solution, in my case this is because data isn't array but json so instead of doing $notification->data['user']['id'] you must do $notification->data{'user'}{'id'}. This worked for me.
Is this real time or just static?
Thanks a lot dear friend.
could you also push database dump file
what version do yoy use?
5.7 i guess
what is Thread in controller
Its is Thread model like Post class
Thank you sir.
dear sir how to develop api for this notification for use in Android app
I am not experienced with Android development but you can replace frontend part here with frontend in android.
Sr I'm asking about how to develop api in laravel for this notification, thanks
Please upgrade your sound system......
damn.. interesting but i couldn't follow up man. i'll let you know where ever i've got issues
your sounds make me sleepy
i want notification to send all of users, that exists in database how is it possible????
You need to broadcast event on certain channel and listen that on frontend
@@WebDevMatics sir i am too much confused, please if you have any video then recommend me, or please also make video about this as soon as possible, thanks in advance
issuessssssss
Boilerplate
hese :(
count never worked