14 Quick Laravel Tips in 9 Minutes

  Рет қаралды 8,675

Laravel Daily

Laravel Daily

26 күн бұрын

I decided to combine Twitter tips from myself and some community member in this rapid-fire video.
- - - - -
Support the channel by checking out my products:
- My Laravel courses: laraveldaily.com/courses
- Filament examples: filamentexamples.com
- Livewire Kit Components: livewirekit.com
- - - - -
Other places to follow:
- My weekly Laravel newsletter: us11.campaign-archive.com/hom...
- My personal Twitter: / povilaskorop

Пікірлер: 52
@tech-trials
@tech-trials 7 күн бұрын
Sometimes you see or learn something but you skim over it so quick or haven't been in a situation where you needed it, then later on you do see a use for it but forgot about it, what you did was basically just highlight the information already available so that I can go "Ahh okay now I get it". Thanks! Like sometimes you learn things you don't need to know at the start and forget about it later on, and with so much to learn you don't always think of going back to the things you already went over in the past.
@user-ir6lv2nq8i
@user-ir6lv2nq8i 23 күн бұрын
I'd personally love it if folks sharing Laravel tips could mention the version they're for. Makes life easier for everyone! 😄
@LaravelDaily
@LaravelDaily 23 күн бұрын
Or, you can always upgrade to the latest version and make life easier for yourself :)
@Deadmanstrolln
@Deadmanstrolln 5 күн бұрын
​​@@LaravelDaily now, you know damn well it's not feasible to alway be on the newest version within the real world corporate context
@r.chitector
@r.chitector 19 күн бұрын
Thanks a lot! Great tips and several of them are new for me! We want more! :)
@IlijaCitrusCodes
@IlijaCitrusCodes 23 күн бұрын
I ve been working in Larvel for quite some time now and these tips come in very helpfull! Thank you so much grand master.
@ABODY734
@ABODY734 23 күн бұрын
thank you for this video all of these tips didn't know any of them despite being in laravel documentation 24 / 7
@madvier_8336
@madvier_8336 23 күн бұрын
nice, it shows how much information the documentation have that i will never find by myself 😆
@icantchosemyname
@icantchosemyname 21 күн бұрын
On tip 10 with route to view, avoid calling à function to pass data from eloquent for instance, to the view. The function Will be called each time the backend receives à request and the route file is parsed.
@kenan.recebli
@kenan.recebli 23 күн бұрын
there are also methods abort_if and abort_unless, which are also shorten abort conditionals
@Flankymanga
@Flankymanga 23 күн бұрын
The PEST architectural test tip is nice..... I would be interrested to know more what PEST can do.
@LaravelDaily
@LaravelDaily 23 күн бұрын
I have a few videos, search the channel. And, of course, read Pest docs :)
@VadimBesedin
@VadimBesedin 23 күн бұрын
Nice set of tips, thank you.
@CodeX-xyxy
@CodeX-xyxy 23 күн бұрын
please do this format that was amazing
@ricko13
@ricko13 23 күн бұрын
nice! and btw I agree it's twitter not "X"
@JohnDoe-jc4xp
@JohnDoe-jc4xp 22 күн бұрын
I use twitter, I only subscribed on youtube. Thanks for sharing.
@muhammadumarsotvoldiev8768
@muhammadumarsotvoldiev8768 23 күн бұрын
Thank you very much (from Uzbekistan, Fergana)
@julienSibille
@julienSibille 23 күн бұрын
Yes tips ones are great !
@JustPlayerDE
@JustPlayerDE 23 күн бұрын
here for the algorithm ^^
@abdelkaderrefaat4631
@abdelkaderrefaat4631 3 күн бұрын
really magic tips
@ravi_sorathiya
@ravi_sorathiya 22 күн бұрын
Know most of this but still i liked this concept of teaching 😀
@daniyarbaizhaksynov9230
@daniyarbaizhaksynov9230 21 күн бұрын
Great tips, i knew only 5 tips)
@fulufheloful
@fulufheloful 23 күн бұрын
I think most people don't read the documentation unless they're looking for a specific thing. Myself included
@PabloZagni
@PabloZagni 23 күн бұрын
I love your youtube videos, I don't miss anyone. I follow you in Twitter, but Twitter shows a lot of feeds I don't whant. I dont see all your tweets.
@ihorrud5088
@ihorrud5088 22 күн бұрын
great, thanks
@alislman534
@alislman534 23 күн бұрын
we love it
@aatventure
@aatventure 23 күн бұрын
Thanks!!!!
@SXsoft99
@SXsoft99 23 күн бұрын
People not reading docs is a pain Also in regards to the "clone" you should probably tell people what happens under the hood, meaning the way that memory is allocated. Cloning an object is something more advanced in the OOP section and a lot of people, either coming from bootcamps or university, don't know about. If you don't you will run in the problem that people on social media applaud you just because you sound smart In regards to validating "nullable" vs "sometimes required", nullable from what i remember requires the key to exist in the payload but can have value null, while sometimes applied a isset check
@victorkutenko9281
@victorkutenko9281 23 күн бұрын
how beneficial (or not) is using clone for queries comparing to just working with the initial collection?
@ercog7921
@ercog7921 23 күн бұрын
It seems to me that tip 9 will not work and the sql query will still be executed, unless stopOnFirstFailure is called for the validator
@tlkaisali
@tlkaisali 23 күн бұрын
some times i like. tips ..cause not time to read large tutorials to improve skills
@alonsoramirezpaez3259
@alonsoramirezpaez3259 19 күн бұрын
Sorry for my ignorance, but, is there some way to apply the second tip (arch tests), but using PHPUNIT instead of Pest?
@LaravelDaily
@LaravelDaily 19 күн бұрын
No, it's a pest function. Maybe phpunit has something but I haven't heard of it.
@jcc5018
@jcc5018 23 күн бұрын
so the cloning part. Is the purpose of this so that the $query variable is not changed when added modifiers are applied? How would the unverified users result be affected if the clone wasn't applied? Would this be useful if i needed to call several groups of data for instance? Lets say, when i need to filter data based on users who are male or female. Would the base query pull all users, then the sub queries separate the two without additional calls to the database? Or is that something different? I've had a few situations where i was querying the same table for different data sets and needed them to be individualized variables, and was wondering how to do so without multiple queries. Most of the times, I'd end up with a new query for each grouping, so i didnt think I was doing it right
@LaravelDaily
@LaravelDaily 23 күн бұрын
Yes the purpose is so that the $query is not changed. And your cases - it depends on the case, to be honest, there's no single recommended solution.
@rafamorawiec
@rafamorawiec 21 күн бұрын
I never used clone() - just the same situations (not exactly the same xD) like in the video but without ->clone() and everything was fine.
@kreaweb-be
@kreaweb-be 23 күн бұрын
Is the MAIL_DRIVER=log example still valid in LARAVEL 11? Because the default .env does not contain a MAIL_DRIVER entry...
@LaravelDaily
@LaravelDaily 23 күн бұрын
From what I remember, it was renamed to MAIL_MAILER or something. Now off computer to check.
@kreaweb-be
@kreaweb-be 23 күн бұрын
@@LaravelDaily You are correct. MAIL_MAILER it is.
@MomoDerDodo
@MomoDerDodo 23 күн бұрын
Great tipps, but isn't the oposite of the "required" validation rule "prohibited"?
@LaravelDaily
@LaravelDaily 23 күн бұрын
Not sure, please try and let me know :)
@kemal6039
@kemal6039 23 күн бұрын
I'm not sure why/how it would be useful though. If you don't want the users to use that column, just remove it from the request. Or maybe even put it into the $guarded array.
@MomoDerDodo
@MomoDerDodo 23 күн бұрын
​@@kemal6039 It wasn't a question of how useful it is. But I, for example, have a few use cases for it, especially for transparency in admin panels when the form changes due to certain settings.
@Sebz9590
@Sebz9590 23 күн бұрын
That shows we are just too lazy to read documentation😅
@shaungbhone8368
@shaungbhone8368 19 күн бұрын
Lol I already know everything
@theceilidhboy
@theceilidhboy 23 күн бұрын
The large number of likes for these kinds of tips likes show how many developers don’t read the Laravel docs 🤦🏻‍♂️
@kirayamato6128
@kirayamato6128 23 күн бұрын
are you acoustic? when i liked this video, i don't read the docs? stfu dude. liked for the content.
@373323
@373323 23 күн бұрын
yeah, twitter is twitter, not X
Laravel + Livewire todo app (and so much more)
16:41
Aaron Francis
Рет қаралды 33 М.
Wanna Start with Filament? Quick 5-Minute Demo.
7:50
Laravel Daily
Рет қаралды 8 М.
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 20 МЛН
Super gymnastics 😍🫣
00:15
Lexa_Merin
Рет қаралды 107 МЛН
Can teeth really be exchanged for gifts#joker #shorts
00:45
Untitled Joker
Рет қаралды 17 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 7 МЛН
Livewire or Vue.js: Which to Use When?
12:13
Laravel Daily
Рет қаралды 13 М.
Top 5 Laravel "Bad Practices" (My Opinion)
10:32
Laravel Daily
Рет қаралды 18 М.
Mastering Long-Term Laravel with Benaja Hunzinger
21:11
Laravel Switzerland Meetup
Рет қаралды 133
Why Don't We Have A Laravel For JavaScript?
12:36
Theo - t3․gg
Рет қаралды 86 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 151 М.
Strict Variable Types in Laravel: Practical Examples
9:19
Laravel Daily
Рет қаралды 5 М.
We can now transition to and from display: none
21:20
Kevin Powell
Рет қаралды 71 М.
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Daily
Рет қаралды 136 М.
Laravel's secret weapon: macros (watch me code)
23:46
Aaron Francis
Рет қаралды 18 М.
Laravel Octane: supercharge your Laravel applications
8:34
Aaron Francis
Рет қаралды 32 М.
They left the children in the car and went swimming themselves🌊😔
0:50
ГЕНДЕР-ПАТИ через ТАТУИРОВКУ
0:27
Виктор Лодин
Рет қаралды 11 МЛН
ГЕНДЕР-ПАТИ через ТАТУИРОВКУ
0:27
Виктор Лодин
Рет қаралды 11 МЛН