30 Days to Learn Laravel, Ep 16 - Forms and CSRF Explained (with Examples)

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

Laracasts

Laracasts

Күн бұрын

Пікірлер
@ali.haschimi2024
@ali.haschimi2024 28 күн бұрын
Vielen Dank für deine Tolle Arbeit 😊💯
@Graymar112
@Graymar112 7 ай бұрын
Best teacher
@2rock4u8
@2rock4u8 18 күн бұрын
That token insruction part was useful 🖖
@gazorbpazorbian
@gazorbpazorbian 7 ай бұрын
i've noticed that if you use fillables, it's easier to copy the entire file/model to chatgpt than copying the model plus the table migration that could be incomplete because later on you added more fields.
@fareshanoshi494
@fareshanoshi494 Ай бұрын
We need the luck because we're noobies, you're an expert and practised this multiple times 🤣
@ignat3377
@ignat3377 2 ай бұрын
Why in my phpstorm i get "Method 'create' not found in App\Models\Job" error? Even though Job class extends Model Thanks
@AhmadbambaAlfusaineyJabbi
@AhmadbambaAlfusaineyJabbi 2 ай бұрын
please can you tell us the autocomplete yoou're using because it's also important. and i was expecting it but I could not see.
@udayworldwide
@udayworldwide Ай бұрын
It is phpstorm thing.
@shishirkumarsky
@shishirkumarsky 7 ай бұрын
I usually add id, created_at, updated_at in $guarded array in models, because often large web applications, we have lots of columns.
@shishirkumarsky
@shishirkumarsky 7 ай бұрын
BTW, that example for CSRF was a great explanation, in fact I also agree with your opinion upon the 419 page expired error.
@manashjyotideka8479
@manashjyotideka8479 7 ай бұрын
"Guru Brahma, Guru Vishnu, Guru Devo Maheshwara; Guru Sakshat Param Brahma, Tasmai Shri Guravay Namah". You are one of the best teacher in my life. Thank you 🙏🙏
@khalifatwaha4212
@khalifatwaha4212 3 ай бұрын
@Laracastsofficial This is a great work will simpler explanation. During the Form and CSRF segment, I have found out that the error 419 Page Expired persists even after adding the csrf directive. I am following this tutorial with Laravel 11 installation. Is there a way to address this challenge?
@whisperscribe
@whisperscribe 6 ай бұрын
Does the index, show etc, would be the same if I'm using Vue for example? I'm using at my work and made a folder like Video and name the files, VideoPlayer.vue, VideoForm.vue etc, is that ok?
@emperor3744
@emperor3744 3 ай бұрын
In your story you fixed the problem that the password could be updated by the post request, but the malicious person could still login with the old password and change it manually or by programming the necessarry steps. Would anything other than password be a better example or am I missing something?
@jakubgadzala7474
@jakubgadzala7474 2 ай бұрын
and in your story how does the malicious person get the old password?
@emperor3744
@emperor3744 2 ай бұрын
@@jakubgadzala7474 at 11:51 you can see current password and new password
@michalbany5162
@michalbany5162 7 ай бұрын
I would like to see something about laravel echo or reverb
@capt.cacksparrow9224
@capt.cacksparrow9224 2 ай бұрын
I fell in this one once took me two days to find out the issue, my route was post/{type}/{id}
@davidpainzug5810
@davidpainzug5810 4 ай бұрын
Job::create([ 'title' => request('title'), 'salary' => request('salary'), 'employer_id' => 1 ]); return redirect('/jobs'); });``` Am stuck and i please need help the server sees the title as null even if i use ```dd(request('title'));``` i get null but if i use ```dd(request()->all()`` i get the an array with the data entered in the form
@renatofrota
@renatofrota 4 ай бұрын
is the form field name properly updated to name="title"? check carefully the output of request()->all()
@farouk_go5235
@farouk_go5235 4 ай бұрын
If you are still there I refreshed the db and it worked nice i don't know why
@jediampm
@jediampm 7 ай бұрын
Hi Mr., why did you not teach about csrf token in PHP for beginners 2023 ? Thanks
@kemal6039
@kemal6039 7 ай бұрын
Csrf token comes with Laravel, it's not a default PHP function.
@jediampm
@jediampm 6 ай бұрын
​@@kemal6039 Hi, i think you did not understand the question. What i mean was that he did not teach the concept / definition of csrf problem and how to implement in vanilla php in that course that i mention. ;)
@renatofrota
@renatofrota 4 ай бұрын
@@jediampm because that's a course for beginners... and CSRF protection is a somewhat advanced technique. it has been mentioned here because Laravel includes it by default (it would be too weird to just say "add @csrf to your form or it won't work", you know?)
@jediampm
@jediampm 4 ай бұрын
@@renatofrota lol, i recommend you to read table of content of that course because it has topics more advance than csrf token like container and service container, etc. 🤣 And that course is a base for this exactly course, as such csrf token is missing in that PHP course . 😜
@sale7680
@sale7680 3 ай бұрын
❤❤❤
@usmanfarismt1074
@usmanfarismt1074 Ай бұрын
Model::unguard();
@sale7680
@sale7680 3 ай бұрын
The deference between u and others is u r make everything clear and say the reason of why this put there And u what say everything u know for ur viewer 🙏🩵
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Cross Site Request Forgery - Computerphile
9:20
Computerphile
Рет қаралды 772 М.
I was too dumb for Laravel. Then they fixed it.
10:33
Theo - t3․gg
Рет қаралды 76 М.
30 Days to Learn Laravel, Ep 08 - Introduction to Migrations
17:02
Everything You Need to Know About Laravel in 30 Minutes
29:15
Laracasts
Рет қаралды 12 М.
30 Days to Learn Laravel, Ep 10 - Model Factories
19:17
Laracasts
Рет қаралды 12 М.
Domain-Driven Design: The Last Explanation You'll Ever Need
21:05
Software Developer Diaries
Рет қаралды 14 М.
From Blank to Blog With Laravel in 10 Minutes
12:21
Laracasts
Рет қаралды 14 М.
I built an app using a single index.php file, here's how it went
32:42
Andrew Schmelyun
Рет қаралды 91 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН