Creating Models (Crud) | Laravel 10 Tutorial : #9

  Рет қаралды 28,572

Yelo Code

Yelo Code

Күн бұрын

Пікірлер: 30
@NasserAl-Abdullah
@NasserAl-Abdullah 5 ай бұрын
Bro you explain the course in a very simple way, super right on timing and the flow of the course its not fast and its not slow and your voice is easy on the ears, moreover you deliver the ideas pretty well, keep up the good work brother and thank you so much for this valuable course
@beingSupraa
@beingSupraa 6 ай бұрын
bro u are so underrated
@yelocode
@yelocode 6 ай бұрын
Thank you
@nephisto2
@nephisto2 11 ай бұрын
Any ideas on why intellisense doesn't pick up ->create() method, or Idea::create(), at 9:25?
@Pablo-ts9dv
@Pablo-ts9dv 11 ай бұрын
->save() worked for me
@kouzokiodin3623
@kouzokiodin3623 6 ай бұрын
Well Explained! Thank u sir!
@ivanmagtoto8728
@ivanmagtoto8728 Жыл бұрын
hi, how can i fix undefined variables on my blade file? im trying to do a foreach on my $ideas and it doesnt recognize it even tho i have the right code on controller
@serefakboga3965
@serefakboga3965 9 ай бұрын
did you fix it or not ? because ı have same problem
@marvinjohn237
@marvinjohn237 5 ай бұрын
same problem as mine. How did you fix it bro?
@Antnn10
@Antnn10 8 ай бұрын
I have a little problem: I use the commands php artisan migrate, but It give an error cause It does not find sessions.
@Antnn10
@Antnn10 8 ай бұрын
Problem solved. Thanks anyway.
@marconarca-d8i
@marconarca-d8i 9 ай бұрын
can you show your blade formatting setting in the setting.json ?
@BuhuuRecords
@BuhuuRecords Жыл бұрын
Hello sir, could you explain why it is working when you have in Idea.php 'like' in protected instead of 'likes' ? Shouldn't it be named identically ?
@toeoo6973
@toeoo6973 Жыл бұрын
Yes, it should be named identically. For why it is working, he didn't use "likes" => 0 or something in the array. He only used "content" => "test". Since the "likes" array isn't being filled, it worked and the default value he gave in the Idea model which is 0 will be assigned automatically. (I may be wrong)
@yelocode
@yelocode Жыл бұрын
Thanks for watching. Yes, it's a typo in the video, since we have a default value on our database, it's not giving any error message. This is something we fix in future episodes when implementing like button. Sorry for the confusion.
@moechris6445
@moechris6445 Жыл бұрын
I've got a question, instead of orderby can't we use sortBy? Do they work in the same manner or could we have problems if we use sortBy? Thank you so much for this tutorial ❤.
@yelocode
@yelocode Жыл бұрын
Thank you for watching. They do similar things, however. sortBy is only available on collections, meaning you can only call it after ->get() and it sorts using php code while orderBy is available before ->get() and it's sorted on the database level (it's added to the sql query). Generally speaking, OrderBy is preferred since it's done at the database level and would be faster, especially if you have an index on your table. OrderBy()->get() is generally faster and better (done on Database layer) ->get()->sortBy() is done in PHP ( generally would be slower), but it does have it's uses One more point is if you have pagination, it's harder to order using sortBy(), it's way easier to user OrderBy(). I hope it helps clarify the main difference.
@moechris6445
@moechris6445 Жыл бұрын
​@@yelocode Oh okay, I totally get it now. Thank you so much for explaining it thoroughly.
@jeffjoves5085
@jeffjoves5085 Жыл бұрын
Nothing Works I don't know why , but I followed everything right since the tutorial 1
@yelocode
@yelocode Жыл бұрын
Thanks for watching Jeff. You can find the full code over at github github.com/yelocode/ideas/tree/91718b8d905747382c30d6f02697ac1d08fe1930 To check if there is something missing
@yelocode
@yelocode Жыл бұрын
if you are getting any error message you can also share here, I might be able to help you fix it
@grecueduardionut5204
@grecueduardionut5204 6 ай бұрын
I followed everything thoroughly and even used the template in the video instead of my own pages, but the entries are not saved in the data base, and not even the record works. i haven't skipped anything, I don't know why this is the case
@Mr.Capone-
@Mr.Capone- Жыл бұрын
please give a link to the template
@yelocode
@yelocode Жыл бұрын
Here is the template link: github.com/yelocode/bootstrap5-twitter-clone-template Thanks for watching
@dominicdeheuer937
@dominicdeheuer937 Жыл бұрын
where to find Model.php??
@toeoo6973
@toeoo6973 Жыл бұрын
in your file, vendor/laravel/framework/(src/illuminate)/Database/Eloquent/Model.php (or) you can just ctrl + click on the Model which will bring you directly to it.
@itsyuupi
@itsyuupi 8 ай бұрын
This should be a Udemy course.
@rodainaomaer2260
@rodainaomaer2260 5 ай бұрын
so basically u were gonna talk about model but then you left it and talked about something else and went on explaining controller
@Ahmar-ir4ek
@Ahmar-ir4ek 9 ай бұрын
😬🤐🤐🤐🤐🤐🤐🤐🤐🤐
@mehrabrafi9496
@mehrabrafi9496 Ай бұрын
Bro this isn't good practise
Laravel Form submission | Laravel 10 Tutorial #10
17:44
Yelo Code
Рет қаралды 23 М.
Why Don't We Have A Laravel For JavaScript?
12:36
Theo - t3․gg
Рет қаралды 112 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
SQLModel + FastAPI: Say Goodbye to Repetitive Database Code
19:50
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 219 М.
Controllers & MVC | Laravel 10 Tutorial #5
11:01
Yelo Code
Рет қаралды 32 М.
Angular v19 Developer Event
22:54
Angular
Рет қаралды 70 М.
Laravel + Livewire todo app (and so much more)
16:41
Aaron Francis
Рет қаралды 52 М.
React vs Angular in 2024
9:00
Kodaps Academy
Рет қаралды 71 М.
Laravel Blade 101 | Laravel 10 Tutorial #6
10:29
Yelo Code
Рет қаралды 20 М.
Modern Python logging
21:32
mCoding
Рет қаралды 209 М.
The Pros and Cons of Laravel Livewire
20:16
Josh Cirre
Рет қаралды 9 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН