@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * Show the form for creating a new resource. |
| 67 | 67 | * |
| 68 | - * @return \Illuminate\Http\Response |
|
| 68 | + * @return \Illuminate\Http\JsonResponse |
|
| 69 | 69 | */ |
| 70 | 70 | public function create() |
| 71 | 71 | { |
@@ -83,8 +83,7 @@ discard block |
||
| 83 | 83 | /** |
| 84 | 84 | * Display the specified resource. |
| 85 | 85 | * |
| 86 | - * @param \App\SectorEgovernment $sector_egovernment |
|
| 87 | - * @return \Illuminate\Http\Response |
|
| 86 | + * @return \Illuminate\Http\JsonResponse |
|
| 88 | 87 | */ |
| 89 | 88 | public function store(Request $request) |
| 90 | 89 | { |
@@ -115,8 +114,7 @@ discard block |
||
| 115 | 114 | /** |
| 116 | 115 | * Store a newly created resource in storage. |
| 117 | 116 | * |
| 118 | - * @param \Illuminate\Http\Request $request |
|
| 119 | - * @return \Illuminate\Http\Response |
|
| 117 | + * @return \Illuminate\Http\JsonResponse |
|
| 120 | 118 | */ |
| 121 | 119 | public function show($id) |
| 122 | 120 | { |
@@ -131,8 +129,7 @@ discard block |
||
| 131 | 129 | /** |
| 132 | 130 | * Show the form for editing the specified resource. |
| 133 | 131 | * |
| 134 | - * @param \App\SectorEgovernment $sector_egovernment |
|
| 135 | - * @return \Illuminate\Http\Response |
|
| 132 | + * @return \Illuminate\Http\JsonResponse |
|
| 136 | 133 | */ |
| 137 | 134 | public function edit($id) |
| 138 | 135 | { |
@@ -148,8 +145,7 @@ discard block |
||
| 148 | 145 | * Update the specified resource in storage. |
| 149 | 146 | * |
| 150 | 147 | * @param \Illuminate\Http\Request $request |
| 151 | - * @param \App\SectorEgovernment $sector_egovernment |
|
| 152 | - * @return \Illuminate\Http\Response |
|
| 148 | + * @return \Illuminate\Http\JsonResponse |
|
| 153 | 149 | */ |
| 154 | 150 | public function update(Request $request, $id) |
| 155 | 151 | { |
@@ -180,8 +176,7 @@ discard block |
||
| 180 | 176 | /** |
| 181 | 177 | * Remove the specified resource from storage. |
| 182 | 178 | * |
| 183 | - * @param \App\SectorEgovernment $sector_egovernment |
|
| 184 | - * @return \Illuminate\Http\Response |
|
| 179 | + * @return string |
|
| 185 | 180 | */ |
| 186 | 181 | public function destroy($id) |
| 187 | 182 | { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | /* Require */ |
| 6 | 6 | use App\Http\Controllers\Controller; |
| 7 | 7 | use Illuminate\Http\Request; |
| 8 | -use Bantenprov\SectorEgovernment\Facades\SectorEgovernmentFacade; |
|
| 9 | 8 | |
| 10 | 9 | /* Models */ |
| 11 | 10 | use Bantenprov\SectorEgovernment\Models\Bantenprov\SectorEgovernment\SectorEgovernment; |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | /** |
| 59 | 59 | * Get the services provided by the provider. |
| 60 | 60 | * |
| 61 | - * @return array |
|
| 61 | + * @return string[] |
|
| 62 | 62 | */ |
| 63 | 63 | public function provides() |
| 64 | 64 | { |
@@ -80,6 +80,10 @@ |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /* text color: orange */ |
| 83 | + |
|
| 84 | + /** |
|
| 85 | + * @param string $text |
|
| 86 | + */ |
|
| 83 | 87 | protected function orangeText($text) |
| 84 | 88 | { |
| 85 | 89 | printf($this->ORANGE.$text.$this->NC); |