You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+102Lines changed: 102 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,108 @@ This package helps in separating base laravel application in docker build step.
19
19
> > You are free to update the stubs once they are published.
20
20
> > You can also install other required packages as you would previously.
21
21
22
+
## Local Set Up
23
+
- Create a fresh laravel application as we do for all projects
24
+
- Create a folder ``` packages ```` at ``` /var/www/laravel/packages```
25
+
- Create a folder ``` uisits``` which is the vendor name for our package in the packages directory at ``` /var/www/laravel/packages/uisits```
26
+
- cd into this vendor name folder (``` cd /var/www/laravel/packages/uisits```) and run ``` git clone git@github.com:uisits/ui.git ```
27
+
- This copies all the files of the package from github.
28
+
- To work on the **7.x** run ``` git checkout 7.x``` (Here 7.x is the name of the branch on github)
29
+
- Similarly to work on the **8.x** run ``` git checkout .8x``` (Here 8.x is the name of the branch on github)
30
+
- To use this package locally we need to add this package to our laravel app. We can do this by adding the following to out ``` composer.json``` file at ``` /var/www/laravel/composer.json```.
31
+
```php
32
+
"repositories": {
33
+
"local": {
34
+
"type": "path",
35
+
"url": "./packages/uisits/ui"
36
+
}
37
+
},
38
+
```
39
+
Now your entire composer.json file looks like this:
0 commit comments