- Check your current timezone with
date
in the command line. You should get something like this.Fri Oct 3 10.32:13 UTC 2014
whereUTC
is your current timezone. - To change your timezone just run
sudo dpkg-reconfigure tzdata
and follow the instructions. Easy! - Check the timezone again with
date
. Now your timezone should be in this exampleCEST
Homestead provides an Ubuntu System and has by default only english locales installed. In PHP locales are
important if you work for example with strftime
.
Check the currently installed locales with locale -a
.
To add a new locale, you have to generate it. For example for a german locale enter sudo locale-gen de_DE.UTF-8
If you check again, the new locale should be included.
Source: StackOverflow
Simplest way I've found so far is to create a new server block (vhost) for phpmyadmin.
Assuming that your projects live in home/vagrant/Code :
sudo apt-get install phpmyadmin
Do not select apache2 nor lighttpd when prompted. Just hit tab and enter.sudo ln -s /usr/share/phpmyadmin/ /home/vagrant/Code/phpmyadmin
cd ~/Code && serve phpmyadmin.app /home/vagrant/Code/phpmyadmin
- Open the
/etc/hosts
file on your host machine and add127.0.0.1 phpmyadmin.app
- Go to http://phpmyadmin.app:8000
Source Adam Engebretson
// Install MailCatcher
$ sudo apt-get install ruby1.9.1-dev libsqlite3-dev
$ sudo gem install mailcatcher
// Run Mailcatcher
$ mailcatcher --ip 192.168.10.10
Run MailCatcher - the IP depends on the Homestead IP - configurable in Homestead.yaml Make an alias for MailCatcher in the 'aliases' file
alias mailcatcher='mailcatcher --ip 192.168.10.10'
You can now access MailCatcher in your browser at http://192.168.10.10:1080
To use MailCatcher in your Laravel application, you'll have to edit the configuration in /app/config/mail.php. However, it's recommended to copy this file to /app/config/local/mail.php so that the configuration only applies to your local development environment. Here's my mail.php config file.
<?php
return [
'driver' => 'smtp',
'host' => '192.168.10.10',
'port' => 1025,
'from' => array('address' => '[email protected]', 'name' => 'Test Email Sender'),
'encryption' => false,
'username' => null,
'password' => null,
];
It's important that you set the port to 1025, and you disable encryption
Source: Elena Kolevska - Debugging Laravel Apps on Homestead (PhpStorm + Xdebug + Postman setup)
xdebug.remote_handler=dbgp
xdebug.remote_host=10.0.2.2
"settings": {
"xdebug": {
"path_mapping": {
"home/vagrant/path/to/your/folder" : "/Users/markus/path/to/your/folder",
},
"url": "http://tc-verwaltung.app",
"super_globals": true,
"close_on_stop": true
}
}
http://www.sitepoint.com/debugging-xdebug-sublime-text-3/ http://mattwatson.codes/debug-php-vagrant-using-xdebug-sublime-text/