Skip to content

Conversation

@crynobone
Copy link
Member

To preview the WIP package without loading inside a Laravel project, you can use the following commands:

composer run serve

To use MySQL database, you just need to do the following:

  1. Copy workbench/.env.example to workbench/.env
  2. Configure .env variable depending on your local setup
  3. Run composer run serve

To preview the WIP package without loading inside a Laravel project, you
can use the following commands:

```bash
composer run serve
```

To use MySQL database, you just need to do the following:

1. Copy `workbench/.env.example` to `workbench/.env`
2. Configure `.env` variable depending on your local setup
3. Run `composer run serve`

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
@crynobone
Copy link
Member Author

In case we want to default to sqlite in the future:

Edit testbench.yaml and add create-sqlite-db under build step:

  build:
    - asset-publish
    - create-sqlite-db
    - migrate-refresh

Then update workbench/.env to use DB_CONNECTION=sqlite and comment the other DB_* settings:

DB_CONNECTION=sqlite
# DB_HOST=127.0.0.1
# DB_PORT=3306
# DB_DATABASE=laravel_pulse
# DB_USERNAME=root
# DB_PASSWORD=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants