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