run with command:
php spark app:createdb
or in composer.json, add to the script:
"scripts": {
"test": "phpunit",
"post-update-cmd": [
"@composer dump-autoload",
"php spark app:createdb"
],
"post-install-cmd": [
"php spark app:createdb"
]
},