30 Days to Learn Laravel, Ep 17 - Always Validate. Never Trust the User.

  Рет қаралды 2,761

Laracasts

Laracasts

Күн бұрын

So far, we've taken the happy path. But that just won't do in real life. No we must always assume that the user is malicious. For this reason, both client and server-side validation is a must.
Watch Full Series on: laracasts.com/series/30-days-...
Watch thousands of videos, track your progress, and participate in a massive Laravel community at Laracasts.com.
Laracasts: laracasts.com
Laracasts Twitter: / laracasts
Jeffrey Way Twitter: / jeffrey_way

Пікірлер: 7
@2gbeh
@2gbeh Ай бұрын
PLEASE do a combined length video after episode 30 🙏
@shadeblack
@shadeblack 7 күн бұрын
Running some javascript on error to provide a toast or do some background logic/restyling is pretty cool too: @error('title') $(document).ready(() => { alert('Validation Error: {{ $message }}'); // or toast function $('[name="title"]').addClass('bg-red-100'); }); {{ $message }} @enderror
@anandgupta185
@anandgupta185 Ай бұрын
Great explanation ❤ By the way, a useful tool in this scenario is the old() helper function, which retrieves the previously entered value by the user.
@2gbeh
@2gbeh Ай бұрын
Absolutely
@mohamedaminedammak2319
@mohamedaminedammak2319 Ай бұрын
4:07 where did we specify that the title can't be null in the db end or is it just by default?
@abdulmanan5030
@abdulmanan5030 23 күн бұрын
if we didnt specify null its automaticlly take as can't be null
@mohamedaminedammak2319
@mohamedaminedammak2319 23 күн бұрын
Thank you 🤝
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 14 МЛН
ИРИНА КАЙРАТОВНА - АЙДАХАР (БЕКА) [MV]
02:51
ГОСТ ENTERTAINMENT
Рет қаралды 5 МЛН
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 8 МЛН
Why didn't the Angular team just use RxJS instead of Signals?
8:15
Joshua Morony
Рет қаралды 87 М.
When should you pick Laravel over WordPress?
26:54
viewSource
Рет қаралды 5 М.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 31 М.
Everything You Need to Know About Laravel in 30 Minutes
29:15
Laracasts
Рет қаралды 3,8 М.
Ryan Dahl introduces JSR at DevWorld 2024
29:13
Deno
Рет қаралды 100 М.
Let's Have a Dialog about Dialogs!
35:18
Laracasts
Рет қаралды 5 М.