mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 23:06:08 -06:00
#587 [sahibinden-module] Getting custom fields dynamically
This commit is contained in:
parent
e647124f0f
commit
7827806f71
@ -208,10 +208,6 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
|
|||||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\AjaxController@getMyAds'
|
'uses' => 'Visiosoft\AdvsModule\Http\Controller\AjaxController@getMyAds'
|
||||||
],
|
],
|
||||||
|
|
||||||
'ajax/loanApplication' => [
|
|
||||||
'as' => 'ajax::loanApplication',
|
|
||||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\AjaxController@sendLoanApplication'
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -92,10 +92,4 @@ class AjaxController extends PublicController
|
|||||||
return response()->json(['success' => true, 'content' => $my_advs, 'title' => $page_title]);
|
return response()->json(['success' => true, 'content' => $my_advs, 'title' => $page_title]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sendLoanApplication(Request $request)
|
|
||||||
{
|
|
||||||
$this->userModel->find(1)->notify(new SendLoanApplicationMail($request));
|
|
||||||
return response()->json(['success' => true, 'content' => $request['firstName']]);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user