Skip to content

Commit fe54ca4

Browse files
committed
wip
1 parent 9b5fd90 commit fe54ca4

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ All notable changes to this project will be documented in this file.
2222
- Tests update.
2323
- Readme update.
2424
- Minor fix.
25+
26+
27+
## [1.0.5] - 2022-02-23
28+
- Merged [pull request](https://github.com/touhidurabir/laravel-stub-generator/pull/6) from [amirmasoud](https://github.com/amirmasoud) which add the ability to specify the file with no extension and add Laravel 9 support .
29+
- Readme update.

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,26 @@ StubGenerator::from('some/path/to/stub/file.stub') // the stub file path
3030
->save(); // save the file
3131
```
3232

33+
By default it generate file with **php** extension but possible to override it as
34+
35+
```php
36+
StubGenerator::from('some/path/to/stub/file.stub') // the stub file path
37+
...
38+
->ext('ANY_FILE_EXTENSION')
39+
...
40+
->save(); // save the file
41+
```
42+
43+
Or set to no extension to generate **.env** like files as
44+
45+
```php
46+
StubGenerator::from('some/path/to/stub/file.stub') // the stub file path
47+
...
48+
->noExt() // to remove the extension from the file name for the generated file like .env
49+
...
50+
->save(); // save the file
51+
```
52+
3353
Also possible to get the generated content as string or download the generated file
3454

3555
```php

0 commit comments

Comments
 (0)