I built a CHAT application in 5 MINUTES using Laravel and Pusher!

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 พ.ย. 2024

ความคิดเห็น • 122

  • @codeWithRoss
    @codeWithRoss  8 หลายเดือนก่อน +10

    UPDATE - This only works with Laravel 10.
    Since the release of Laravel 11, the exact steps in this tutorial don't quite match up so please ensure you install Laravel 10.
    See the command below!
    composer create-project laravel/laravel=10.* chat-laravel-pusher

    • @jeromecruz9595
      @jeromecruz9595 8 หลายเดือนก่อน +1

      Okayyy

    • @khchineseanime
      @khchineseanime 3 หลายเดือนก่อน

      Do you have chat with user to user with mysql?

    • @hectorsandoval6821
      @hectorsandoval6821 หลายเดือนก่อน

      can you make a laravel 11 version? Thanks

  • @codeWithRoss
    @codeWithRoss  ปีที่แล้ว +9

    Hey everyone, hope you like my video! Let me know in the comments what your think!

    • @sunetcomedy3463
      @sunetcomedy3463 ปีที่แล้ว

      Hello please kindly help with your face handle let chat you privet

  • @programmingmindset
    @programmingmindset ปีที่แล้ว +36

    Nice tutorial. No unnessary talks, just straightforward

  • @rodrigo-tj1gf
    @rodrigo-tj1gf 3 หลายเดือนก่อน

    finally a tutorial where you don't expend 2 hours into making all of the front end, straight to the point

  • @GavinKimpson
    @GavinKimpson หลายเดือนก่อน +2

    Would be awesome to see this for Laravel 11 & Reverb :) Great content by the way

  • @niageo876
    @niageo876 11 หลายเดือนก่อน +3

    my messages only show up in the window that they are sent in.

  • @tobiaslarsen6689
    @tobiaslarsen6689 9 หลายเดือนก่อน

    Clean, straight to the point. Amazing! Great job Ross! 😁

  • @saramashaal4591
    @saramashaal4591 8 หลายเดือนก่อน +1

    Thanks for the tutorial sir! I just have a question, what should I do to make it run on laravel11? I have been trying running this with the same steps it did not work at the end (no errors , just didnt work with two tabs connection), so what should i do?

  • @bobbybonillapayday
    @bobbybonillapayday ปีที่แล้ว +1

    You can use promoted constructor properties in the PusherBroadcast class

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      Interesting! Thank you!
      stitcher.io/blog/constructor-promotion-in-php-8

  • @mahadihassanbabu9646
    @mahadihassanbabu9646 6 หลายเดือนก่อน

    Vdo 5 mints but understanding 100%,, great bro ❤

  • @iceballchannel8808
    @iceballchannel8808 8 หลายเดือนก่อน +1

    I clone your code but event receive in client : channel.bind not work, msg send but receive not run. I don't know where is error 😂

    • @codeWithRoss
      @codeWithRoss  8 หลายเดือนก่อน

      Did you populate the .env variables?

    • @iceballchannel8808
      @iceballchannel8808 8 หลายเดือนก่อน

      @@codeWithRoss I did all step which you guide. Did I uncomment boarcardprovider in config/app and use route/channel.php ? I don't see you use them in video

    • @iceballchannel8808
      @iceballchannel8808 8 หลายเดือนก่อน

      pusher.connection.socket_id ->where can i get socket_id, i dont have it

  • @stefanstanescu7816
    @stefanstanescu7816 8 หลายเดือนก่อน

    Hi ! A very good video! Is there a special method to add the messages to the database, because I added an action to the form, but it doesn't work like that?

  • @gabe9074
    @gabe9074 9 หลายเดือนก่อน +1

    awesome video thank you!

  • @congucinh724
    @congucinh724 9 หลายเดือนก่อน +1

    Thanks! What font do you use for your editor?

    • @codeWithRoss
      @codeWithRoss  9 หลายเดือนก่อน

      I'm using the default font from PhpStorm.
      www.jetbrains.com/phpstorm/

  • @pollob460
    @pollob460 ปีที่แล้ว +1

    Thanks for sharing your experience. Thanks man!

  • @gideonbasco1619
    @gideonbasco1619 7 หลายเดือนก่อน

    Straight to the point, Thank you ..

  • @christiancolewan
    @christiancolewan 9 หลายเดือนก่อน

    CAn you create a version of this tutorial for Laravel 10 and VUE Js SPA

  • @agrasenmaharaj2718
    @agrasenmaharaj2718 ปีที่แล้ว +2

    Hello, can you make a video like this using the authentication of pushers for private and group chats?

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      Hey!
      Here is some documentation on Pushers Website regarding private channels - pusher.com/docs/channels/using_channels/private-channels/

  • @RonitZinzuvadiya
    @RonitZinzuvadiya 4 หลายเดือนก่อน

    Nice Tutorial! love the way you teach straightforword. can you please tell how to live this and share with friend to use app for personal chat?

  • @SiddharthDivetiya
    @SiddharthDivetiya 5 หลายเดือนก่อน

    Awesome, Could you please share anything for one to one chat with online and typing indicators?

  • @minhloi735
    @minhloi735 5 หลายเดือนก่อน

    I did the same as you and it worked, thank you so much because simple, and useful. But in the deploy environment, Route::post('/receive', [PusherController::class, 'receive']); not worked

  • @ALQAWSI
    @ALQAWSI 11 หลายเดือนก่อน

    the first look when i saw the message text box shifted down when sent a message i knew this is a great tutorial😂😂😂

    • @codeWithRoss
      @codeWithRoss  11 หลายเดือนก่อน

      Glad you like it!

  • @faheemahmad3957
    @faheemahmad3957 6 หลายเดือนก่อน

    can you so this using Flutter laravel pusher and using GetX if needed.

  • @humantruecolors
    @humantruecolors ปีที่แล้ว +1

    great tutorial, i'm subscribing now

  • @AndresRamirez-cz5pd
    @AndresRamirez-cz5pd 8 หลายเดือนก่อน

    Hola, si su codigo envia los mensajes pero no los recive, en mi caso, lo solucione verificando los campos de const pusher = new Pusher('{{config('broadcasting.connections.pusher.key')}}', {cluster: 'us2'}); En mi caso Pusher me pone us2, así que tengo que remplazar los servidores

  • @Wawazi
    @Wawazi ปีที่แล้ว +2

    Well that was amazing

  • @Tuto1902
    @Tuto1902 ปีที่แล้ว +3

    Great content. Keep it going 👍🏻

  • @SufeeWizard
    @SufeeWizard ปีที่แล้ว

    how to develop multiple pusher ? and every pusher should called on different conditions on one view screens how can do it ? I'll thanks full to you if you can sort it out this problem thanks ?

  • @ivannicolas2573
    @ivannicolas2573 ปีที่แล้ว +1

    hi, can I ask something because I'm having an internal error. What changes or addition I need to make if there is a login/authetication(admin and users) process in my website?

    • @ivannicolas2573
      @ivannicolas2573 ปีที่แล้ว +1

      everytime I click the submit button, the internal error kept showing

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      Hey,
      I would need to take a look at your code, seems a bit more complicated.
      Happy to do it.
      Send it to hey@codewithross.com and I'll take a look. :)

  • @VishalKashyap-w2u
    @VishalKashyap-w2u 10 หลายเดือนก่อน

    hello sir, i have two different models ,i want to create chat between them, i am not using "users" table

  • @oxoss9401
    @oxoss9401 ปีที่แล้ว

    thank you man it helped me a lot !

  • @shubhod9569
    @shubhod9569 ปีที่แล้ว +1

    I'm doing everything as you did but I'm getting "Cannot use positional argument after named argument" error, what does this mean?

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      Hey!
      I'd need to look at your source code to know more.
      If you want to send me it I can take a look for you! :)
      You can find my email on my contact page.
      www.codewithross.com/contact

  • @bogdancostin7388
    @bogdancostin7388 ปีที่แล้ว +1

    one extra question, how to filter. Ex: I want to send only to a user not all users. But all users are receiving the message.

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว +3

      Hey there!
      Glad you like my video!
      You have several ways you can approach it.
      You can use the channels which is specific to a user.
      I used a public channel which everyone subscribes to but you can have individual users subscribe to a channel and then broadcast out to that specific channel.
      You could pass a user_id with the message which the other end filters out, although this is not the best method.
      For some extra reading - pusher.com/docs/channels/server_api/authorizing-users/

    • @rahulchaurasia6347
      @rahulchaurasia6347 ปีที่แล้ว

      Please explain,

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      @@rahulchaurasia6347
      If you need further help.. You can always contact me! www.codewithross.com/contact

  • @dinzaim1255
    @dinzaim1255 ปีที่แล้ว +1

    May i ask, how do you run tow locals at the same time??

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      Hey! I simply just opened two tabs of the same virtual machine. Because the code was not session based running two tabs even in the same browser would act like to completely different users.

  • @patitorodri
    @patitorodri 9 หลายเดือนก่อน

    awesome tutorial

  • @soyelghosh662
    @soyelghosh662 11 วันที่ผ่านมา

    Thanks

  • @EmailPuna
    @EmailPuna ปีที่แล้ว +1

    how do you make a private channel to show the notification to only a specific user

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว +1

      Hey!
      Here is some documentation on Pushers Website regarding private channels - pusher.com/docs/channels/using_channels/private-channels/

    • @EmailPuna
      @EmailPuna ปีที่แล้ว +1

      @@codeWithRoss thank you it worked

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      @@EmailPuna Glad I can help!
      Btw, I'm currently offering a FREE 1-2-1 with me, I'm trying to get to know my audience better and how I can best help you.
      You can ask me anything.
      If you're interested, you can signup here.
      www.codewithross.com/free-1-2-1

  • @alnahian2003
    @alnahian2003 ปีที่แล้ว +1

    This is insane!

  • @mohamedelkhalil1288
    @mohamedelkhalil1288 ปีที่แล้ว +1

    Thanks for the video and I appreciate your hard work. I've followed you so far but I got "SSL certificate problem: unable to get local issuer certificate" in my Laravel Logs, how to remove/bypass it?

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      Hey!
      I'd love to help you!
      I recommend you get in touch with me personally via email and I can help you out!
      See - www.codewithross.com/contact
      Look forward to hearing from you. :)

  • @TrikNgonlen
    @TrikNgonlen ปีที่แล้ว +3

    Let's say we have a POS app using Laravel.
    And, your boss wants you to make a real-time report page for every transactions occur.
    The boss expected to see data like [product name, total price, transaction time, sales name] of each transaction on that real-time report page.
    How do you deal with that? Would you make a demo?

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว +1

      Yes!
      I've previously worked with multiple POS providers like NCR doing exactly what you have requested.
      I can certainly look at putting together something like this.

    • @TrikNgonlen
      @TrikNgonlen ปีที่แล้ว +2

      @@codeWithRoss awesome...I can't wait for the tutorial...

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      @@TrikNgonlen Which POS system are you using?

    • @TrikNgonlen
      @TrikNgonlen ปีที่แล้ว +1

      @@codeWithRoss Currently I don't use any POS system. I'm looking for great tutorial--like yours--to build great POS system using Laravel from scratch which has a feature like I mentioned in my previous comment.

  • @junwei1414
    @junwei1414 ปีที่แล้ว

    Sir, it is the css is the key word to make the livechat work? Because i place the css under the css folder, it had many errors, even i embedded the css code on top of the blade file still got the errors, then i used my own css. However, the livechat cannot function, so i confused on this

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      Hey!
      Yes the CSS is important - chat.laravel.pusher.edlin.app/style.css
      Also you will need to include the JavaScript Libraries too.
      js.pusher.com/7.2/pusher.min.js
      ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js

  • @hamzabashir2598
    @hamzabashir2598 ปีที่แล้ว +1

    where chat is it being saved?can i see old chats?

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว +1

      Hey there!
      Unfortunately in this example, the chat is not being saved anywhere.
      But it could easily be added by adding a Model which when you send / recieve messages, it logs them in the database. :)
      I have another video coming out in a few weeks which deals with Laravel CRUD and is all about creating data in a database.

  • @imhamz23
    @imhamz23 7 หลายเดือนก่อน

    Bagaimana cara menghubungkan dengan database?

  • @jaycamanianbayron6523
    @jaycamanianbayron6523 10 หลายเดือนก่อน

    thank you sir.

    • @codeWithRoss
      @codeWithRoss  10 หลายเดือนก่อน

      Most welcome

  • @tim.bogdanov
    @tim.bogdanov 7 หลายเดือนก่อน

    how do you bind this to an actual user in your database?

  • @devsubha
    @devsubha 10 หลายเดือนก่อน

    Hello sir I want to create a livestreaming software with live chat how to do that please tell me

  • @AzeemKhan-dm3fu
    @AzeemKhan-dm3fu ปีที่แล้ว

    Its working...
    but can we save the message histroy and chat with other users.

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      In this demo it does not save the messages. But I'm releasing a new video soon which is all about saving data to a database. 😉

  • @BewwyOranda
    @BewwyOranda ปีที่แล้ว

    Nice tutorial + 1 sub!

  • @programming4fun110
    @programming4fun110 ปีที่แล้ว +1

    Hey, Great work! but I'm not able to receive messages, I can only send the messages, can you please guide ?

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว +1

      Hey there!
      Glad you like it.
      You can see my source code here - github.com/rossedlin/chat-laravel-pusher/tree/youtube
      This is an exact copy of what you see in the video. :)

  • @Icodestuff
    @Icodestuff ปีที่แล้ว

    well done!

  • @suhailsaeedusmani
    @suhailsaeedusmani 8 หลายเดือนก่อน

    Can anyone tell me the extension name which tells the name like url and action in the routes ? ❤

  • @nguyenvanquangfplhn2009
    @nguyenvanquangfplhn2009 ปีที่แล้ว

    Can it be deployed as a user to message the admin?

  • @SyedMohtashim-j9q
    @SyedMohtashim-j9q 10 หลายเดือนก่อน

    i download yor source code .. with my pusher keys but the message is not sending..

    • @codeWithRoss
      @codeWithRoss  10 หลายเดือนก่อน

      Hey!
      Have a look at the README file I always include, it has all the steps I follow when building.
      github.com/rossedlin/chat-laravel-pusher/blob/master/README.md#env

  • @salmanmanzoor1377
    @salmanmanzoor1377 ปีที่แล้ว +1

    i have a problem message send but not recieving

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      It's possible your listeners aren't picking it up. Are you sure it's definitely sending?

  • @samuelnjau8086
    @samuelnjau8086 4 หลายเดือนก่อน

    Amazing

  • @forahtv8901
    @forahtv8901 ปีที่แล้ว +1

    I do everything u did but mine still not working. 😢

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      Hey!
      You can see my code here - github.com/rossedlin/chat-laravel-pusher/tree/youtube
      Hopefully this can help you. :)

  • @oketafred
    @oketafred ปีที่แล้ว +1

    Nice content

  • @thehonestabe
    @thehonestabe ปีที่แล้ว +1

    Why JQuery? I don’t think you need jQuery for pusher

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว +1

      Interesting! I just did some more reading and you might be right! I'll have to experiment for future videos!

  • @yandinov
    @yandinov ปีที่แล้ว +1

    nice

  • @Eurynomosek
    @Eurynomosek ปีที่แล้ว

    good content 👍

  • @MdMasudulKabir
    @MdMasudulKabir 11 หลายเดือนก่อน

    Thanks

  • @ivikiiii3169
    @ivikiiii3169 9 หลายเดือนก่อน

    Nice

  • @h-ash1757
    @h-ash1757 ปีที่แล้ว +1

    I dont know why. My messages is sending after 2 seconds

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      Hey,
      It might be you have a slower connection?

    • @h-ash1757
      @h-ash1757 ปีที่แล้ว +1

      I just uploaded my code on server. now it is fast ;D

    • @codeWithRoss
      @codeWithRoss  ปีที่แล้ว

      @@h-ash1757 Amazing!

  • @jeromecruz9595
    @jeromecruz9595 8 หลายเดือนก่อน +1

    its not working

    • @codeWithRoss
      @codeWithRoss  8 หลายเดือนก่อน

      Hey,
      Just to confirm, this tutorial only works using Laravel 10.
      Use this command to ensure you install 10, no the newer version 11.
      composer create-project laravel/laravel=10.* chat-laravel-pusher

  • @FatimaZehra-b1b
    @FatimaZehra-b1b 10 หลายเดือนก่อน

    anyone tried group chat???

  • @RuturajPatki
    @RuturajPatki 9 หลายเดือนก่อน

    Too fast for me to follow. 😢

    • @codeWithRoss
      @codeWithRoss  9 หลายเดือนก่อน +1

      Sorry to hear that.
      Have you tried playing the video the video at 0.5 playback speed?
      That might help. :)

  • @adindasc
    @adindasc 10 หลายเดือนก่อน

    can u make a private chat please