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
{{ message }}
This repository was archived by the owner on Apr 29, 2020. It is now read-only.
@@ -30,7 +30,7 @@ Note: For Laravel 5.4 see version 1.0
30
30
]
31
31
```
32
32
33
-
3. Add the following entry to your providers array in`config/app.php`:
33
+
3. The package should be auto-discovered by Laravel. For manual registration, add the following entry to your providers array in`config/app.php`:
34
34
35
35
```php
36
36
'providers' => [
@@ -43,21 +43,21 @@ Note: For Laravel 5.4 see version 1.0
43
43
That's it!
44
44
45
45
## Usage
46
-
You can use the Artisan make commands provided by your Laravel application like always.
47
-
For example, just execute the following command to create a new controller class with the name `UserController`:
46
+
You can use the Artisan make commands provided by your Laravel application as always. This package is just an extension to provide more options and the flexibility to specify your own stub files.
47
+
For example, just execute the following command to create a new controller class with the name `UserController` but with your custom specified stub file (if one exist):
48
48
49
49
php artisan make:controller UserController
50
50
51
51
For more details as well as a list of all available commands have a look at the [wiki of this package](https://github.com/ferdinandfrank/laravel-file-generator/wiki).
52
52
53
53
### Publishing stub files
54
-
To have the full benefits of this package you can execute the following command. This will publish all the stub
54
+
To have the full benefits of this package you can execute the following command to publish all the stub
55
55
files which are used to create the php files when executing an Artisan make command.
56
56
57
57
php artisan vendor:publish --tag=stubs
58
58
59
59
By default the stub files will be copied to the `resources\stubs` folder of your application. As soon as you call
60
-
an Artisan make command after you executed this publishing command for the stubs the stub files for generating
60
+
an Artisan make command after you executed this publishing command the stub files for generating
61
61
a new php file will be used as the template from this folder. To modify the path to your stubs file have a look
62
62
on the next section 'Configuration'.
63
63
@@ -72,7 +72,5 @@ This command will generate the file `laravel-file-generator.php` within your con
72
72
## Commands
73
73
You can see all details and documentation about the available make commands on the [wiki of this package](https://github.com/ferdinandfrank/laravel-file-generator/wiki).
74
74
75
-
**Important:** Laravel's native command`make:resource` is represented by the command`make:api-resource`in this package.
0 commit comments