- PHP >= 5.6
- Apache, MySQL
- Composer
-
Run
$ composer update
to update dependency package -
Edit
config/database.php
for environment as database config -
Edit
config/config.php
fordisable/enable
debug mode -
Edit
public/index.php
for switch development and production. Note, with production environment,config/production/config.php
is used
-
Support
php cli
command like :migrate
,generate
,seed
-
Edit
config/migration.php
In the config variable :$config['migration_version']
, set version to 20151229161829 (the number of lastest migrate file) -
Run
$ php cli migrate
to migrate database. Surely that you have already create database in MySQL and config inconfig/database.php
-
Option:
- If you want fake data for testing, run
$ php cli seed
- If you want to reset the database: set
$config['migration_version']
to 0 and run$ php cli migrate