Update README.md
This commit is contained in:
parent
17e252a436
commit
dd9855d411
@ -227,6 +227,8 @@ You can select your own combination of container form this list:
|
|||||||
docker exec -it {Workspace-Container-Name} bash
|
docker exec -it {Workspace-Container-Name} bash
|
||||||
```
|
```
|
||||||
Replace `{Workspace-Container-Name}` with your Workspace container name.
|
Replace `{Workspace-Container-Name}` with your Workspace container name.
|
||||||
|
<br />
|
||||||
|
Add `--user=laradock` to have files created as your host's user. (don't forget to change the PUID (User id) and PGID (group id) variables in docker-compose.yml).
|
||||||
<br>
|
<br>
|
||||||
To find the containers names type `docker-compose ps`.
|
To find the containers names type `docker-compose ps`.
|
||||||
|
|
||||||
@ -657,7 +659,7 @@ More details about this [here](https://github.com/jenssegers/laravel-mongodb#ins
|
|||||||
7 - Test it:
|
7 - Test it:
|
||||||
|
|
||||||
- First let your Models extend from the Mongo Eloquent Model. Check the [documentation](https://github.com/jenssegers/laravel-mongodb#eloquent).
|
- First let your Models extend from the Mongo Eloquent Model. Check the [documentation](https://github.com/jenssegers/laravel-mongodb#eloquent).
|
||||||
- Enter the Workspace Container `docker exec -it laradock_workspace_1 bash`.
|
- Enter the Workspace Container `docker exec -it --user=laradock laradock_workspace_1 bash`.
|
||||||
- Migrate the Database `php artisan migrate`.
|
- Migrate the Database `php artisan migrate`.
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user