Completed
Push — master ( ad146a...d0020c )
by wen
03:16
created
src/Http/Controllers/Auth/LoginController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
100 100
      *
101 101
      * @param  Request $request
102 102
      *
103
-     * @return \Illuminate\Http\Response
103
+     * @return \Illuminate\Http\RedirectResponse
104 104
      */
105 105
     public function logout(Request $request)
106 106
     {
Please login to merge, or discard this patch.
src/Http/Controllers/System/MenuController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * 菜单列表
36 36
      *
37
-     * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
37
+     * @return \Illuminate\Http\JsonResponse
38 38
      */
39 39
     public function getList()
40 40
     {
Please login to merge, or discard this patch.
src/Exceptions/Handler.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -123,6 +123,9 @@
 block discarded – undo
123 123
         }
124 124
     }
125 125
 
126
+    /**
127
+     * @param \Illuminate\Http\Request $request
128
+     */
126 129
     protected function isAdmin($request)
127 130
     {
128 131
         return $request->route() && strpos($request->route()->getPrefix(), 'admin') === 0;
Please login to merge, or discard this patch.
database/seeds/PermissionsTableSeeder.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -82,6 +82,10 @@  discard block
 block discarded – undo
82 82
             $role->id);
83 83
     }
84 84
 
85
+    /**
86
+     * @param string $name
87
+     * @param string $displayName
88
+     */
85 89
     private function insertPerm(
86 90
         $name,
87 91
         $displayName,
@@ -105,6 +109,10 @@  discard block
 block discarded – undo
105 109
         return $permission;
106 110
     }
107 111
 
112
+    /**
113
+     * @param string $name
114
+     * @param string $displayName
115
+     */
108 116
     private function storePermission($name, $displayName, $description = '')
109 117
     {
110 118
         $permissionModelName = config('admin.permission');
Please login to merge, or discard this patch.