@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * Store a newly created resource in storage. |
| 50 | 50 | * |
| 51 | 51 | * @param Requests\DepartmentsValidator $input |
| 52 | - * @return \Illuminate\Http\Response |
|
| 52 | + * @return \Illuminate\Http\RedirectResponse |
|
| 53 | 53 | */ |
| 54 | 54 | public function store(Requests\DepartmentsValidator $input) |
| 55 | 55 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @param Requests\DepartmentsValidator $input |
| 88 | 88 | * @param int $id the department id in the database. |
| 89 | - * @return \Illuminate\Http\Response |
|
| 89 | + * @return \Illuminate\Http\RedirectResponse |
|
| 90 | 90 | */ |
| 91 | 91 | public function update(Requests\DepartmentsValidator $input, $id) |
| 92 | 92 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * Remove the specified resource from storage. |
| 99 | 99 | * |
| 100 | 100 | * @param int $id the department id in the database. |
| 101 | - * @return \Illuminate\Http\Response |
|
| 101 | + * @return \Illuminate\Http\RedirectResponse |
|
| 102 | 102 | */ |
| 103 | 103 | public function destroy($id) |
| 104 | 104 | { |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | 5 | use App\Customer; |
| 6 | -use Illuminate\Http\Request; |
|
| 7 | - |
|
| 8 | 6 | use App\Http\Requests; |
| 9 | 7 | |
| 10 | 8 | class CustomersController extends Controller |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | */ |
| 32 | 32 | public function index() |
| 33 | 33 | { |
| 34 | - $data['query'] = Departments::paginate(15); |
|
| 34 | + $data[ 'query' ] = Departments::paginate(15); |
|
| 35 | 35 | return view('departments.index', $data); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | */ |
| 66 | 66 | public function show($id) |
| 67 | 67 | { |
| 68 | - $data['query'] = Departments::find($id); |
|
| 68 | + $data[ 'query' ] = Departments::find($id); |
|
| 69 | 69 | return view('departments.specific', $data); |
| 70 | 70 | } |
| 71 | 71 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public function edit($id) |
| 79 | 79 | { |
| 80 | - $data['query'] = Departments::find($id); |
|
| 80 | + $data[ 'query' ] = Departments::find($id); |
|
| 81 | 81 | return view('departments.update', $data); |
| 82 | 82 | } |
| 83 | 83 | |