Updates checkout events to not depend on log

This commit is contained in:
Till Deeke
2018-07-28 00:05:45 +02:00
parent 17fc59f989
commit e24f292a1a
9 changed files with 27 additions and 16 deletions
@@ -82,7 +82,7 @@ class AccessoryCheckoutController extends Controller
DB::table('accessories_users')->where('assigned_to', '=', $accessory->assigned_to)->where('accessory_id', '=', $accessory->id)->first();
event(new AccessoryCheckedOut($accessory, $user, $logaction));
event(new AccessoryCheckedOut($accessory, $user, Auth::user(), $request->input('note'));
// Redirect to the new accessory page
return redirect()->route('accessories.index')->with('success', trans('admin/accessories/message.checkout.success'));