Skip to content

Commit 4c66e6b

Browse files
committed
=Fixes a bug with the edit view. Also, fixes a bug in when using controller's directory and model's directory
1 parent 5b9667a commit 4c66e6b

23 files changed

+468
-460
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "crestapps/laravel-code-generator",
33
"license": "MIT",
4-
"description": "A clean code generator for Laravel framework that will save you time!This awesome tool will help you generate resources like views, controllers, routes, migrations, languages or request-forms! It is extremely flexible and customizable to cover many use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.",
5-
"version": "v1.1.0",
4+
"description": "A clean code generator for Laravel framework that will save you time! This awesome tool will help you generate resources like views, controllers, routes, migrations, languages or request-forms! It is extremely flexible and customizable to cover many use cases. It is shipped with cross-browsers compatible template, along with a client-side validation to modernize your application.",
5+
"version": "v1.1.1",
66
"keywords": [
77
"laravel","crud","crud generator",
88
"laravel crud generator","laravel crud builder",

config/codegenerator.php

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/*
66
|--------------------------------------------------------------------------
7-
| The default template to use
7+
| The default template to use.
88
|--------------------------------------------------------------------------
99
|
1010
| Here you change the stub templates to use when generating code.
@@ -18,42 +18,38 @@
1818
| it will override the default template causing you to lose your modification.
1919
|
2020
*/
21-
2221
'template' => 'default',
2322

2423
/*
2524
|--------------------------------------------------------------------------
26-
| The default path of where the templates are located
25+
| The default path where the templates are located.
2726
|--------------------------------------------------------------------------
2827
|
2928
| In this path, you can add more templates.
3029
|
3130
*/
32-
3331
'templates_path' => base_path('resources/codegenerator-templates'),
3432

3533
/*
3634
|--------------------------------------------------------------------------
37-
| Array of templetes that should be generated with Laravel-Collective
35+
| Array of templetes that should be generated with Laravel-Collective.
3836
|--------------------------------------------------------------------------
3937
|
4038
| If you want to generate code by using laravel-collective, you must first
41-
| install the backage and then list of package name that should be
42-
| generated using Laravel-Collective extensions.
39+
| install the package. Then add the tamplate name that should be using
40+
| Laravel-Collective extensions when generating code.
4341
*/
44-
4542
'laravel_collective_templates' => [
4643
'default-collective'
4744
],
4845

4946
/*
5047
|--------------------------------------------------------------------------
51-
| The default path of where the uploaded files lives!
48+
| The default path of where the uploaded files lives.
5249
|--------------------------------------------------------------------------
5350
|
5451
|
5552
*/
56-
5753
'files_upload_path' => public_path('uploads'),
5854

5955
/*
@@ -64,44 +60,41 @@
6460
| In this path, you can create json file to import the fields from.
6561
|
6662
*/
67-
6863
'fields_file_path' => base_path('resources/codegenerator-files'),
6964

7065
/*
7166
|--------------------------------------------------------------------------
72-
| The default path of where the migrations will be generated from
67+
| The default path of where the migrations will be generated into.
7368
|--------------------------------------------------------------------------
7469
*/
75-
7670
'migrations_path' => base_path('database/migrations'),
7771

7872
/*
7973
|--------------------------------------------------------------------------
80-
| The default path of where the controllers will be generated from
74+
| The default path of where the controllers will be generated into.
8175
|--------------------------------------------------------------------------
8276
*/
8377
'form_requests_path' => app_path('Http/Requests'),
8478

8579
/*
8680
|--------------------------------------------------------------------------
87-
| The default path of where the controllers will be generated from
81+
| The default path of where the controllers will be generated into.
8882
|--------------------------------------------------------------------------
8983
*/
9084
'controllers_path' => 'Http/Controllers',
9185

9286
/*
9387
|--------------------------------------------------------------------------
94-
| The default path of where the models will be generated from
88+
| The default path of where the models will be generated into.
9589
|--------------------------------------------------------------------------
9690
*/
9791
'models_path' => 'Models',
9892

9993
/*
10094
|--------------------------------------------------------------------------
101-
| The default path of where the migrations will be generated from
95+
| The default path of where the languages will be generated into.
10296
|--------------------------------------------------------------------------
10397
*/
104-
10598
'languages_path' => base_path('resources/lang'),
10699

107100
/*
@@ -164,7 +157,6 @@
164157
'uuid' => 'uuid'
165158
],
166159

167-
168160
/*
169161
|--------------------------------------------------------------------------
170162
| Eloquent method to html-type mapping

0 commit comments

Comments
 (0)