$ sudo composer install- Create in the root directory the
.envfile based in.env.examplefile - Generate a key
$ php artisan key:generate - Set the configuration of your database inside the
.envfile
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
$ php artisan migrate --seedFirst you need to install all dependencies
$ sudo npm installAnd execute
$ gulpWatch Assets For Changes
$ gulp watchAre you having troubles with this [PDOException] SQLSTATE[HY000] [2002] No such file or directory in Mac OS?
The solution is this:
- Create the
/mysqldirectory into/var - To know the location of mysql.sock execute:
$ ps -ax|grep mysqland search--socket=/path/of/mysql.sock - And do this
$ cd /var/mysql
$ ln -s /path/of/mysql.sock /var/mysql/mysql.sock- Restart the serve of mysql