whats the benefit of using method chaining instead of writing conventional queries using the DB:: facade? Is it somehow more secure/faster, or is method chaining just a wrapper for "easier" usage?
Depends on the amount of data you are working with. If you have huge amount of data, using the DB Facade is a lot faster than Eloquent.. From performance tests, inserting 1000 rows in a simple table takes Eloquent 1.2 seconds whereas the DB facade takes only 800 milliseconds.
The insert() method in Laravel does not add the created_at and updated_at fields by default, while the update() method does. This is because these fields are typically used for tracking changes to a record, and it makes sense to add them when creating a new record.
Welcome back ☺️
Comeback season :)
You continued! Great series so far
Of course I did! ;)
In migrations chapter you should also teach about rollback particular table and updating migrations also.
It's very helpful as dev.
That's definitely a topic but there are too many that I simply can't cover in one video :(
Thank you anyways!
Nice 🙏🏼🔥
Thanks 🔥
Wait to see Eloquent function🙂
Will definitely come ;)
What extensions are you using for autocompletion and database preview
Here are all the extensions I used in this course: ua-cam.com/video/KAUxgUvC514/v-deo.html
Fabulous 👌
Thanks 🤗
whats the benefit of using method chaining instead of writing conventional queries using the DB:: facade? Is it somehow more secure/faster, or is method chaining just a wrapper for "easier" usage?
Depends on the amount of data you are working with. If you have huge amount of data, using the DB Facade is a lot faster than Eloquent.. From performance tests, inserting 1000 rows in a simple table takes Eloquent 1.2 seconds whereas the DB facade takes only 800 milliseconds.
Thank you boss 😊❤️
This is a really detailed explanation of the Query builders. Thank you so much 🥺✨❤️
1 issue I did notice here is that the timestamp fields for created_at and updated_at were not populated when doing the insert query.
The insert() method in Laravel does not add the created_at and updated_at fields by default, while the update() method does. This is because these fields are typically used for tracking changes to a record, and it makes sense to add them when creating a new record.
Could you do more on Eloquent function please
Will be coming in this course :)
what is your database extension?
Its called Database Client.