Комментарии:
amazing !!!!
ОтветитьAnother tip, You can now use ->latest() in your queries which will getlatest by created date (afaik)
ОтветитьThis is brilliant, thank you!
ОтветитьThis was an amazing tutorial!
Ответитьwhat is the name of IDE that you using in video?
ОтветитьI've been using Mehradsadeghi\FilterQueryString for years. Forget about if's and when's. Let the library do all that work for you. I can't find a cleaner way to do it.
ОтветитьThank you Andrew! Just what I was looking for, but couldn't find anywhere else!
ОтветитьSubscribed
Ответитьhow are you formatting your return data to look like that?
ОтветитьSuper helpful!
ОтветитьI think for tip 4, we can also use withCount from Lavaravel 5.2.32 or higher.
ОтветитьYou are amazing. Thank you
Ответитьtip3 is fire
Ответитьesto me salvo la vida User::whereHas('model', function ($query) {
$query->where('propiedad', '!=', 'value');
})->with(['model', 'model'])->get();
Diamond content
ОтветитьГовнокодик конечно… есть ощущение, что только программисты из СНГ заботятся о качестве кода.
ОтветитьThank you, how queries from relations e.g, products belong to a category and products also belongs to a type, how to get query of categories that their products have a specific type?
ОтветитьGreat Job! Thanks a lot!
ОтветитьFor tip 1 u can use ->when($expr, $callback) function
ОтветитьBe careful when using whereHas on large databases as it performs a full table scan. I would use join or whereIn instead.
ОтветитьYou are awesome man, great respect for you! (y)
ОтветитьHave you think in do an tutorial explaining queries for statistics. I haven seen videos about!.
Have a good day
Thanks, it help me.
ОтветитьI really like the way you are using to elaborate
ОтветитьHi andrew
Great tips however i have a question
Hoe about including join if conditiions is true
Like if a request comes so i want to join a new table into existing eloquent query ...
are you doing nuxt js tutorials?
ОтветитьIn the first tip what is ::query() method?
ОтветитьWay too many commercials interrupting this tutorial. Hard to follow with so many interruptions.
Ответитьfor the first optimization, there is also ->when for eloquent queries. No need to write out IF statements
Ответитьi love this
ОтветитьThanks a lot❤️
Ответитьwhat’s your keyboard 😅?
ОтветитьAmazinng!
ОтветитьGreat and perfect. Thank you
ОтветитьWhat's ".test" on your URL project? Is this somehow online?
ОтветитьGood!
ОтветитьThanks alot
ОтветитьHi, can you provide a github repo for this?
Ответитьdo you have a video that store json text to database, i'm still strugling with that?
ОтветитьI believe there is no information about ::query method in Laravel docs (your first tip). It's an awesome tip, but I can't believe there's no info about this. Or I missed it?
ОтветитьGreat tips! saved my time so much.
ОтветитьI'd looking for tip-two to make a streamlined code for a long time , thanks a lot.
Extraordinary !
Tip number 4 is what I’ve been seeking for a long time. Thanks a lot
Ответитьvery helpfull sir
ОтветитьWhat ide is that?
Ответитьwhat text editor are you using ?
Ответить