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Ай бұрын
We need the luck because we're noobies, you're an expert and practised this multiple times 🤣
@ignat33772 ай бұрын
Why in my phpstorm i get "Method 'create' not found in App\Models\Job" error? Even though Job class extends Model Thanks
@AhmadbambaAlfusaineyJabbi2 ай бұрын
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Ай бұрын
It is phpstorm thing.
@shishirkumarsky7 ай бұрын
I usually add id, created_at, updated_at in $guarded array in models, because often large web applications, we have lots of columns.
@shishirkumarsky7 ай бұрын
BTW, that example for CSRF was a great explanation, in fact I also agree with your opinion upon the 419 page expired error.
@manashjyotideka84797 ай бұрын
"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 🙏🙏
@khalifatwaha42123 ай бұрын
@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?
@whisperscribe6 ай бұрын
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?
@emperor37443 ай бұрын
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?
@jakubgadzala74742 ай бұрын
and in your story how does the malicious person get the old password?
@emperor37442 ай бұрын
@@jakubgadzala7474 at 11:51 you can see current password and new password
@michalbany51627 ай бұрын
I would like to see something about laravel echo or reverb
@capt.cacksparrow92242 ай бұрын
I fell in this one once took me two days to find out the issue, my route was post/{type}/{id}
@davidpainzug58104 ай бұрын
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
@renatofrota4 ай бұрын
is the form field name properly updated to name="title"? check carefully the output of request()->all()
@farouk_go52354 ай бұрын
If you are still there I refreshed the db and it worked nice i don't know why
@jediampm7 ай бұрын
Hi Mr., why did you not teach about csrf token in PHP for beginners 2023 ? Thanks
@kemal60397 ай бұрын
Csrf token comes with Laravel, it's not a default PHP function.
@jediampm6 ай бұрын
@@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. ;)
@renatofrota4 ай бұрын
@@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?)
@jediampm4 ай бұрын
@@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 . 😜
@sale76803 ай бұрын
❤❤❤
@usmanfarismt1074Ай бұрын
Model::unguard();
@sale76803 ай бұрын
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 🙏🩵