- Видео 105
- Просмотров 150 807
Code with Burt
Бельгия
Добавлен 2 янв 2020
We create content to help our fellow Developers around the globe.
Pass by Reference vs Pass by Value in PHP: What’s the REAL Difference?
In this short video, we break down the key differences between Pass by Value and Pass by Reference in PHP. 🚀 Understanding these two concepts is essential for writing efficient and bug-free code. Learn how PHP handles variables when passed to functions, and see how small changes in your code can have a BIG impact on performance and behavior! 🔍
Whether you're a beginner or just need a quick refresher, this video will clarify:
What happens when you pass a variable by value?
How does pass by reference work?
When should you use each method for better code performance?
💡 By the end of this video, you'll have a clear grasp on both concepts and know exactly how to apply them in your projects.
Don’t fo...
Whether you're a beginner or just need a quick refresher, this video will clarify:
What happens when you pass a variable by value?
How does pass by reference work?
When should you use each method for better code performance?
💡 By the end of this video, you'll have a clear grasp on both concepts and know exactly how to apply them in your projects.
Don’t fo...
Просмотров: 883
Видео
Laravel in 2025
Просмотров 788Месяц назад
🚀 Laravel in 2025: What’s Next for the Framework? 🚀 In this video, we dive into the future of Laravel and explore the exciting updates and features coming to the framework in 2025! Discover cutting-edge tools, enhancements, and what this means for developers. PLUS, we introduce Warp Pack-our powerful, custom package designed to take your Laravel development to the next level. Whether you're a s...
Here is Eloquent's Fluent helper in Laravel | How to | Tutorial | Quick Win Wednesday #QWW
Просмотров 211Месяц назад
In this episode of the Quick Win Wednesday series, we're taking a look the Eloquent Fluent helper. #tutorial #howto #laravel #php #code #development My Gear: - Canon EOS 2000d - amzn.to/3UkDCl2 - Rode NT-USB Condenser Microphone - amzn.to/3UeTTI5 - Aputure Mini light - amzn.to/3UB9CRm
Working with Carbons Closest & Farthest in Laravel | How to | Tutorial | Quick Win Wednesday #QWW
Просмотров 154Месяц назад
In this episode of the Quick Win Wednesday series, we're playing around with 2 carbon functions to see which dates are closest of farthest from a given date. #tutorial #howto #php #code #development My Gear: - Canon EOS 2000d - amzn.to/3UkDCl2 - Rode NT-USB Condenser Microphone - amzn.to/3UeTTI5 - Aputure Mini light - amzn.to/3UB9CRm
How to use diffInDays with filters in Laravel | Tutorial | Quick Win Wednesday #QWW
Просмотров 153Месяц назад
In this episode of the Quick Win Wednesday series, we're taking a look at diffInDaysFiltered(). #tutorial #howto #php #code #development My Gear: - Canon EOS 2000d - amzn.to/3UkDCl2 - Rode NT-USB Condenser Microphone - amzn.to/3UeTTI5 - Aputure Mini light - amzn.to/3UB9CRm
Push to the background in Laravel with Defer | How to | Tutorial | Quick Win Wednesday #QWW
Просмотров 3123 месяца назад
In this episode of the Quick Win Wednesday series, we're talking about pushing things to the background in Laravel. Instead of using Jobs and a Queue, we can now defer things. Available for us since Laravel 11.23. #tutorial #howto #php #code #development My Gear: - Canon EOS 2000d - amzn.to/3UkDCl2 - Rode NT-USB Condenser Microphone - amzn.to/3UeTTI5 - Aputure Mini light - amzn.to/3UB9CRm
This was Laracon US 2024
Просмотров 5524 месяца назад
A recap video about our trip to Dallas Texas for Laracon US 2024. Featuring the trip, the apartment, the view, the bars, the restaurants, the venue, and its speakers.
Working with multiple Route files in Laravel | How to | Tutorial | Quick Win Wednesday #QWW
Просмотров 2734 месяца назад
In this episode of the Quick Win Wednesday series, we're taking a look at how you can use multiple route files in a elegant way. Available for us since Laravel 11.8. #tutorial #howto #php #code #development My Gear: - Canon EOS 2000d - amzn.to/3UkDCl2 - Rode NT-USB Condenser Microphone - amzn.to/3UeTTI5 - Aputure Mini light - amzn.to/3UB9CRm
Write cleaner code with Named Arguments in PHP | How to | Tutorial | Quick Win Wednesday #QWW
Просмотров 3476 месяцев назад
In this episode of the Quick Win Wednesday series, we'll learn about Named Arguments, which has been available for us since PHP 8. Using Named Arguments doesn't only make your code more readable, it also helps in the definition of argument order and it allows us to skip arguments that have a pre-defined value. #tutorial #howto #php #code #development My Gear: - Canon EOS 2000d - amzn.to/3UkDCl2...
Using whereAny() for cleaner queries in Eloquent | Laravel | Tutorial | Quick Win Wednesday #QWW
Просмотров 8446 месяцев назад
In this episode of the Quick Win Wednesday series, we're taking a look at whereAny(), which was released with Laravel 10.47. A very elegant way of grabbing data based on a conditional "any of the following columns". #tutorial #howto #laravel #php #code #development #eloquent My Gear: - Canon EOS 2000d - amzn.to/3UkDCl2 - Rode NT-USB Condenser Microphone - amzn.to/3UeTTI5 - Aputure Mini light - ...
Become a debugging wizard with RAY
Просмотров 1,2 тыс.7 месяцев назад
In this video we're learning how to use Ray to debug your projects. Weither your working with Laravel, PHP, Javascript or some other programming language, Ray is there for you. Debugging your project was made easy by the guys over at Spatie. They designed and developed a debugging tool for us, called Ray. Available at myray.app #debugging #webdevelopment Note: this video is NOT sponsored.
One command to create everything in Laravel | How to | Tutorial | Quick Win Wednesday #QWW
Просмотров 2877 месяцев назад
In this episode of the Quick Win Wednesday series, we'll create everything you need in just one simple command. Instead of running multiple commands to create models, policies, controllers, custom requests, migration, and factories, we can simply chain "-a" onto our Artisan command. #tutorial #howto #laravel #php #code #development My Gear: - Canon EOS 2000d - amzn.to/3UkDCl2 - Rode NT-USB Cond...
Saving data without triggering events in Laravel | How to | Tutorial | Quick Win Wednesday #QWW
Просмотров 2747 месяцев назад
In this episode of the Quick Win Wednesday series, we're taking a look at how we can save data without triggering model events. Using SaveQuietly, w're able to update or create record in our database without triggering any events. #tutorial #howto #laravel #php #code #development My Gear: - Canon EOS 2000d - amzn.to/3UkDCl2 - Rode NT-USB Condenser Microphone - amzn.to/3UeTTI5 - Aputure Mini lig...
Laravel Reverb : Getting started
Просмотров 12 тыс.9 месяцев назад
Laravel Reverb is a first-party WebSocket server for Laravel applications. In this video we're getting started with Reverb, we're building a very simple chat app which allows 2 users to communicate in real-time using a websocket server, Reverb in this case. No need for additional Javascript to make this magic work. We're using Breeze and Livewire to ease out this tutorial. #laravel #livewire #r...
Laravel 11, What is new?
Просмотров 83610 месяцев назад
A new version of Laravel was released, version 11. In this video we're taking a look at a few of the changes and what's new to the framework.
Impersonating users made easy in Laravel - Package In Review: 404labfr/laravel-impersonate
Просмотров 1,4 тыс.10 месяцев назад
Impersonating users made easy in Laravel - Package In Review: 404labfr/laravel-impersonate
Playing with OpenAI and Laravel - Package In Review: openai-php/laravel
Просмотров 2,4 тыс.11 месяцев назад
Playing with OpenAI and Laravel - Package In Review: openai-php/laravel
Laravel Livewire Volt. Functional API Components VS Class-based Components
Просмотров 7 тыс.11 месяцев назад
Laravel Livewire Volt. Functional API Components VS Class-based Components
Optimisation with Offset and Limit. Part 2
Просмотров 1,1 тыс.Год назад
Optimisation with Offset and Limit. Part 2
Liwewire wire:confirm | How to | Tutorial | Quick Win Wednesday #QWW
Просмотров 301Год назад
Liwewire wire:confirm | How to | Tutorial | Quick Win Wednesday #QWW
Optimisation with Offset and Limit, for load more & infinite scrolling in Livewire 3
Просмотров 1,4 тыс.Год назад
Optimisation with Offset and Limit, for load more & infinite scrolling in Livewire 3
Infinite Scroll with Livewire 3 and Alpine.js
Просмотров 4,8 тыс.Год назад
Infinite Scroll with Livewire 3 and Alpine.js
Implementing Load More functionality with Livewire 3 in 2 minutes.
Просмотров 2,7 тыс.Год назад
Implementing Load More functionality with Livewire 3 in 2 minutes.
Conditionally Dispatch Events in Oneliners | Laravel | How to | Tutorial | Quick Win Wednesday #QWW
Просмотров 295Год назад
Conditionally Dispatch Events in Oneliners | Laravel | How to | Tutorial | Quick Win Wednesday #QWW
Playing with Model Attribute Visibility | Laravel | How to | Tutorial | Quick Win Wednesday #QWW
Просмотров 298Год назад
Playing with Model Attribute Visibility | Laravel | How to | Tutorial | Quick Win Wednesday #QWW
I could use your help if you have time, I have done everything but my counter is not updating. When I go to the web address for the JSON script, it shows the correct number. But the counter does not update. When I contacted smiirl, they said they see {"number":-4,"error":"protocol mismatch"} on their end
Hop on the telegram group. The details are on my Twitter. We'll figure it out.
Great video! LOVED the intro "hello fellow artisans",haha I rock with it. Do you know if that package supports the OpenAI Vision model for image analysis? I couldn't find any info on that in the repo
I'm not sure to be honest. But thanks for watching! Glad you liked it!
@@CodewithBurt I ended up figuring out that it does, for anyone wondering!
Awesome! Thanks for sharing that!
Thx a lot.
You're welcome!
This bit me more times than I'd like to confess... 🫣
You're not alone. 😁🤣
Nice one
Thanks 🔥
my echo not found
Wild guess, you forgot the install broadcasting?
Is there any particular reason where should/must be used reference? Isn't better just simply avoid it everywhere?
Hi man! Sure there are, personally I use by reference more often than by value.
@@CodewithBurt can you give any example of that during "daily" coding?
Sure, for example a function that takes in the usage of for a client. While looping over all services a user has, we have a function that calculates how much they spent for that service. in that function e also update the total invoice amount and end up saving the invoice in the end (after all services have been calculated). The function would be something like this. `public function collectUsageForServceX($user, &$invoice){....}`` This is an example of something I wrote just a few days ago.
@@CodewithBurt jeez, hell no! Have you heard of single responsibility yet? I would never expect a function, that's sole purpose is to collect some info, to modify my data that I'm passing to it. Wrap your data into well-formed DTOs (data transfer objects), pass them (by ref, but without explicitly writing out the & sign), and name your method to something that yields that "hey, I'll modify it".
Well, that's basically what's happening in this example. The method is named with the action it will perform. In any case, some projects don't have DTO's, it's never a perfect world.
We have filament and livewire website. Can we convert that into desktop application?
Sure, we could use NativePHP for that. I also have a video on that.
Thanks!
Glad you liked it!
Thanks man
Glad you liked it!
I have just come into Laravel from Django and Svelt and am enjoying it a lot especially Livewire/Volt.
If he's not your brother, is he your cousin? He looks way too similar. 😆
Good question 😁 Had a lot of work to make those 50 seconds work out, to be honest... 🤣
This quick win feels like slow suffering without a photo of the dog!
The frame fell off a while ago... 😔
such a good information on carbon
Glad you liked it
Carbon has so many useful tools. I had no clue these existed. Thanks!
You bet!
I love this
Thanks for watching!
Hi, it is given the following error in my console. can you please help? "Uncaught You must pass your app key when you instantiate Pusher."
Sorry for my late reply... I think you didn't generate the key that should be present in your .env file. Are you still having this issue?
Thx that was very informative 🔥
Glad you enjoyed!
Thank, you so much. I didn't realize we could group route files in an array. Thank you so much. By the way I'm deaf so I just saw the video with no sound.
Hi Man, thanks for watching. Did RUclips's automatic subtitles help you?
I'would like to know if you have the same error: when I change the value of the perPage dropDownlist (for example from 10 rows to 20 rows) and then navigate through the paginator, The paginator return to 10 rows per page instead of allow me navigate between pages with 20 rows per page.
I think this is related to your other question...
Thanks for your video! Everythig ok until I've got an error. After clic on perpage (50 register per page) and then clic on any page of the paginator I've got "The GET method is not supported for route livewire/update. Supported methods: POST". I've alredy added WithPagination on my component but the error is still happening. Any advice how to solve it?
I found the solutions with indicating the path, in my case: $providers->setPath(route('providers'));
Sorry for my late response, I guess you're running into this issue because alpine isn't active in some way.
Thanks for this video, very well made !
Glad you liked it!
I hope you're doing well. I recently installed my RUclips Custom Counter, but I noticed that the display shows an approximate number of followers (e.g., 290,000) instead of the exact number (290,932). Is there a way to modify the code to retrieve the exact number of followers and display it on the counter instead of the rounded number?
Hi there! I have the same issue to be honest. But there is a reason... The Google API is responding with less precision as the number grows. For example when you have 3.138 subs, it will respond with 3.130, if hou have 10k+ if will give you a 100 subs precision, is you have 100k+ it will give you a 1k precision. It's kinda stupid I know...
@@CodewithBurt Thanks for the reply mate!
Great video! Straight to the point and super useful, thx!
Thanks for watching!
Hi Burt. After finding this video I've just put 2 and 2 together and realized that I saw you at Laracon when I came over to speak to Freek. I would have said hi, if i'd have realized it was you. Your report captured the event really well. Great work. And amazing hotel room!
Thanks man!
Amazing my dessert brother 👏
Thanks!
Amazing summary of LaraconUS! So good to see you again ❤
Thanks! See you soon!
It's nice that you did this and told us about it. I enjoyed the video. I watched the event on RUclips, but this video added up the missing pieces from my RUclips viewing. I know all the people you mentioned, but unfortunately through RUclips, as I know you. However, it's nice to know people around the world because you're a developer like them. It's a community that energizes you and makes you feel like you belong. I will always be grateful to those who spread that spirit.
Those are kind words. Thank you!
wow, it's like magic! thank you. anyway i have a question, i already use WithPagination, but sometime still got "The GET method is not supported for route livewire/update. Supported methods: POST." error, i need your help, thanks
Have you tried php artisan optimize:clear ?
Great tip, Since I use multi-route files, I will begin to use them Thank you
You are welcome!
nice microphone 😁
Had to be creative. 😁
Brilliant video, Thank you. I used to use PHP many years ago before moving to JS, but looking at how the PHP ecosystem has progressed, I am keen to get back and get productive again.
Glad it was helpful!
Your algorithm for checking letters is wrong. If the word is TESLA and you guess HELLO both L's will be marked as yellow, but there is only one L in TESLA. The first L in HELLO should be yellow and the second should be grey. If the answer were LEVEL then both L's in HELLO would be yellow.
Well it's not that important, the goal of the video is more about creating the game. If someone would like to have an extra check in the algorithm, it's possible to extend it.
Hey can you make an crud tutorial for laravel tall stack with volt class?
It's on my list, but I need to find some extra time. Thanks for watching!
where do i get the reverb keys from ? to put in my laravel .env
You can choose that yourself.
@@CodewithBurt i could not find the section where we can get the keys in reverb website
Sorry man, but your code style is... please use PSR and data types in your code! Anyway thanks for video.
I know. Still messing up writing a lot while talking. But thanks for watching tho. 😁
Yeaaaah, until they bring out a plug and play version like their FB and Insta versions…I’ll be keeping hold of my money. Far too complicated.
which one TO choose, PHP or LARAVEL???
Laravel is PHP in the end right.
@@CodewithBurt i am a javascript developer. I have no knowledge on php . Can I choose laravel direct to learn for job and freelancing? Please suggest me
nah bro learn php and oop php first@@amanverma8300
very useful tks
Thanks for watching!
Thank you for this cool demo Burt !
My pleasure!
done. Thank you 🙏
This method is new for me. Thank you :)
You're welcome 😊
In Livewire 3 and Laravel 11, you must to add the WithPagination trait and publish Livewire's pagination views to render page navigation links
Correct!
No offense here, just curious. I'm using both Ray and Xdebug but I always wonder if there is a significant advantage of Ray over Xdebug? When use Xdebug I don't have to remove left over ray calls in code (the clear ray CLI command doesn't detect empty ray()->...statements). At this time I'm mostly using ray to display multiple variable at once or quick simple debug.
It's a personal preference I guess. I'm not that big of a Xdebug user.
Is it safe? I want to rebuild my livewire blog app. But my concern they merge client and server thing in one file.
Yes, I use it in production for small things.
Can reverb be implemented using Laravel as an API and ReactJS (Ionic) as the front end? I attempted it, but encountered an error: 'runtime.ts:115 WebSocket connection to 'ws://localhost:8080/app/***********?protocol=7&client=js&version=8.4.0-rc2&flash=false' failed:'
Using Ray for a while now, learned many new things through your video. Thanks 🙂
Great to hear!
👍
thanks!
No problem!