Тёмный

14 Quick Laravel Tips in 9 Minutes: May 2024 

Laravel Daily
Подписаться 145 тыс.
Просмотров 11 тыс.
50% 1

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.c...
- Filament examples: filamentexampl...
- Livewire Kit Components: livewirekit.com
- - - - -
Other places to follow:
- My weekly Laravel newsletter: us11.campaign-...
- My personal Twitter: / povilaskorop

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@ゲンスルー-g2q
@ゲンスルー-g2q 3 месяца назад
I'd personally love it if folks sharing Laravel tips could mention the version they're for. Makes life easier for everyone! 😄
@LaravelDaily
@LaravelDaily 3 месяца назад
Or, you can always upgrade to the latest version and make life easier for yourself :)
@Deadmanstrolln
@Deadmanstrolln 3 месяца назад
​​@@LaravelDaily now, you know damn well it's not feasible to alway be on the newest version within the real world corporate context
@Sebz9590
@Sebz9590 3 месяца назад
That shows we are just too lazy to read documentation😅
@nicolaslucianoismaeljara5604
@nicolaslucianoismaeljara5604 Месяц назад
Muy bueno!!! You have fans speaking spanish too 😀
@fulufheloful
@fulufheloful 3 месяца назад
I think most people don't read the documentation unless they're looking for a specific thing. Myself included
@talamah
@talamah 3 месяца назад
The best once migrate --pretend, Thanks a lot
@r.chitector
@r.chitector 3 месяца назад
Thanks a lot! Great tips and several of them are new for me! We want more! :)
@tech-trials
@tech-trials 3 месяца назад
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.
@ricko13
@ricko13 3 месяца назад
nice! and btw I agree it's twitter not "X"
@kenan.recebli
@kenan.recebli 3 месяца назад
there are also methods abort_if and abort_unless, which are also shorten abort conditionals
@Flankymanga
@Flankymanga 3 месяца назад
The PEST architectural test tip is nice..... I would be interrested to know more what PEST can do.
@LaravelDaily
@LaravelDaily 3 месяца назад
I have a few videos, search the channel. And, of course, read Pest docs :)
@SXsoft99
@SXsoft99 3 месяца назад
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
@IlijaCitrusCodes
@IlijaCitrusCodes 3 месяца назад
I ve been working in Larvel for quite some time now and these tips come in very helpfull! Thank you so much grand master.
@PabloZagni
@PabloZagni 3 месяца назад
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.
@ercog7921
@ercog7921 3 месяца назад
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
@ravi_sorathiya
@ravi_sorathiya 3 месяца назад
Know most of this but still i liked this concept of teaching 😀
@shaungbhone8368
@shaungbhone8368 3 месяца назад
Lol I already know everything
@madvier_8336
@madvier_8336 3 месяца назад
nice, it shows how much information the documentation have that i will never find by myself 😆
@daniyarbaizhaksynov9230
@daniyarbaizhaksynov9230 3 месяца назад
Great tips, i knew only 5 tips)
@julienSibille
@julienSibille 3 месяца назад
Yes tips ones are great !
@373323
@373323 3 месяца назад
yeah, twitter is twitter, not X
@ABODY734
@ABODY734 3 месяца назад
thank you for this video all of these tips didn't know any of them despite being in laravel documentation 24 / 7
@alonsoramirezpaez3259
@alonsoramirezpaez3259 3 месяца назад
Sorry for my ignorance, but, is there some way to apply the second tip (arch tests), but using PHPUNIT instead of Pest?
@LaravelDaily
@LaravelDaily 3 месяца назад
No, it's a pest function. Maybe phpunit has something but I haven't heard of it.
@VadimBesedin
@VadimBesedin 3 месяца назад
Nice set of tips, thank you.
@abdelkaderrefaat4631
@abdelkaderrefaat4631 3 месяца назад
really magic tips
@JustPlayerDE
@JustPlayerDE 3 месяца назад
here for the algorithm ^^
@ihorrud5088
@ihorrud5088 3 месяца назад
great, thanks
@icantchosemyname
@icantchosemyname 3 месяца назад
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.
@JohnDoe-jc4xp
@JohnDoe-jc4xp 3 месяца назад
I use twitter, I only subscribed on youtube. Thanks for sharing.
@muhammadumarsotvoldiev8768
@muhammadumarsotvoldiev8768 3 месяца назад
Thank you very much (from Uzbekistan, Fergana)
@victorkutenko9281
@victorkutenko9281 3 месяца назад
how beneficial (or not) is using clone for queries comparing to just working with the initial collection?
@MomoDerDodo
@MomoDerDodo 3 месяца назад
Great tipps, but isn't the oposite of the "required" validation rule "prohibited"?
@LaravelDaily
@LaravelDaily 3 месяца назад
Not sure, please try and let me know :)
@kemal6039
@kemal6039 3 месяца назад
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 3 месяца назад
​@@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.
@tlkaisali
@tlkaisali 3 месяца назад
some times i like. tips ..cause not time to read large tutorials to improve skills
@kreaweb-be
@kreaweb-be 3 месяца назад
Is the MAIL_DRIVER=log example still valid in LARAVEL 11? Because the default .env does not contain a MAIL_DRIVER entry...
@LaravelDaily
@LaravelDaily 3 месяца назад
From what I remember, it was renamed to MAIL_MAILER or something. Now off computer to check.
@kreaweb-be
@kreaweb-be 3 месяца назад
@@LaravelDaily You are correct. MAIL_MAILER it is.
@alislman534
@alislman534 3 месяца назад
we love it
@jcc5018
@jcc5018 3 месяца назад
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 3 месяца назад
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 3 месяца назад
I never used clone() - just the same situations (not exactly the same xD) like in the video but without ->clone() and everything was fine.
@aatventure
@aatventure 3 месяца назад
Thanks!!!!
@theceilidhboy
@theceilidhboy 3 месяца назад
The large number of likes for these kinds of tips likes show how many developers don’t read the Laravel docs 🤦🏻‍♂️
@kirayamato6128
@kirayamato6128 3 месяца назад
are you acoustic? when i liked this video, i don't read the docs? stfu dude. liked for the content.
Далее
18 Laravel/PHP Tips in 10 Minutes: June 2024
10:41
Просмотров 10 тыс.
Junior Code Review: Cleaning Up Laravel CRUD
14:54
Просмотров 69 тыс.
ХОККЕЙНАЯ КЛЮШКА ИЗ БУДУЩЕГО?
00:29
11 ming dollarlik uzum
00:43
Просмотров 1,2 млн
Top 5 Laravel "Bad Practices" (My Opinion)
10:32
Просмотров 22 тыс.
BEWARE these Laravel attributes | Real World Laravel
19:10
Laravel Junior Code Review: 12 Tips on Everything
15:30
Execute Code After a Response is Returned?
14:00
Просмотров 8 тыс.
Node.js is a serious thing now… (2023)
8:18
Просмотров 650 тыс.
The Tools I Use to Build Products in Laravel
19:00
Просмотров 31 тыс.
Why Signals Are Better Than React Hooks
16:30
Просмотров 478 тыс.
Laravel TALL vs VILT Stack: Explained with Examples
12:38
What is the Java Job delusion?
12:23
Просмотров 123 тыс.
ХОККЕЙНАЯ КЛЮШКА ИЗ БУДУЩЕГО?
00:29