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.
@manashjyotideka84793 ай бұрын
"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 🙏🙏
@shishirkumarsky3 ай бұрын
I usually add id, created_at, updated_at in $guarded array in models, because often large web applications, we have lots of columns.
@shishirkumarsky3 ай бұрын
BTW, that example for CSRF was a great explanation, in fact I also agree with your opinion upon the 419 page expired error.
@michalbany51623 ай бұрын
I would like to see something about laravel echo or reverb
@whisperscribe2 ай бұрын
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?
@jediampm3 ай бұрын
Hi Mr., why did you not teach about csrf token in PHP for beginners 2023 ? Thanks
@kemal60392 ай бұрын
Csrf token comes with Laravel, it's not a default PHP function.
@jediampm2 ай бұрын
@@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. ;)
@renatofrota21 күн бұрын
@@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?)
@davidpainzug581023 күн бұрын
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
@renatofrota21 күн бұрын
is the form field name properly updated to name="title"? check carefully the output of request()->all()
@farouk_go523535 минут бұрын
If you are still there I refreshed the db and it worked nice i don't know why