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: CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -16,3 +16,9 @@ All notable changes to this project will be documented in this file.
16
16
## [1.0.3] - 2021-12-17
17
17
- Merged [pull requests](https://github.com/touhidurabir/laravel-stub-generator/pull/3) from [GENL](https://github.com/GENL).
18
18
- Added github issue templates.
19
+
20
+
## [1.0.4] - 2022-02-16
21
+
- Merged [pull request](https://github.com/touhidurabir/laravel-stub-generator/pull/5) from [amirmasoud](https://github.com/amirmasoud) which add the ability to specify the file extension which was only set to php previously.
Copy file name to clipboardexpand all lines: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ and then implement as follow
24
24
StubGenerator::from('some/path/to/stub/file.stub') // the stub file path
25
25
->to('some/path/to/store/generated/file') // the store directory path
26
26
->as('TheGeneratingFileNameItself') // the generatable file name without extension
27
-
->ext('php') // the generatable file name (optional)
27
+
->ext('php') // the file extension(optional, by default to php)
28
28
->withReplacers([]) // the stub replacing params
29
29
->save(); // save the file
30
30
```
@@ -155,7 +155,7 @@ class UserRepository extends BaseRepository {
155
155
156
156
## Extras
157
157
158
-
Sometimes what we have is the namespace that follows the **psr-4** standeard and that namespace path is what we intend to use for path. This package can not direcly work with the namespace path and it includes a handy trait that can help up to some extent.
158
+
Sometimes what we have is the namespace that follows the **psr-4** standeard and that namespace path is what we intend to use for path. This package can direcly work with the namespace path and it includes a handy trait that can help up to some extent.
0 commit comments