update api routes

This commit is contained in:
gerchek 2022-03-18 09:35:53 +05:00
parent 16054c81e7
commit 39b9c86923
2 changed files with 9 additions and 2 deletions

View File

@ -48,7 +48,7 @@ class OnlineCard extends Model
'the_codeword',
'user_id',
'file',
'date'
'date',
];
protected $guarded = ['*'];

View File

@ -269,6 +269,9 @@ Route::group(['prefix' => 'api'], function() {
$name = $Contact->name =$me['username'];
$subject = $Contact->subject =$data['subject'];
$message = $Contact->message =$data['message'];
$date = $Contact->date =$data['date'];
dd($Contact);
$Contact->save();
@ -320,6 +323,7 @@ Route::group(['prefix' => 'api'], function() {
$amount_of_salary = $Credit->amount_of_salary =Input::get('amount_of_salary');
$position = $Credit->position =Input::get('position');
$work_experience = $Credit->work_experience =Input::get('work_experience');
$date = $Credit->date =Input::get('date');
// dd($Credit);
@ -340,6 +344,7 @@ Route::group(['prefix' => 'api'], function() {
$data = \Input::only([
'selected_card',
'date',
'name',
'surname',
'middlename',
@ -358,16 +363,18 @@ Route::group(['prefix' => 'api'], function() {
'selected_time',
'the_codeword',
'file',
]);
// $data = \Input::only([
// 'region',
// ]);
$data['user_id']=$me['id'];
// dd($data['file']);
// dd($data);
// $data['file'] = \Input::file('file');
$application = CardApp::create($data);
$application_id = time();
// dd($application->id);
$response = Payment::registerOrder('hb-'.$application->id);
// dd($response);