$ sudo composer install
- Create in the root directory the
.env
file based in.env.example
file - Generate a key
$ php artisan key:generate
- Set the configuration of your database inside the
.env
file
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
$ php artisan migrate --seed
First you need to install all dependencies
$ sudo npm install
And execute
$ gulp
Watch Assets For Changes
$ gulp watch
Are you having troubles with this [PDOException] SQLSTATE[HY000] [2002] No such file or directory in Mac OS?
The solution is this:
- Create the
/mysql
directory into/var
- To know the location of mysql.sock execute:
$ ps -ax|grep mysql
and 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