@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * Store a newly created resource in storage. |
| 45 | 45 | * |
| 46 | 46 | * @param Requests\HolidayValidator $input |
| 47 | - * @return \Illuminate\Http\Response |
|
| 47 | + * @return \Illuminate\Http\RedirectResponse |
|
| 48 | 48 | */ |
| 49 | 49 | public function store(Requests\HolidayValidator $input) |
| 50 | 50 | { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * |
| 90 | 90 | * @param Requests\HolidayValidator $input |
| 91 | 91 | * @param int | $id | The database id. |
| 92 | - * @return \Illuminate\Http\Response |
|
| 92 | + * @return \Illuminate\Http\RedirectResponse |
|
| 93 | 93 | */ |
| 94 | 94 | public function update(Requests\HolidayValidator $input, $id) |
| 95 | 95 | { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * Remove the specified resource from storage. |
| 106 | 106 | * |
| 107 | 107 | * @param int | $id | The database id. |
| 108 | - * @return \Illuminate\Http\Response |
|
| 108 | + * @return \Illuminate\Http\RedirectResponse |
|
| 109 | 109 | */ |
| 110 | 110 | public function destroy($id) |
| 111 | 111 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * Store a newly created team in database. |
| 49 | 49 | * |
| 50 | - * @param array $request The user input form the form. |
|
| 50 | + * @param Request $request The user input form the form. |
|
| 51 | 51 | */ |
| 52 | 52 | public function store(Request $request) |
| 53 | 53 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * Update the specified team in the database. |
| 86 | 86 | * |
| 87 | - * @param array $request The user input from the form. |
|
| 87 | + * @param Request $request The user input from the form. |
|
| 88 | 88 | * @param int $id The id in the database for the team |
| 89 | 89 | * @return string |
| 90 | 90 | */ |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function handle($request, Closure $next) |
| 17 | 17 | { |
| 18 | - if(auth()->user()->is('Manager')) { |
|
| 18 | + if (auth()->user()->is('Manager')) { |
|
| 19 | 19 | return $next($request); |
| 20 | 20 | } else { |
| 21 | 21 | return redirect()->back(302); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * Store a newly created resource in storage. |
| 45 | 45 | * |
| 46 | 46 | * @param Requests\HolidayValidator $input |
| 47 | - * @return \Illuminate\Http\Response |
|
| 47 | + * @return \Illuminate\Http\RedirectResponse |
|
| 48 | 48 | */ |
| 49 | 49 | public function store(Requests\HolidayValidator $input) |
| 50 | 50 | { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * |
| 90 | 90 | * @param Requests\HolidayValidator $input |
| 91 | 91 | * @param int | $id | The database id. |
| 92 | - * @return \Illuminate\Http\Response |
|
| 92 | + * @return \Illuminate\Http\RedirectResponse |
|
| 93 | 93 | */ |
| 94 | 94 | public function update(Requests\HolidayValidator $input, $id) |
| 95 | 95 | { |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * Remove the specified resource from storage. |
| 106 | 106 | * |
| 107 | 107 | * @param int | $id | The database id. |
| 108 | - * @return \Illuminate\Http\Response |
|
| 108 | + * @return \Illuminate\Http\RedirectResponse |
|
| 109 | 109 | */ |
| 110 | 110 | public function destroy($id) |
| 111 | 111 | { |