Customer/vendor created contact change redirect page..
This commit is contained in:
parent
253aa0c764
commit
9752cf53de
@ -118,7 +118,7 @@ class Vendors extends Controller
|
|||||||
$response = $this->ajaxDispatch(new CreateContact($request));
|
$response = $this->ajaxDispatch(new CreateContact($request));
|
||||||
|
|
||||||
if ($response['success']) {
|
if ($response['success']) {
|
||||||
$response['redirect'] = route('vendors.index');
|
$response['redirect'] = route('vendors.show', $response['data']->id);
|
||||||
|
|
||||||
$message = trans('messages.success.added', ['type' => trans_choice('general.vendors', 1)]);
|
$message = trans('messages.success.added', ['type' => trans_choice('general.vendors', 1)]);
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ class Customers extends Controller
|
|||||||
$response = $this->ajaxDispatch(new CreateContact($request));
|
$response = $this->ajaxDispatch(new CreateContact($request));
|
||||||
|
|
||||||
if ($response['success']) {
|
if ($response['success']) {
|
||||||
$response['redirect'] = route('customers.index');
|
$response['redirect'] = route('customers.show', $response['data']->id);
|
||||||
|
|
||||||
$message = trans('messages.success.added', ['type' => trans_choice('general.customers', 1)]);
|
$message = trans('messages.success.added', ['type' => trans_choice('general.customers', 1)]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user