Notification in Laravel

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 92

  • @LaravelJutsu
    @LaravelJutsu 6 лет назад +1

    Your tutorials are the best on RUclips. Thank you my friend! Go on! Keep the great work on!!!

    • @WebDevMatics
      @WebDevMatics  6 лет назад

      Thats inspiring. Thanks. New series coming soon.

  • @wepey
    @wepey 5 лет назад +1

    I get trying to get property unreadNotifications while i click markasread function. Please help

  • @codeermite9636
    @codeermite9636 7 лет назад +2

    Great serie man.It's ery helpfull.Tanks alot.

  • @ashishshrestha3270
    @ashishshrestha3270 4 года назад +1

    I am getting this error, Call to undefined function snake_case() , is there an alternative function that could be used

    • @WebDevMatics
      @WebDevMatics  4 года назад +1

      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

    • @ashishshrestha3270
      @ashishshrestha3270 4 года назад +1

      ​@@WebDevMatics​ Awesome, thank you

  • @ilmiir8404
    @ilmiir8404 4 года назад

    The best choice as always ❤️💯

  • @31provi
    @31provi 3 года назад

    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

  • @vikifacts4875
    @vikifacts4875 7 лет назад

    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.

  • @FlaFans
    @FlaFans 7 лет назад

    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!

  • @jebiboy
    @jebiboy 6 лет назад

    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?

    • @WebDevMatics
      @WebDevMatics  6 лет назад

      Yes you can call notify method on any user instance. Like User::find(2)->notify()

  • @UmerAbbas8
    @UmerAbbas8 7 лет назад

    Very nice tutorial, keep it up bro.

  • @techyjho
    @techyjho 6 лет назад

    im getting a Trying to get property 'unreadNotifications' of non-object error on my route. please help.

  • @andremenezes9660
    @andremenezes9660 6 лет назад

    Awesome! Very Helpfull!

  • @cheexugan2117
    @cheexugan2117 7 лет назад

    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..

    • @WebDevMatics
      @WebDevMatics  7 лет назад +1

      If it is inside data column you can access it like we accessed other variables like thread name (refer to code).

    • @aptgetinstall5694
      @aptgetinstall5694 3 года назад

      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.

  • @AmeerHamzaSadam
    @AmeerHamzaSadam 7 лет назад

    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?

  • @kunallibra
    @kunallibra 5 лет назад

    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.

    • @WebDevMatics
      @WebDevMatics  5 лет назад

      You need to import thread class

    • @kunallibra
      @kunallibra 5 лет назад

      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

  • @haroonattock2272
    @haroonattock2272 7 лет назад +1

    Really Awesome Dear .

  • @phamthao5421
    @phamthao5421 6 лет назад

    amazing serie !

  • @aldiyunananwari1633
    @aldiyunananwari1633 3 года назад

    " Call to undefined function snake_case() " what is solution?

  • @serenityfaye1784
    @serenityfaye1784 7 лет назад

    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?

    • @WebDevMatics
      @WebDevMatics  7 лет назад

      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

    • @serenityfaye1784
      @serenityfaye1784 7 лет назад

      oh I see..so, what if I want to notify other user, not the authenticated one.how will I do that?

    • @WebDevMatics
      @WebDevMatics  7 лет назад

      Just find the user to whom you want to send notification.
      $user=User:find(id);
      And then call notify method on it

    • @serenityfaye1784
      @serenityfaye1784 7 лет назад

      oh, now I get it..thanks a lot Sir!

  • @manjunathm4704
    @manjunathm4704 7 лет назад +5

    could you please make it realtime notifications.

  • @aanandroy5434
    @aanandroy5434 7 лет назад

    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 ?

    • @ThroughMyLens2K24
      @ThroughMyLens2K24 7 лет назад

      watch full video :D i was thinking the same all the time :D At last he corrected it

    • @aanandroy5434
      @aanandroy5434 7 лет назад +1

      MANGIT MAHARJAN Haha. I just lost the patient in between :D

  • @davidmukoro1166
    @davidmukoro1166 7 лет назад

    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.

  • @behappey8494
    @behappey8494 5 лет назад

    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

  • @adhrupesh
    @adhrupesh 7 лет назад

    There is $notification->data['user]['name'] in replied_to_thread.blade.php. Which controller is passing $notification to this blade?

    • @WebDevMatics
      @WebDevMatics  7 лет назад

      We are not passing that from controller. Since that is partial which is included in navbar.blade.php we are passing that variable there.

    • @moazsaid3417
      @moazsaid3417 6 лет назад

      you slove this problem!!!

  • @siamaksaadatpur
    @siamaksaadatpur 4 года назад

    Thanks
    but Where is the Real time??
    That's mean we send a notification When Click a button

    • @WebDevMatics
      @WebDevMatics  4 года назад

      Search for realtime notification webdevmatics

  • @jonasvirsila4179
    @jonasvirsila4179 7 лет назад

    Question: what is the Route::get('/test', function) and why didn't you show? In 14:43

    • @WebDevMatics
      @WebDevMatics  7 лет назад +1

      That is for debugging purpose. I test if function is working by making test route.

    • @WebDevMatics
      @WebDevMatics  7 лет назад +1

      That is for debugging purpose. I test if function is working by making test route.

    • @jonasvirsila4179
      @jonasvirsila4179 7 лет назад

      And what about the threadController? Can i try to use PostController to notify me of posts? Also comments?

    • @WebDevMatics
      @WebDevMatics  7 лет назад

      Yes you can.

    • @jonasvirsila4179
      @jonasvirsila4179 7 лет назад

      Of course I'm getting an error: Call to a member function notify() on null. Why?

  • @ermetanyoPh
    @ermetanyoPh 6 лет назад

    Hey dude, great tutorial but i have some hard times to understand Laravel Notification... Can I ask you some help?

    • @WebDevMatics
      @WebDevMatics  6 лет назад

      Sure

    • @ermetanyoPh
      @ermetanyoPh 6 лет назад

      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?

    • @WebDevMatics
      @WebDevMatics  6 лет назад

      Notification feature is same you just need to trigger it whenever github hit your route

    • @ermetanyoPh
      @ermetanyoPh 6 лет назад +1

      I got it dude. Thanks...

  • @nurda1997
    @nurda1997 5 лет назад

    Hi, sir Could you explain how to send Email?

  • @othmaneessayeh163
    @othmaneessayeh163 4 года назад

    perfect video

  • @Paulus1906
    @Paulus1906 7 лет назад

    thanks for your effort

  • @LeozinhoWeb
    @LeozinhoWeb 6 лет назад

    Muito bom o video foi bem instrutivo e me ajudou muito, funcionou perfeitamente em meu projeto

  • @taibarani2094
    @taibarani2094 7 лет назад

    when I display the user email who commented its gives error Undefined index: user

    • @aptgetinstall5694
      @aptgetinstall5694 3 года назад

      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.

  • @ermetanyoPh
    @ermetanyoPh 5 лет назад

    Is this real time or just static?

  • @jebbush2964
    @jebbush2964 7 лет назад

    Thanks a lot dear friend.

  • @aditya121222
    @aditya121222 7 лет назад

    could you also push database dump file

  • @yogs3403
    @yogs3403 4 года назад

    what version do yoy use?

  • @bramastavikana7696
    @bramastavikana7696 5 лет назад

    what is Thread in controller

    • @WebDevMatics
      @WebDevMatics  5 лет назад

      Its is Thread model like Post class

  • @manjunathm4704
    @manjunathm4704 7 лет назад

    Thank you sir.

  • @AwadheshKumar-vb2us
    @AwadheshKumar-vb2us 7 лет назад

    dear sir how to develop api for this notification for use in Android app

    • @WebDevMatics
      @WebDevMatics  7 лет назад

      I am not experienced with Android development but you can replace frontend part here with frontend in android.

    • @AwadheshKumar-vb2us
      @AwadheshKumar-vb2us 7 лет назад

      Sr I'm asking about how to develop api in laravel for this notification, thanks

  • @aashishmagar5705
    @aashishmagar5705 5 лет назад

    Please upgrade your sound system......

  • @danielibanga3408
    @danielibanga3408 6 лет назад

    damn.. interesting but i couldn't follow up man. i'll let you know where ever i've got issues

  • @aashishmagar5705
    @aashishmagar5705 5 лет назад

    your sounds make me sleepy

  • @umairali2360
    @umairali2360 6 лет назад

    i want notification to send all of users, that exists in database how is it possible????

    • @WebDevMatics
      @WebDevMatics  6 лет назад

      You need to broadcast event on certain channel and listen that on frontend

    • @umairali2360
      @umairali2360 6 лет назад

      @@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

  • @lanwilds9585
    @lanwilds9585 6 лет назад +1

    issuessssssss

  • @TheDustyroel
    @TheDustyroel 6 лет назад

    Boilerplate

  • @eikeybar_
    @eikeybar_ 6 лет назад

    hese :(

  • @swaqas1403
    @swaqas1403 6 лет назад

    count never worked