1
- ![ Build Status] ( https://travis-ci.org/skyronic/laravel-file-generator.svg?branch=master )
2
-
3
1
# Laravel file generator
4
2
5
3
This is a Laravel package which helps you automate creation of files.
6
4
7
- ![ ] ( https://thumbs.gfycat.com/OrnateWebbedCommongonolek-size_restricted.gif ) [ High Res Link] ( https://gfycat.com/OrnateWebbedCommongonolek )
8
-
9
5
### Benefits
10
6
11
7
* If you create a type of file frequently, you can automate it and improve productivity.
@@ -23,23 +19,13 @@ This is a Laravel package which helps you automate creation of files.
23
19
$ composer require skyronic/laravel-file-generator
24
20
```
25
21
26
- ** Step 2** : Add ` FileGeneratorServiceProvider ` to your ` config/app.php `
27
-
28
- ``` php
29
- 'providers' => [
30
- // ... other providers ...
31
-
32
- \Skyronic\FileGenerator\FileGeneratorServiceProvider::class,
33
- ]
34
- ```
35
-
36
- ** Step 3** : Publish the "boilerplates" - an included set of useful boilerplates like PHP Classes, Vue Components, etc.
22
+ ** Step 2** : Publish the "boilerplates" - an included set of useful boilerplates like PHP Classes.
37
23
38
24
``` bash
39
25
$ php artisan vendor:publish --tag=' boilerplates'
40
26
```
41
27
42
- ** Step 4 ** : You can list all the installed boilerplates
28
+ ** Step 3 ** : You can list all the installed boilerplates
43
29
44
30
``` bash
45
31
$ php artisan generate:list
@@ -51,11 +37,7 @@ $ php artisan generate:list
51
37
| js | JavaScript File |
52
38
| php:class | PHP Class in ' app' Directory |
53
39
| php:trait | PHP Trait in ' app' Directory |
54
- | scope | Eloquent Global Scope |
55
- | scss | SCSS File |
56
40
| view | Blade Template |
57
- | vue:component | Vue Component as a .vue file |
58
- | vue:store | Vuex Store |
59
41
+---------------+------------------------------+
60
42
61
43
Use ` artisan generate < type> ` to create a new file!
0 commit comments