| @@ 363-370 (lines=8) @@ | ||
| 360 | * |
|
| 361 | * @return \Illuminate\Http\RedirectResponse |
|
| 362 | */ |
|
| 363 | protected function redirectAfterStore() |
|
| 364 | { |
|
| 365 | admin_toastr(trans('admin.save_succeeded')); |
|
| 366 | ||
| 367 | $url = Input::get(Builder::PREVIOUS_URL_KEY) ?: $this->resource(0); |
|
| 368 | ||
| 369 | return redirect($url); |
|
| 370 | } |
|
| 371 | ||
| 372 | /** |
|
| 373 | * Get ajax response. |
|
| @@ 565-572 (lines=8) @@ | ||
| 562 | * |
|
| 563 | * @return \Illuminate\Http\RedirectResponse |
|
| 564 | */ |
|
| 565 | protected function redirectAfterUpdate() |
|
| 566 | { |
|
| 567 | admin_toastr(trans('admin.update_succeeded')); |
|
| 568 | ||
| 569 | $url = Input::get(Builder::PREVIOUS_URL_KEY) ?: $this->resource(-1); |
|
| 570 | ||
| 571 | return redirect($url); |
|
| 572 | } |
|
| 573 | ||
| 574 | /** |
|
| 575 | * Check if request is from editable. |
|