public function activate($id) { $employee = Employee::withTrashed()->where('id', $id)->first(); $user = User::withTrashed()->where('userable_id', $id)->first(); $employee->restore(); $user->restore(); return redirect()->back(); }
public function activate($id) { $employee = Employee::withTrashed()->where('id', $id)->first(); $user = User::withTrashed()->where('userable_id', $id)->first(); $employee->restore(); $user->restore(); return redirect()->back(); }