carbon diffForHumans is a bit off for some reason – says 2 hours ago for a timestamp that just happened. Maybe a timezone thing?
Kind: Notes
Bit of nonsense getting the latest version of node in order to do some webmix stuff in laravel. Ubuntu always has really outdated versions of dev tools in their repos. Always need a PPA. e.g. https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
Incorporating an existing app into laravel -> https://stackoverflow.com/questions/42981992/force-laravel-to-log-in-a-user-using-legacy-authentication#43088914
Timestamps in laravel are automatically instances of carbon class. Awesome. It really helps you fall into the pit of success.
Enjoying going through the laracasts intro to laravel videos – lots of mini-projects, it’s a little like doing code katas.
Oh sweet. Web-mode in emacs automatically enables emmet.
Wait though – so the model binding calls through into the DB as well, via Eloquent? That’s cool out of the box, but I hope it’s tweakable. Say e.g. I want to use Doctrine. And also, I want the model binding more on form input.
Laravel has model binding too. Sweeeeet.
Use of strings for controller methods is a bit of a downside, but that’s part of the nature of PHP I guess. And maybe it will have its upsides too (i.e. building a string to determine which controller/method). We’ll see.
php artisan tinker – that is bloody fantastic.
