Skip to content

Commit

Permalink
redirect fix, version
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Nov 9, 2022
1 parent 08c5443 commit 2f02852
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Http/Controllers/ResourceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function restore(ResourceRequest $request, Model $model): RedirectRespons

$resource->restored($request, $model);

return Redirect::to(sprintf('%s/%s/edit', $resource->getUri(), $model->getKey()))
return Redirect::back()
->with('alerts.resource-restored', Alert::success(__('The resource has been restored!')));
}
}
2 changes: 1 addition & 1 deletion src/Root.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract class Root
*
* @var string
*/
public const VERSION = '0.10.2';
public const VERSION = '0.10.3';

/**
* The registered callbacks.
Expand Down

0 comments on commit 2f02852

Please sign in to comment.