@@ -51,11 +51,11 @@ discard block |
||
51 | 51 | $specialty->name = $request->input('name'); |
52 | 52 | $specialty->detail = $request->input('detail'); |
53 | 53 | |
54 | - if($specialty->save()) { |
|
55 | - return redirect (route('specialty.index'))->with('success', 'Spesialisasi telah di tambahkan'); |
|
54 | + if ($specialty->save()) { |
|
55 | + return redirect(route('specialty.index'))->with('success', 'Spesialisasi telah di tambahkan'); |
|
56 | 56 | } |
57 | 57 | |
58 | - return redirect (route('specialty.index'))->with('failed', 'Gagal menambah spesialisasi !'); |
|
58 | + return redirect(route('specialty.index'))->with('failed', 'Gagal menambah spesialisasi !'); |
|
59 | 59 | |
60 | 60 | } |
61 | 61 | |
@@ -103,11 +103,11 @@ discard block |
||
103 | 103 | $specialty->name = $request->input('name'); |
104 | 104 | $specialty->detail = $request->input('detail'); |
105 | 105 | |
106 | - if($specialty->save()) { |
|
107 | - return redirect (route('specialty.index'))->with('success', 'Spesialisasi telah di update'); |
|
106 | + if ($specialty->save()) { |
|
107 | + return redirect(route('specialty.index'))->with('success', 'Spesialisasi telah di update'); |
|
108 | 108 | } |
109 | 109 | |
110 | - return redirect (route('specialty.edit', $id))->with('failed', 'Gagal memperbaharui spesialisasi !'); |
|
110 | + return redirect(route('specialty.edit', $id))->with('failed', 'Gagal memperbaharui spesialisasi !'); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | public function destroy($id) |
120 | 120 | { |
121 | 121 | $specialty = DoctorSpecialization::find($id); |
122 | - if($specialty->delete()) { |
|
122 | + if ($specialty->delete()) { |
|
123 | 123 | return redirect(route('specialty.index')); |
124 | 124 | } |
125 | 125 | } |