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
When you execute this command, after creating the files, you will see a list of options that will create a series of additional files for you, which of course are optional, you can choose and if you need, it will create additional files for you such as `seeder`, `factory`, `repository`, etc.
75
76
76
-
✅ After, you can see `Laravel Crod` creates crud files such as `Model`, `Controller`, `Form-Requests`, `Migrations` etc.
77
+
✅ After, you can see `Laravel Crod` creates crud files such as `Model`, `Controller`, `Form-Requests`, `Migrations`, etc.
77
78
78
79
## CRUD Query
79
80
80
-
If you run `crud:query` command, the result is:
81
+
If you run the `crud:query` command, the result is:
81
82
82
-
- Add `index`, `create`, `store`, `edit`, `update`, `destroy`function to your controller
83
-
- Get all migration columns and move it to your model fillable
84
-
- Add `index`, `findById`, `delete` functions to your repositories
83
+
- Add `index`, `create`, `store`, `edit`, `update`, `destroy`functions to your controller
84
+
- Get all migration columns and move them to your model fillable
85
+
- Add `index`, `findById`, and `delete` functions to your repositories
85
86
- Add `store`, `update` functions to your services
86
87
- Add resource route (SOON)
87
88
88
-
<strong>** You must run the migrate command, before `crud:query` command. ** </strong> <br>
89
+
<strong>** You must run the migrate command before the`crud:query` command. ** </strong> <br>
89
90
90
91
```bash
91
92
php artisan migrate
92
93
```
93
94
94
-
For using automatic query, you can run below command:
95
+
For using the automatic query, you can run below command:
When you add `--id-controller` option, the `Laravel Crod`create crud functions without [Route Model Binding](https://laravel.com/docs/routing#route-model-binding) in controller.
107
+
When you add `--id-controller` option, the `Laravel Crod`creates crud functions without [Route Model Binding](https://laravel.com/docs/routing#route-model-binding) in the controller.
107
108
108
109
After you can see `Laravel Crod` added query to service, repository, controller, model, etc.
109
110
110
111
## CRUD for Module
111
112
112
-
If you are using Modular Architecture, you are able to run `crud:make-module` command. This command create a new module and create the default crud files such as `Model`, `Controller`, `Migration`, etc:
113
+
If you are using Modular Architecture, you can run the `crud:make-module` command. This command creates a new module and creates the default CRUD files such as `Model`, `Controller`, `Migration`, etc:
113
114
114
115
```bash
115
116
php artisan crud:make-module {module_name}
@@ -125,8 +126,8 @@ When you execute this command, after creating the files, you will see a list of
125
126
126
127
## CRUD Query for Module
127
128
128
-
This command adds query and date to CRUD files for module.
129
-
This command is similar to `crud:query` command, but this command is for module. if you have a modular you can write your module name and `Laravel Crod` find it automatically.
129
+
This command adds a query and a date to the CRUD files for the module.
130
+
This command is similar to the `crud:query` command, but this command is for the module. If you have a module, you can write your module name and `Laravel Crod` find it automatically.
When you add `--id-controller` option, the `Laravel Crod`create crud functions without [Route Model Binding](https://laravel.com/docs/routing#route-model-binding) in controller.
150
+
When you add `--id-controller` option, the `Laravel Crod`creates crud functions without [Route Model Binding](https://laravel.com/docs/routing#route-model-binding) in the controller.
150
151
151
152
After you can see `Laravel Crod` added query to service, repository, controller, model, ... for your module.
152
153
153
154
## Custom path
154
155
155
-
You can custom file path in config file. ``````
156
+
You can customize the file path in a config file. ``````
156
157
157
-
With `Laravel Crod` config, you can customize the commands, for example you want to set the route file name.
158
+
With `Laravel Crod` config, you can customize the commands, for example, you want to set the route file name.
158
159
This config file exists in `config/laravel-crod.php`:
0 commit comments