last fix for first online
This commit is contained in:
parent
6db007fc82
commit
ebac67b81f
8 changed files with 269 additions and 258 deletions
|
|
@ -230,9 +230,12 @@ class HomeController extends Controller
|
|||
$ShoppingPayment = ShoppingPayment::where('reference', $reference)->first();
|
||||
if($ShoppingPayment->status == 'success'){
|
||||
$user = Auth::user();
|
||||
$user->wizard = 4;
|
||||
$user->save();
|
||||
return redirect(route('wizard', [4]));
|
||||
if($user->wizard < 4){
|
||||
$user->wizard = 4;
|
||||
$user->save();
|
||||
return redirect(route('wizard', [4]));
|
||||
}
|
||||
|
||||
}else{
|
||||
\Session()->flash('alert-error', "Es ist ein Fehler bei der Bestellung aufgetreten");
|
||||
return redirect(route('wizard'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue