Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed Feb 23, 2022
1 parent 9b5fd90 commit fe54ca4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ All notable changes to this project will be documented in this file.
- Tests update.
- Readme update.
- Minor fix.


## [1.0.5] - 2022-02-23
- 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 .
- Readme update.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,26 @@ StubGenerator::from('some/path/to/stub/file.stub') // the stub file path
->save(); // save the file
```

By default it generate file with **php** extension but possible to override it as

```php
StubGenerator::from('some/path/to/stub/file.stub') // the stub file path
...
->ext('ANY_FILE_EXTENSION')
...
->save(); // save the file
```

Or set to no extension to generate **.env** like files as

```php
StubGenerator::from('some/path/to/stub/file.stub') // the stub file path
...
->noExt() // to remove the extension from the file name for the generated file like .env
...
->save(); // save the file
```

Also possible to get the generated content as string or download the generated file

```php
Expand Down

0 comments on commit fe54ca4

Please sign in to comment.