Completed
Pull Request — master (#3546)
by jxlwqq
04:12
created
src/Console/PermissionCommand.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -111,6 +111,9 @@  discard block
 block discarded – undo
111 111
         ];
112 112
     }
113 113
 
114
+    /**
115
+     * @param string $permission
116
+     */
114 117
     private function generateHttpMethod($permission)
115 118
     {
116 119
         switch ($permission) {
@@ -132,6 +135,9 @@  discard block
 block discarded – undo
132 135
         return $http_method;
133 136
     }
134 137
 
138
+    /**
139
+     * @param string $permission
140
+     */
135 141
     private function generateHttpPath($table, $permission)
136 142
     {
137 143
         $resource = Str::kebab(Str::camel($table));
@@ -158,6 +164,9 @@  discard block
 block discarded – undo
158 164
         return $http_path;
159 165
     }
160 166
 
167
+    /**
168
+     * @param string $permission
169
+     */
161 170
     private function generateSlug($table, $permission)
162 171
     {
163 172
         return Str::kebab(Str::camel($table)) . '.' . $permission;
Please login to merge, or discard this patch.