Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnudirsandev committed Oct 11, 2022
1 parent cfa7d2d commit 372f907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Admin/Master/CustomerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ public function Store(customerRequest $request)
$this->CustomerResponse->create($request);
$notification = ['message' => 'Successfully created new customer.',
'alert-type' => 'primary',
'gravity' => 'top',
'gravity' => 'bottom',
'position' => 'right'];
return redirect()->route('customer.index')->with($notification);
} catch (\Exception) {

$notification = ['message' => 'Failed to created data new customer.',
'alert-type' => 'danger',
'gravity' => 'top',
'gravity' => 'bottom',
'position' => 'right'];
return redirect()->route('customer.index')->with($notification);

Expand Down

0 comments on commit 372f907

Please sign in to comment.