Skip to content

Commit

Permalink
Removed commenting
Browse files Browse the repository at this point in the history
This restore() is still not working, though not sure why. Seems like it should be pretty straghtforward, and yet…

Additonally, manually setting the deleted)at date to null or blank isn’t working either. I’m sure I’m just missing something obvious.
  • Loading branch information
snipe committed Mar 4, 2018
1 parent f7784b6 commit 0782222
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Http/Controllers/ManufacturersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,9 @@ public function restore($manufacturers_id)

if ($manufacturer) {
// I don't know why $manufacturer->restore(); didn't work here...
// $manufacturer->restore();
$manufacturer->restore();
return redirect()->route('manufacturers.index')->with('success', trans('admin/manufacturers/message.restore.success'));
}
\Log::debug('No joy');
return redirect()->back()->with('error', trans('admin/manufacturers/message.does_not_exist'));

}
Expand Down

0 comments on commit 0782222

Please sign in to comment.