Skip to content

Commit

Permalink
Merge pull request #399 from nasirkhan/update
Browse files Browse the repository at this point in the history
User Profile Delete/Restore issue fixed
  • Loading branch information
nasirkhan authored Mar 19, 2023
2 parents 51d2411 + 16b4c18 commit 33e5a7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
<div class="input-group date datetime" id="{{$field_name}}" data-target-input="nearest">
{{ html()->text($field_name)->placeholder($field_placeholder)->class('form-control datetimepicker-input')->attributes(["$required", 'data-target'=>"#$field_name"]) }}
<div class="input-group-append" data-target="#{{$field_name}}" data-toggle="datetimepicker">
<div class="input-group-text"><i class="fas fa-calendar-alt"></i></div>
<span class="input-group-text">&nbsp;<i class="fas fa-calendar-alt"></i>&nbsp;</span>
</div>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions app/Http/Controllers/Backend/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -731,8 +731,11 @@ public function restore($id)
$module_action = 'Restore';

$$module_name_singular = $module_model::withTrashed()->find($id);

$$module_name_singular->restore();

$$module_name_singular->userprofile()->withTrashed()->restore();

event(new UserUpdated($$module_name_singular));

flash('<i class="fas fa-check"></i> '.$$module_name_singular->name.' Successfully Restoreded!')->success();
Expand Down

0 comments on commit 33e5a7e

Please sign in to comment.