Тёмный
Glenn Raya
Glenn Raya
Glenn Raya
Подписаться
Комментарии
@ronaldngarombo1026
@ronaldngarombo1026 7 часов назад
Hello, could you please show how we could set up this on a linux production server? A week ago I used this package and everything was perfect on local during development. But it was a nightmare when it came to using it in production unit I had to abandon it and use Dompdf instead.
@glennraya
@glennraya 7 часов назад
I will consider it, make sure your production server meets the requirements for Browsershot by checking their documentation since not all servers are configured the same. You may also refer to puppeteer's docs: pptr.dev/troubleshooting#chrome-doesnt-launch-on-linux. And also Spatie's requirement guide: spatie.be/docs/browsershot/v4/requirements#content-custom-node-and-npm-binaries
@webdevlounge
@webdevlounge 14 часов назад
You deserved more subscribers
@glennraya
@glennraya 14 часов назад
Thank you! 🙏
@muntasirhasan2052
@muntasirhasan2052 День назад
Thanks for you information i tried this and its working very good in my local machine but when i am moving it to production it gives BroadcastException: Pusher Error (Not found) when i trigger Event I think you may help me Thanks
@glennraya
@glennraya 22 часа назад
Hi, make sure that Reverb's credentials are set in your .env file and clear and re-cache your config cache 'php artisan config:cache'. You also need to make sure that Reverb/Broadcasting is installed on your production environment. If you are using SSL, follow these steps from the Laravel docs: laravel.com/docs/11.x/reverb#ssl. Also restart Reverb itself: 'php artisan reverb:restart', and also don't forget to run your queue worker in production: 'php artisan queue:work' (better setup supervisor to restart the worker when needed).
@elrincondeisma
@elrincondeisma День назад
Tailwindui library? I see a beatiful dashboard.
@glennraya
@glennraya 23 часа назад
No, it's not tailwindUI. I made it myself, though it was inspired by the Arc browser UI, and the date range picker is from nextUI. Thanks
@scherzer6428
@scherzer6428 8 часов назад
@@glennraya Can you make a video about the dashboard
@glennraya
@glennraya 8 часов назад
​@@scherzer6428 I don't think making a video about the dashboard is going to bring much value to people haha. Thanks for the compliment. However, I will upload a new video tomorrow, creating advanced, Google like search engine for one's projects.
@benedettosciuto6924
@benedettosciuto6924 День назад
can Laravel PDF Magic repeat header and footer on every page?
@glennraya
@glennraya День назад
Spatie's Browsershot package doesn't directly support including the header on every succeeding page, however, you may achieve the repeating header effect by experimenting with custom CSS, like setting the header with a fixed positioning so it "could" appear on every page.
@mon_codes
@mon_codes День назад
thanks idol, u have my sub
@yoskokleng3658
@yoskokleng3658 2 дня назад
how about laravel print automatic to printer witout pop up print screen in browser through javascript (window.print). i mean print it automatic from server side (silent print). please make this tutorial .
@glennraya
@glennraya День назад
@@yoskokleng3658 I don't think that's possible on a web interface. Maybe some form of dirty hack would do.
@yoskokleng3658
@yoskokleng3658 2 дня назад
what's framework for css ? if i can think of the style of report design like u. my customer would love me 🤣😭
@glennraya
@glennraya День назад
@@yoskokleng3658 I use tailwindcss for the css framework.
@honglinhvu1204
@honglinhvu1204 2 дня назад
Thank
@gamesandlofimucic
@gamesandlofimucic 2 дня назад
do you have a vuejs version of this? would love to watch it
@glennraya
@glennraya 2 дня назад
I also use Vue, but right now I don't have an example of this using Vue, however, it's not very hard to transfer the concept here in Vue, you only have to listen to the channels inside the onMounted() hook in Vue, since this is React, of course, it's inside of the useEffect(). That's all the major difference when it comes to the implementation.
@gamesandlofimucic
@gamesandlofimucic 2 дня назад
@@glennraya yung problem ko po kasi dun sa ginawa ko is di ko mapagana yung chat notification sound at yung sa group chat na instead of yung members lang makakatanggap ng message, lahat ng users ang nakaka tanggap haha. pero okay lang po sir, will wait kung meron ka man bago tutorials
@glennraya
@glennraya 2 дня назад
@@gamesandlofimucic sa notif sound, search ka na lang ng similar implementation sa vue, if lahat ng users nakakatanggap, need mo lang ipasa yung ID ng user na gusto mo padalhan dun sa broadcast event class, para yun lang ang makaka listen ng events.
@glennraya
@glennraya 2 дня назад
@@gamesandlofimucic Yung pinaka latest kong video about Reverb: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-C39uG7PaeDI.htmlsi=iYipIPdQVCwbY77Z - one on one chat na yan, kaso React pa din, makak receive lang ng message is yung intended user, hindi lahat. Check mo lang yung event class saka yung Echo listeners ko sa code, available sa description.
@rondevPH
@rondevPH 2 дня назад
hard to implement on windows
@emmanuelsiziba5142
@emmanuelsiziba5142 2 дня назад
I agree with you
@glennraya
@glennraya День назад
@@rondevPH Really? I couldn't try it, I don't have a windows machine. 😅
@rondevPH
@rondevPH День назад
@@glennraya good for you. That is why dompdf is the only way😅
@JavierHernandez-jg3wo
@JavierHernandez-jg3wo День назад
I'm trying to get it to work with laragon on windows but I can't figure out how to get it to work.
@glennraya
@glennraya День назад
@@rondevPH hmm, can't tell for sure, Browsershot docs doesn't mention any incompatibility with Windows.
@gamesandlofimucic
@gamesandlofimucic 2 дня назад
where do you get ID and keys for reverb in the env file? also, nice tutorial, subscribed to you haha
@glennraya
@glennraya 2 дня назад
There's no artisan command to generate that unless you install broadcasting from scratch, but you can set it to whatever string/numeric values you want for as long as it is unique. That's all it requires.
@gamesandlofimucic
@gamesandlofimucic 2 дня назад
@@glennraya so hindi na need gumawa ng account boss? hindi katulad ng pusher? so random string as long as unique?
@glennraya
@glennraya 2 дня назад
@@gamesandlofimucic yes po. Wala ng account bale parang locally hosted yan
@rondevPH
@rondevPH 3 дня назад
Is subscription payment available?
@glennraya
@glennraya 3 дня назад
Hi, as of now, the subscripiton API is not yet available.
@rondevPH
@rondevPH 3 дня назад
@@glennraya okay thanks
@riddlerealm_0
@riddlerealm_0 3 дня назад
you are amazing. Thank you
@glennraya
@glennraya 3 дня назад
Thank you! 🙏
@farhadfarzi3351
@farhadfarzi3351 4 дня назад
Thats so cool.😯
@glennraya
@glennraya 4 дня назад
@@farhadfarzi3351 thanks 🙂
@AkshaySharma-tm3jv
@AkshaySharma-tm3jv 4 дня назад
Hello brother, this is an awesome video. I want to integrate the same but with the react js frontend and I am using passport for the authentication but i got an error which is POST "localhost:5173/api/broadcasting/auth 404 (Not Found)" and i don't know why and how can you help me with that (also I haven't used laravel breeze)
@rajaasyraf25
@rajaasyraf25 4 дня назад
Thanks a lot for sharing this!
@glennraya
@glennraya 4 дня назад
@@rajaasyraf25 you're welcome 🙏☺️
@hamzabarry7880
@hamzabarry7880 5 дней назад
Hi I'm using livewire how to dispach my event??
@glennraya
@glennraya 4 дня назад
Hi, I'm not using livewire so I can't tell 😅 to my knowledge people say it's actually easier in livewire. However dispatching an event is just the same: broadcast(...) or event(...) from your controller methods or wherever you need to dispatch the event.
@hamzabarry7880
@hamzabarry7880 4 дня назад
@@glennraya yes it's normally very easy to dispatch but I have a problem that I don't know where he is from
@jimmyarb7767
@jimmyarb7767 5 дней назад
Sir Glenn i found difficulty in production there is an error in node any advice to fix it.
@glennraya
@glennraya 4 дня назад
What node version are you using? Puppeteer requires node version 18 and up.
@ronaldngarombo1026
@ronaldngarombo1026 7 часов назад
@@glennraya I personally was using node 22 but face the error @jimmyarb7767 is probably referring to. Issue was with node and puppeteer
@codegamer69
@codegamer69 5 дней назад
Can you make a video to setup reverb in production? I couldn't get it to work, there are nginx errors i think. I did google everything but i couldn't fix it.
@glennraya
@glennraya 5 дней назад
I'm planning that video, others privately messaged me and they were able to deploy it in production, maybe your nginx/reverb is misconfigured.
@codegamer69
@codegamer69 5 дней назад
@@glennraya might be
@glennraya
@glennraya 5 дней назад
@@codegamer69 It's highly likely, one person even messaged me that he was able to deploy this in a React Native app, with Laravel as its back-end API.
@kaiserdianalan7059
@kaiserdianalan7059 5 дней назад
Huui nakikita kita sa programmer code posting
@glennraya
@glennraya 5 дней назад
FB group po pa yun? haha
@wuba6977
@wuba6977 5 дней назад
Does it support all browsers?
@glennraya
@glennraya 5 дней назад
Yes, it supports all modern browsers.
@israeliloba
@israeliloba 6 дней назад
How do I turn the nextjs app to typescript
@glennraya
@glennraya 5 дней назад
In the example I used Laravel's NextJS scaffolding which is in regular JS, if you want to use typescript, you need to install a brand new nextjs via npx then configure it to use typescript, you can refer to nextjs docs for that.
@ajmal7247
@ajmal7247 6 дней назад
Can you share the source code?
@glennraya
@glennraya 6 дней назад
Yes sure, I'll push it to github and linked on the description.
@glennraya
@glennraya 6 дней назад
github.com/glennraya/browsershot
@ajmal7247
@ajmal7247 6 дней назад
@@glennraya i got the below error when i generate pdf in windows.I already have node installed in the system.How can i solve this The command "node "D:\wamp64\www\browsershot\vendor\spatie\browsershot\src/../bin/browser.cjs" "{""url"":""file:\/\/C:\\Users\\Ajmal\\AppData\\Local\\Temp\\896216291-0639441001719154368\\index.html"",""action"":""pdf"",""options"":{""path"":""D:\\wamp64\\www\\browsershot\\storage\\\/app\/reports\/example.pdf"",""args"":[],""viewport"":{""width"":800,""height"":600},""displayHeaderFooter"":false,""margin"":{""top"":""4mm"",""right"":""0mm"",""bottom"":""4mm"",""left"":""0mm""},""format"":""A4"",""printBackground"":true}}"" failed. Exit Code: 1(General error) Working directory: D:\wamp64\www\browsershot\public Output: ================ Error Output: ================ 'node' is not recognized as an internal or external command, operable program or batch file.
@christiancolewan
@christiancolewan 6 дней назад
Ang ganda ng explanation kung ganto lang sana mga speakers sa DICT seminars😅
@glennraya
@glennraya 6 дней назад
ahaha, salamat po! 😆
@chhupiseth
@chhupiseth 6 дней назад
How about when token expires what should we do sir?
@glennraya
@glennraya 6 дней назад
Hi, in the description of the video, I mentioned an update there regarding returning the response of the auth token as cookies, but you can instead return it as json, return response()->json(['token' => $token]); It will ensure that the token won't have an expiration by default.
@hamburger--fries
@hamburger--fries 7 дней назад
Wow! This saved me some time and I did not know about Reverb. I am using it for a Book project taking Japanese to other languages and allow users to edit the text. I section text into blocks which could be a paragraph or a sentence and users can see which blocks of text in the book are being edited or have a hold because someone already edited. I used Tailwind as well. Thanks for this wonderful video you put out!
@glennraya
@glennraya 7 дней назад
Thanks for your kind comment. Good luck on your projects. You may check my other videos related to Laravel Reverb. ☺️🙏
@user-gg2rc2mt4g
@user-gg2rc2mt4g 8 дней назад
I use this feature with traits. 👌 Makes it easier to implement
@Tuto1902
@Tuto1902 8 дней назад
This is fantastic content! You deserve more subscribers. Keep it up 👍🏻
@glennraya
@glennraya 8 дней назад
Thank you! ☺️
@user-zh5bo3tz5x
@user-zh5bo3tz5x 10 дней назад
it is working, but i had to install pusher js, even i don't need it. otherwise there is an error: ReferenceError: Pusher is not defined
@glennraya
@glennraya 9 дней назад
Yes, I'm aware of the Pusher is not defined error, to what I remember, you only need to put the window.Pusher instance in the useEffect hook. If you try to remove pusher, it won't work. I think Echo is using some of Pusher's methods, maybe that's why it is still needed and was included in the docs to be installed.
@blacksun6761
@blacksun6761 10 дней назад
hi please which vscode theme do you use ?
@glennraya
@glennraya 10 дней назад
Palenight theme.
@JordanJanevski
@JordanJanevski 12 дней назад
Very informative and nicely done. I tried this in my local env. but i cant pass this simple error. I can notice at 8:25 of this video that your console shows the same thing for you as well. Firefox cant establish a connection to wss. I tried both laravel Herd (free) and docker but to no avail. Do you have any guidance for how to resolve this? Thanks in advance
@glennraya
@glennraya 12 дней назад
Thanks for the comment, you have to make sure that REVERB_HOST is set your local domain "example.test" and your REVERB_SCHEME is set to https. In some dev environments, some do encounter this issue on Firefox, so far I don't encounter this. Kinda unpredictable, but it should work normally in production.
@JordanJanevski
@JordanJanevski 12 дней назад
@@glennraya Thanks for the answer, I already have the env set with the correct data. But i am already at this for 2 days and i slowly lean to giving up :/
@glennraya
@glennraya 12 дней назад
If you're developing on Windows but it's working on Webkit browsers (chrome, edge, etc.) it should be fine, other people also have this issue on Firefox on Windows because Firefox seems to have been rejecting local SSL, in production it should be fine. On macOS though, it seems to be ok.
@glennraya
@glennraya 12 дней назад
@@JordanJanevski I suggest removing the local SSL and testing it on HTTP only (without SSL), and it should work. I also talked to other people regarding this, and their issue is that the local SSL on Windows seems to be not working on all browsers.
@JordanJanevski
@JordanJanevski 12 дней назад
@@glennraya After disabling the SSL in herd, and changing app url and reverb scheme to http, I dont see any differences. I still see the error in the console being for wss.. is windows this bad or is it just me? x.x its the same for both chrome / firefox
@anthonyhidalgo3391
@anthonyhidalgo3391 17 дней назад
Nice video, what is your vsc theme please
@glennraya
@glennraya 16 дней назад
Thanks! The theme is "Github Dark Palenight"
@chandrashekar-us6ef
@chandrashekar-us6ef 17 дней назад
What exactly is SPA, what is the server response of SPAs on first launch on the browser?
@glennraya
@glennraya 17 дней назад
SPA is a web app that loads only a single HTML page and typically updates only the contents/data that needs to change. In contrast of traditional MPA (multi-page app) where all data are loaded everytime. On first launch, the backend will respond to a request to deliver the contents (along with the necessary JS/CSS files) which is then rendered/initialized.
@chandrashekar-us6ef
@chandrashekar-us6ef 17 дней назад
@@glennraya thanks a lot and keep up with your work, I will share this video with my friends.
@glennraya
@glennraya 17 дней назад
@@chandrashekar-us6ef Thank you! You might want to check out the curriculum at Udemy. Thanks.
@JSONFX
@JSONFX 18 дней назад
What do you use for this project? Awesome video by the way!
@JSONFX
@JSONFX 18 дней назад
and also what theme are you using?
@glennraya
@glennraya 17 дней назад
Thank you, I used nextUI for some of the UI. It's the Laravel Breeze scaffolding.
@JSONFX
@JSONFX 11 дней назад
@@glennraya what font are you using for this project?
@glennraya
@glennraya 10 дней назад
@@JSONFX Github's Monaspace code fonts (Monaspace Neon).
@djx3139
@djx3139 18 дней назад
We need Next.js course now
@glennraya
@glennraya 18 дней назад
That's the plan 😀
@darck5240
@darck5240 19 дней назад
no wss
@glennraya
@glennraya 18 дней назад
Since this is in a local development environment, it doesn't need to.
@darck5240
@darck5240 18 дней назад
@@glennraya are there any additions required for wss, assuming an ssl certificate and https are already implemented
@glennraya
@glennraya 18 дней назад
@@darck5240 Yes, if you're using wss, you need to specify the actual domain name in your .env file for the REVERB_HOST, and the REVERB_SCHEME should be 'https' instead of 'http'
@darck5240
@darck5240 18 дней назад
@@glennraya Thank you for your help and time. however something still seems to be missing since postman is only connecting on ws and not wss. i'll come back here and comment if i ever find the solution, great tutorial though keep it up ✌
@glennraya
@glennraya 18 дней назад
@@darck5240 There's a guide for using SSL with Reverb on Laravel's docs.
@rex90782
@rex90782 19 дней назад
Can we use reverb broadcasting with vuejs separate project ?
@glennraya
@glennraya 19 дней назад
Hi, absolutely you can. If you watched this video the implementation in vuejs should be similar. The only difference would be for example, you would place the Echo event listeners inside of the onMounted() hook in Vue, instead of inside the useEffect in React of course. You can use Reverb in any front-end framework (React, Vue, Svelte, Gatsby, Next, Angular, etc.).
@rex90782
@rex90782 19 дней назад
@@glennraya Thanks man. I appreciate it.
@TM-ss8ch
@TM-ss8ch 15 дней назад
@@glennrayaBrother, I am using vue 3 with vite and typescript. How can I make these configurations in typescript?
@glennraya
@glennraya 15 дней назад
@@TM-ss8ch what specific configuration?
@TM-ss8ch
@TM-ss8ch 15 дней назад
@@glennraya I mean how can I subscribe to my channels in vuejs with laravel echo, and listen for events. The laravel echo has a file in echo.js. I can't use that because I am already using typescript. So I have to adapt it as a ts in my main.ts file I think. And then listen to channels for events. But I cant find the correct ts syntax. My vue app is separated from laravel.
@adelinomasioli
@adelinomasioli 19 дней назад
How did you integrate Laravel and NextJS?
@glennraya
@glennraya 19 дней назад
Hi, in the video I specifically discussed integrating Reverb with NextJS. I used the NextJS scaffolding for Laravel made by the Laravel team themselves, and it's mentioned/discussed in the video at the beginning.
@warisraza697
@warisraza697 20 дней назад
can we use reverb broadcasting with react js separate project ?
@glennraya
@glennraya 19 дней назад
Yes, absolutely. The implementation should be the same in a React project, the same is true with other frameworks.
@warisrazaarain1544
@warisrazaarain1544 19 дней назад
I m facing problem since 2 days last night I found your video on RU-vid. this is my code snippet if you can help me this is my front-end side code useEffect(() => { if (echo) { echo.private(`order`) .listen('orderEvent', (e: any) => { console.log('Real time event', e); }); } }, []) event trigger from back-end code broadcast(new OrderEvent($order->toArray()))->toOthers(); but I dont get response in my console
@glennraya
@glennraya 19 дней назад
@@warisrazaarain1544 First, you should ensure that you are accepting the event payload in the __construct() method of your OrderEvent class. And also, since this is a private channel, you should accept the "id" of the currently authenticated user in your channels.php route, ex. 'order.{id}'... That is discussed in my first Reverb video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jMcIE1hnaYw.html
@warisrazaarain1544
@warisrazaarain1544 19 дней назад
I receive data in my browse`s network message after adding new record but not in the console these are the screenshots screenshot
@glennraya
@glennraya 19 дней назад
@@warisrazaarain1544 If it doesn't print on the console, it's likely there's an issue on your Echo event listener on the frontend, check your syntax and in your code example ( echo.private(`order`)), you didn't specify the id of the currently authenticated user or the id of the one who should receive the event: "echo.private(`order{id}`)"
@kwasiezor1630
@kwasiezor1630 21 день назад
Very nice video. Can you do another one about Vuejs
@glennraya
@glennraya 21 день назад
Thank you! I would consider it. 😊
@misterjs023
@misterjs023 22 дня назад
very good! thanks....do you know if the configurations for React Native as a client should be applied at the same way?
@glennraya
@glennraya 22 дня назад
I haven't tried it in React Native, but if you can pull npm packages in React Native and if it supports protocols for websockets, I think it would work.
@misterjs023
@misterjs023 22 дня назад
​@@glennraya yes, we can do this, I´ll try to implement using laravel as "websocket-backend"
@misterjs023
@misterjs023 18 дней назад
​@@glennraya bro, I'm trying to do this, the connection is working, it's just not subscribing to any channels, are the "Authorizing Private Broadcast Channels" steps in "SPA Authentication" mandatory for "Mobile App Authentication"? what do you think?
@glennraya
@glennraya 18 дней назад
@@misterjs023 Yes, I think you should implement the authorization of private channels as well in mobile apps, additionally, I got some "update" notes in the video description, in your Laravel backend, in the authentication part, you can just return your tokens as "JSON response" instead of cookie, you might get an issue logging in (but should still work).
@glennraya
@glennraya 18 дней назад
@@misterjs023 In your Echo events, it should accept an "id" of the currently authenticated user or the id of the user who can listen to an event, for private channels that is required.
@TheHenriquesbr
@TheHenriquesbr 22 дня назад
Cool, simple and straightforward. I tried several projects and none worked through the network. Only on the server. Like using another machine or over the phone doesn't work. Any tricks to make it work?
@glennraya
@glennraya 22 дня назад
I haven't tried that setup yet, but it should be fairly easy to setup in production servers.
@TheHenriquesbr
@TheHenriquesbr 22 дня назад
@@glennraya Thanks for the feedback! Maybe when you have some free time, you could make a video explaining how to put it into production on a local server. Lay people always wanting to learn from the best. Thanks again and stay focused on helping others!
@glennraya
@glennraya 22 дня назад
@@TheHenriquesbr Yes, I actually planning the video for deploying Reverb into a production server, a VPS with a domain. Thank you for your feedback! ☺
@wormy_coder
@wormy_coder 23 дня назад
Keep it up, please make more tutorial
@glennraya
@glennraya 22 дня назад
Thanks, I will post regularly. ☺️
@jokergamingtv5002
@jokergamingtv5002 23 дня назад
Good Jop 🔥🔥🔥
@yamato23488
@yamato23488 23 дня назад
Pwede sa laravel 10 sir?
@glennraya
@glennraya 23 дня назад
Yes pwede po.
@sammymathias
@sammymathias 23 дня назад
Here before you blow on YT
@justinangeloperez5650
@justinangeloperez5650 23 дня назад
🔥🔥
@MrAtomUniverse
@MrAtomUniverse 23 дня назад
Wouldn’t the auth be confusing since next has its own auth framework
@glennraya
@glennraya 23 дня назад
If you are going to pair Laravel API/Reverb in this case with NextJS, your auth provider would now be Laravel itself since it's your backend provider.
@zulfiqrysaadputra
@zulfiqrysaadputra 17 дней назад
NextAuth.js is third party, and will be renaming to Auth.js. I would not call it its "own auth framework" since it's not included in NextJS
@markchristianmarquinez3129
@markchristianmarquinez3129 23 дня назад
🔥