File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -130,3 +130,36 @@ Now, you can create a new project with a simple command:
130130``` bash
131131larament basecamp
132132```
133+
134+ #### Herd
135+
136+ Alternatively, you can add a function instead
137+
138+ ``` bash
139+ function larament() {
140+ local cmd=" $1 "
141+ shift
142+
143+ case " $cmd " in
144+ new)
145+ if [[ -z " $1 " ]]; then
146+ return 1
147+ fi
148+
149+ local project_name=" $1 "
150+ composer create-project --prefer-dist CodeWithDennis/larament " $project_name " || return 1
151+ cd " $project_name " || return 1
152+ herd link && herd secure && herd open
153+ ;;
154+ * )
155+ return 1
156+ ;;
157+ esac
158+ }
159+ ```
160+
161+ You can now create a new project with a single command — it links, secures, and opens (with Herd) the project in your browser automatically.
162+
163+ ``` bash
164+ larament new acme
165+ ```
You can’t perform that action at this time.
0 commit comments