1) now, today, yesterday, tomorrow 00:44 2) timezones 01:37 3) getters 02:32 4) start, end, next 03:30 5) add and sub 05:13 6) differences 06:24 7) set test now 07:31 8) comparison 08:28 9) is it X ? 08:54 10) rounding 09:55
@randomguy59224 жыл бұрын
whenever i open carbon documentation, i close it.....because it looks huge.
@abelenocrodriguez4 жыл бұрын
Thank you very much for taking the time to explain this in the video, could you make a video explaining how to do database deploy in a production environment?
@PovilasKorop4 жыл бұрын
What exactly are you struggling with, when deploying database? Here's a video that may help you: kzbin.info/www/bejne/bnW5pomcqauNmbM
@abelenocrodriguez4 жыл бұрын
@Povilas Korop I mean how not to remove sensitive data from the database in a production environment, for example; if I add a different data structure to the one that is written as adding it without the data in production being affected... Thank you for responding.
@PovilasKorop4 жыл бұрын
@@abelenocrodriguez This one is very very individual - depending on your data structure, on how much downtime you can afford for longer migration etc. There's no "one trick" here, I'm afraid.
@abelenocrodriguez4 жыл бұрын
@@PovilasKorop Thank you, I understand, but isn't there a guide or a page that gives recommendations on how to deal with this issue in production?
@PovilasKorop4 жыл бұрын
@@abelenocrodriguez I don't know any ONE guide. It's like "isn't there a guide on how to fix computers" - there are many different computers, right? I'm planning a few videos on that topic in upcoming days/weeks, one about changing relationship from one-to-many to many-to-many (and migrating data), and another video about how to seed data when the project is live.
@christopherokonkwo2 жыл бұрын
Watching in 2022 Christmas Day and it still feels like the video was short yesterday...Carbon is really powerful
@mibrahim42452 жыл бұрын
Carbon made life easier when it comes to timing control !! .. I knew it in laravel , and now I use it even with php native :D .. Thanks !
@wahyusa2 жыл бұрын
Thank you!! Just saw your explanation and I realized that Carbon is exist and really powerfull
@nandopookey9195 Жыл бұрын
Thank you so much sir
@rahulk68023 жыл бұрын
Absolutely fantastic....
@code-rookie-233 жыл бұрын
thanks man, Keep doing again and again
@OnlineItSkills4 жыл бұрын
very nicely explained great to be on your channel
@vincentspauwen57763 жыл бұрын
Thank you fot the Video. What extension do you use to get the extra information inside the round brakcets like: ( value: 4) Regards
@LaravelDaily3 жыл бұрын
It's default PhpStorm.
@SreekalaA4 жыл бұрын
Fantastic tricks , could have chkd this a week ago👌👌
@taoufiqbenmessaoud62704 жыл бұрын
Thank you for the video
@vipinfarswan65554 жыл бұрын
Great Work.
@MashalMentor4 жыл бұрын
Thank you so much. You are genius.
@marsianinm83494 жыл бұрын
Thank you, the video is very good!
@jams17214 жыл бұрын
Great job!
@tgames33973 жыл бұрын
very helpfull thank you
@stephtech10212 жыл бұрын
how can i create a coupon and add validity to expire after a certain date
@ajaykj89252 жыл бұрын
I was trying to convert time from GI format to H:i . But it throws an error. My code is like Carbon: createFromFormat('Gi','900')->format ('H:i'); Pls help.
@jhosagidpirelapineda7808 Жыл бұрын
Thanks.
@adnanzaib33744 жыл бұрын
How we can get last date of previous month based on user input field date. Date could be any of month,year. In laravel...
@agastyasutra3 жыл бұрын
How to find difference between today and created at from database?
@LaravelDaily3 жыл бұрын
Here's the official docs on diff in Carbon: carbon.nesbot.com/docs/#api-difference
@dev.kardashov4 жыл бұрын
How to compare different tz in hours/days, etc. ?
@pauliusjankauskas80284 жыл бұрын
I was wondering why you don't use "toDateTimeString()" function and still shows not full object of Carbon, but later i realized, that you're simply echoing (not dumping) info. So "echo" somehow convert as should be. But i wanted to ask another question: can we use "now()->toImmutable()" instead of using "now()->copy()"?
@ExpDev694 жыл бұрын
I am guessing "toImmutable()" makes the current Carbon instance immutable (you will not be able to modify it/it will return a new instance for each modification), while "copy()" just makes a new instance with the same properties. So to answer your question, yes, I think you can.
@PovilasKorop4 жыл бұрын
Yes, you can, both copy() and toImmutable() can work, depending on what you want to happen with original Carbon object and its copy.
@rafaelaltieris3414 Жыл бұрын
How I can format using Carbon?
@fulufheloful4 жыл бұрын
I wish i knew about weekDays last week
@SanderCokart2 жыл бұрын
So now to cover locale format :3
@alila38834 жыл бұрын
Nice
@bishalbhattarai95084 жыл бұрын
Sir please make video on websocket
@abunayem34154 жыл бұрын
i want to get from 2 date like [2020-12-01 2020-12-07] output: 2020-12-02,2020-12-03.....
@PovilasKorop4 жыл бұрын
Haven't tested, but should work as a loop. $array = []; $date = new Carbon('2020-12-01'); do { $array[] = $date->toDateString(); $date->addDay(); } while ($date->le(new Carbon('2020-12-06'))) Probably it's possible to do something quicker with Collections, but I don't have time to play around for more.