configPath('config.php') ->debugMode(true) ->baseUrl(BaseUrl::fromString('http://localhost')) ->databaseConfig(new DatabaseConfig( 'mysql', env('DB_HOST', 'localhost'), intval(env('DB_PORT', 3306)), env('DB_DATABASE', 'flarum_test'), env('DB_USERNAME', 'root'), env('DB_PASSWORD', ''), env('DB_PREFIX', '') )) ->adminUser(new AdminUser( 'admin', 'secret', 'admin@flarum.email' )) ->settings(['mail_driver' => 'log']) ->build(); /* * Run the actual configuration */ $pipeline->run(); echo "Installation complete\n";