The Laravel doco has a section on how to add a new app to an existing vagrant box. It never seems to work for me, though, without a couple of extra steps.
One extra step is to add the new app to the .hosts file (
/etc/hosts on a Mac,
C:\Windows\System32\drivers\etc\hosts on a PC), thus: Continue reading “Adding a new App in Homestead”
My contact lenses tracking app eyeb.al is working, though it’s still missing help pages, a proper welcome page, etc.
Still – it works! Hooray!!! 🙂
So PHP 7 was released a few weeks back. Which is great but I don’t want to move to it right now. I do want to move to PHP 7 some time in the next few months – but not today. Not on version 7.0.0. Continue reading “Getting PHP 5 back in Homestead”
So I spent over an hour trying to work out why
php artisan migrate rollback wouldn’t work. It kept giving me
[RuntimeException] Too many arguments in a little red box. Continue reading “php artisan migrate rollback – RuntimeException, Too many arguments”
(Note – this is a quick dot-point summary for my own benefit. It’s not written up properly.)
So I signed up for Heroku, and spent about three hours trying to work out why my app wouldn’t work.
I was getting errors about “no such file” and it was driving me nuts. I eventually worked out that the
/vendor/bin/heroku-php-apache2 file seemed to be missing. So I did
composer require --dev heroku/heroku-whatver and that didn’t help much. Continue reading “Heroku needs to be told it’s PHP not Node.js”
One day I want to learn backbone.js since I think it’s a front-end framework to do facebook-ey ajax-ey stuff. Or maybe even marionette which seems to be … I dunno, more than backbone… this site might help.
Or maybe AngularJS as it seems to be more popular than backbone and/or Marionette.
Or maybe VueJS because it seems to be lighter and simpler than backbone or Angular for small apps – you can build a small demo app in almost no time. Certainly Taylor Otwell seems to like it.
There is also Mithrill … but I don’t know if it’s really the same sort of thing.
But perhaps that should come after I get a basic server-side thing working first. 🙂
(Note – this isn’t a proper blog post, it is just a dot-point list of links for my own reference. Read and/or use it at your own risk.)
A lot of people suggest saving the user’s timezone string in the User model, so dates / times stored in UTC can be displayed in the timezone for that user.
But how to get the user’s timezone string? Continue reading “Timezones in Laravel 4, part two”