@@ -102,7 +102,7 @@ public function create(Request $request)
102102 Alert::success ('Pack successfully created on the system. ' )->flash ();
103103
104104 return redirect ()->route ('admin.packs.view ' , $ pack ->id );
105- } catch (DisplayValidationException $ ex ) {
105+ } catch (DisplayValidationException $ ex ) {
106106 return redirect ()->route ('admin.packs.new ' )->withErrors (json_decode ($ ex ->getMessage ()))->withInput ();
107107 } catch (DisplayException $ ex ) {
108108 Alert::danger ($ ex ->getMessage ())->flash ();
@@ -144,7 +144,7 @@ public function update(Request $request, $id)
144144 if ($ request ->input ('action ' ) !== 'delete ' ) {
145145 $ pack = $ repo ->update ($ id , $ request ->intersect ([
146146 'name ' , 'description ' , 'version ' ,
147- 'option_id ' , 'selectable ' , 'visible ' , 'locked '
147+ 'option_id ' , 'selectable ' , 'visible ' , 'locked ' ,
148148 ]));
149149 Alert::success ('Pack successfully updated. ' )->flash ();
150150 } else {
@@ -153,7 +153,7 @@ public function update(Request $request, $id)
153153
154154 return redirect ()->route ('admin.packs ' );
155155 }
156- } catch (DisplayValidationException $ ex ) {
156+ } catch (DisplayValidationException $ ex ) {
157157 return redirect ()->route ('admin.packs.view ' , $ id )->withErrors (json_decode ($ ex ->getMessage ()));
158158 } catch (DisplayException $ ex ) {
159159 Alert::danger ($ ex ->getMessage ())->flash ();
@@ -211,5 +211,4 @@ public function export(Request $request, $id, $files = false)
211211 ])->deleteFileAfterSend (true );
212212 }
213213 }
214-
215214}
0 commit comments