@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * Display the specified resource. |
| 52 | 52 | * |
| 53 | - * @param \App\Article $article |
|
| 53 | + * @param Article $article |
|
| 54 | 54 | * @return \Illuminate\Http\Response |
| 55 | 55 | */ |
| 56 | 56 | public function show(Article $article) |
@@ -63,7 +63,6 @@ discard block |
||
| 63 | 63 | /** |
| 64 | 64 | * Display the specified resource. |
| 65 | 65 | * |
| 66 | - * @param \App\Article $article |
|
| 67 | 66 | * @return \Illuminate\Http\Response |
| 68 | 67 | */ |
| 69 | 68 | public function show1($id) |
@@ -86,7 +85,7 @@ discard block |
||
| 86 | 85 | /** |
| 87 | 86 | * Show the form for editing the specified resource. |
| 88 | 87 | * |
| 89 | - * @param \App\Article $article |
|
| 88 | + * @param Article $article |
|
| 90 | 89 | * @return \Illuminate\Http\Response |
| 91 | 90 | */ |
| 92 | 91 | public function edit(Article $article) |
@@ -98,7 +97,7 @@ discard block |
||
| 98 | 97 | * Update the specified resource in storage. |
| 99 | 98 | * |
| 100 | 99 | * @param \Illuminate\Http\Request $request |
| 101 | - * @param \App\Article $article |
|
| 100 | + * @param Article $article |
|
| 102 | 101 | * @return \Illuminate\Http\Response |
| 103 | 102 | */ |
| 104 | 103 | public function update(Request $request, Article $article) |
@@ -112,7 +111,7 @@ discard block |
||
| 112 | 111 | /** |
| 113 | 112 | * Remove the specified resource from storage. |
| 114 | 113 | * |
| 115 | - * @param \App\Article $article |
|
| 114 | + * @param Article $article |
|
| 116 | 115 | * @return \Illuminate\Http\Response |
| 117 | 116 | */ |
| 118 | 117 | public function destroy(Article $article) |
@@ -5,6 +5,10 @@ |
||
| 5 | 5 | use Spatie\Permission\Models\Role; |
| 6 | 6 | |
| 7 | 7 | if (!function_exists('assignPermission')) { |
| 8 | + |
|
| 9 | + /** |
|
| 10 | + * @param string $permission |
|
| 11 | + */ |
|
| 8 | 12 | function assignPermission($role, $permission) { |
| 9 | 13 | if (! $role->hasPermissionTo($permission)) { |
| 10 | 14 | $role->givePermissionTo($permission); |