Ejemplo n.º 1
0
 public function activate($id)
 {
     $customer = Customer::withTrashed()->find($id);
     $user = User::withTrashed()->where('userable_id', $customer->id)->first();
     $customer->restore();
     $user->restore();
     return redirect()->back();
 }