File tree Expand file tree Collapse file tree 10 files changed +31
-29
lines changed Expand file tree Collapse file tree 10 files changed +31
-29
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use Response;
12
12
13
13
class $MODEL_NAME$Controller extends AppBaseController
14
14
{
15
- /** @var $MODEL_NAME$Repository */
15
+ /** @var $MODEL_NAME$Repository $$MODEL_NAME_CAMEL$Repository */
16
16
private $$MODEL_NAME_CAMEL$Repository;
17
17
18
18
public function __construct($MODEL_NAME$Repository $$MODEL_NAME_CAMEL$Repo)
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ use Response;
12
12
13
13
class $MODEL_NAME$Controller extends AppBaseController
14
14
{
15
- /** @var $MODEL_NAME$Repository */
15
+ /** @var $MODEL_NAME$Repository $$MODEL_NAME_CAMEL$Repository */
16
16
private $$MODEL_NAME_CAMEL$Repository;
17
17
18
18
public function __construct($MODEL_NAME$Repository $$MODEL_NAME_CAMEL$Repo)
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use Response;
13
13
14
14
class $MODEL_NAME$Controller extends AppBaseController
15
15
{
16
- /** @var $MODEL_NAME$Repository */
16
+ /** @var $MODEL_NAME$Repository $$MODEL_NAME_CAMEL$Repository */
17
17
private $$MODEL_NAME_CAMEL$Repository;
18
18
19
19
public function __construct($MODEL_NAME$Repository $$MODEL_NAME_CAMEL$Repo)
@@ -25,6 +25,7 @@ class $MODEL_NAME$Controller extends AppBaseController
25
25
* Display a listing of the $MODEL_NAME$.
26
26
*
27
27
* @param $MODEL_NAME$DataTable $$MODEL_NAME_CAMEL$DataTable
28
+ *
28
29
* @return Response
29
30
*/
30
31
public function index($MODEL_NAME$DataTable $$MODEL_NAME_CAMEL$DataTable)
@@ -63,7 +64,7 @@ class $MODEL_NAME$Controller extends AppBaseController
63
64
/**
64
65
* Display the specified $MODEL_NAME$.
65
66
*
66
- * @param int $id
67
+ * @param int $id
67
68
*
68
69
* @return Response
69
70
*/
@@ -83,7 +84,7 @@ class $MODEL_NAME$Controller extends AppBaseController
83
84
/**
84
85
* Show the form for editing the specified $MODEL_NAME$.
85
86
*
86
- * @param int $id
87
+ * @param int $id
87
88
*
88
89
* @return Response
89
90
*/
@@ -103,7 +104,7 @@ class $MODEL_NAME$Controller extends AppBaseController
103
104
/**
104
105
* Update the specified $MODEL_NAME$ in storage.
105
106
*
106
- * @param int $id
107
+ * @param int $id
107
108
* @param Update$MODEL_NAME$Request $request
108
109
*
109
110
* @return Response
@@ -128,7 +129,7 @@ class $MODEL_NAME$Controller extends AppBaseController
128
129
/**
129
130
* Remove the specified $MODEL_NAME$ from storage.
130
131
*
131
- * @param int $id
132
+ * @param int $id
132
133
*
133
134
* @return Response
134
135
*/
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use Response;
13
13
14
14
class $MODEL_NAME$Controller extends AppBaseController
15
15
{
16
- /** @var $MODEL_NAME$Repository */
16
+ /** @var $MODEL_NAME$Repository $$MODEL_NAME_CAMEL$Repository */
17
17
private $$MODEL_NAME_CAMEL$Repository;
18
18
19
19
public function __construct($MODEL_NAME$Repository $$MODEL_NAME_CAMEL$Repo)
@@ -25,6 +25,7 @@ class $MODEL_NAME$Controller extends AppBaseController
25
25
* Display a listing of the $MODEL_NAME$.
26
26
*
27
27
* @param $MODEL_NAME$DataTable $$MODEL_NAME_CAMEL$DataTable
28
+ *
28
29
* @return Response
29
30
*/
30
31
public function index($MODEL_NAME$DataTable $$MODEL_NAME_CAMEL$DataTable)
@@ -63,7 +64,7 @@ class $MODEL_NAME$Controller extends AppBaseController
63
64
/**
64
65
* Display the specified $MODEL_NAME$.
65
66
*
66
- * @param int $id
67
+ * @param int $id
67
68
*
68
69
* @return Response
69
70
*/
@@ -83,7 +84,7 @@ class $MODEL_NAME$Controller extends AppBaseController
83
84
/**
84
85
* Show the form for editing the specified $MODEL_NAME$.
85
86
*
86
- * @param int $id
87
+ * @param int $id
87
88
*
88
89
* @return Response
89
90
*/
@@ -103,7 +104,7 @@ class $MODEL_NAME$Controller extends AppBaseController
103
104
/**
104
105
* Update the specified $MODEL_NAME$ in storage.
105
106
*
106
- * @param int $id
107
+ * @param int $id
107
108
* @param Update$MODEL_NAME$Request $request
108
109
*
109
110
* @return Response
@@ -128,7 +129,7 @@ class $MODEL_NAME$Controller extends AppBaseController
128
129
/**
129
130
* Remove the specified $MODEL_NAME$ from storage.
130
131
*
131
- * @param int $id
132
+ * @param int $id
132
133
*
133
134
* @return Response
134
135
*/
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use Datatables;
15
15
16
16
class $MODEL_NAME$Controller extends AppBaseController
17
17
{
18
- /** @var $MODEL_NAME$Repository */
18
+ /** @var $MODEL_NAME$Repository $$MODEL_NAME_CAMEL$Repository */
19
19
private $$MODEL_NAME_CAMEL$Repository;
20
20
21
21
public function __construct($MODEL_NAME$Repository $$MODEL_NAME_CAMEL$Repo)
@@ -27,6 +27,7 @@ class $MODEL_NAME$Controller extends AppBaseController
27
27
* Display a listing of the $MODEL_NAME$.
28
28
*
29
29
* @param Request $request
30
+ *
30
31
* @return Response
31
32
*/
32
33
public function index(Request $request)
@@ -69,7 +70,7 @@ class $MODEL_NAME$Controller extends AppBaseController
69
70
/**
70
71
* Display the specified $MODEL_NAME$.
71
72
*
72
- * @param int $id
73
+ * @param int $id
73
74
*
74
75
* @return Response
75
76
*/
@@ -89,7 +90,7 @@ class $MODEL_NAME$Controller extends AppBaseController
89
90
/**
90
91
* Show the form for editing the specified $MODEL_NAME$.
91
92
*
92
- * @param int $id
93
+ * @param int $id
93
94
*
94
95
* @return Response
95
96
*/
@@ -109,7 +110,7 @@ class $MODEL_NAME$Controller extends AppBaseController
109
110
/**
110
111
* Update the specified $MODEL_NAME$ in storage.
111
112
*
112
- * @param int $id
113
+ * @param int $id
113
114
* @param Update$MODEL_NAME$Request $request
114
115
*
115
116
* @return Response
@@ -134,7 +135,7 @@ class $MODEL_NAME$Controller extends AppBaseController
134
135
/**
135
136
* Remove the specified $MODEL_NAME$ from storage.
136
137
*
137
- * @param int $id
138
+ * @param int $id
138
139
*
139
140
* @return Response
140
141
*/
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class $MODEL_NAME$Controller extends AppBaseController
56
56
/**
57
57
* Display the specified $MODEL_NAME$.
58
58
*
59
- * @param int $id
59
+ * @param int $id
60
60
*
61
61
* @return Response
62
62
*/
@@ -77,7 +77,7 @@ class $MODEL_NAME$Controller extends AppBaseController
77
77
/**
78
78
* Show the form for editing the specified $MODEL_NAME$.
79
79
*
80
- * @param int $id
80
+ * @param int $id
81
81
*
82
82
* @return Response
83
83
*/
@@ -98,7 +98,7 @@ class $MODEL_NAME$Controller extends AppBaseController
98
98
/**
99
99
* Update the specified $MODEL_NAME$ in storage.
100
100
*
101
- * @param int $id
101
+ * @param int $id
102
102
* @param Update$MODEL_NAME$Request $request
103
103
*
104
104
* @return Response
@@ -125,7 +125,7 @@ class $MODEL_NAME$Controller extends AppBaseController
125
125
/**
126
126
* Remove the specified $MODEL_NAME$ from storage.
127
127
*
128
- * @param int $id
128
+ * @param int $id
129
129
*
130
130
* @throws \Exception
131
131
*
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ class $MODEL_NAME$Controller extends AppBaseController
17
17
* Display a listing of the $MODEL_NAME$.
18
18
*
19
19
* @param $MODEL_NAME$DataTable $$MODEL_NAME_CAMEL$DataTable
20
+ *
20
21
* @return Response
21
22
*/
22
23
public function index($MODEL_NAME$DataTable $$MODEL_NAME_CAMEL$DataTable)
@@ -56,7 +57,7 @@ class $MODEL_NAME$Controller extends AppBaseController
56
57
/**
57
58
* Display the specified $MODEL_NAME$.
58
59
*
59
- * @param int $id
60
+ * @param int $id
60
61
*
61
62
* @return Response
62
63
*/
@@ -77,7 +78,7 @@ class $MODEL_NAME$Controller extends AppBaseController
77
78
/**
78
79
* Show the form for editing the specified $MODEL_NAME$.
79
80
*
80
- * @param int $id
81
+ * @param int $id
81
82
*
82
83
* @return Response
83
84
*/
@@ -98,7 +99,7 @@ class $MODEL_NAME$Controller extends AppBaseController
98
99
/**
99
100
* Update the specified $MODEL_NAME$ in storage.
100
101
*
101
- * @param int $id
102
+ * @param int $id
102
103
* @param Update$MODEL_NAME$Request $request
103
104
*
104
105
* @return Response
@@ -125,7 +126,7 @@ class $MODEL_NAME$Controller extends AppBaseController
125
126
/**
126
127
* Remove the specified $MODEL_NAME$ from storage.
127
128
*
128
- * @param int $id
129
+ * @param int $id
129
130
*
130
131
* @throws \Exception
131
132
*
Original file line number Diff line number Diff line change 1
1
'use strict';
2
2
3
- let tableName = '#$MODEL_NAME_PLURAL_CAMEL$Table';
3
+ const tableName = '#$MODEL_NAME_PLURAL_CAMEL$Table';
4
4
$(tableName).DataTable({
5
5
scrollX: true,
6
6
deferRender: true,
@@ -38,6 +38,6 @@ $(tableName).DataTable({
38
38
});
39
39
40
40
$(document).on('click', '.delete-btn', function (event) {
41
- let recordId = $(event.currentTarget).data('id');
41
+ const recordId = $(event.currentTarget).data('id');
42
42
deleteItem(recordsURL + recordId, tableName, '$MODEL_NAME_HUMAN$');
43
43
});
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ use $NAMESPACE_MODEL$\$MODEL_NAME$;
7
7
8
8
class Create$MODEL_NAME$Request extends FormRequest
9
9
{
10
-
11
10
/**
12
11
* Determine if the user is authorized to make this request.
13
12
*
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ use $NAMESPACE_MODEL$\$MODEL_NAME$;
7
7
8
8
class Update$MODEL_NAME$Request extends FormRequest
9
9
{
10
-
11
10
/**
12
11
* Determine if the user is authorized to make this request.
13
12
*
You can’t perform that action at this time.
0 commit comments