interview back

This commit is contained in:
andrey
2021-08-16 14:32:54 +03:00
parent ec8b002838
commit 6f7c497d80
17 changed files with 534 additions and 3 deletions

View File

@ -62,6 +62,7 @@ class ProfileController extends \yii\rest\Controller
$model = new InterviewRequest();
$model->attributes = \Yii::$app->request->post();
$model->created_at = time();
$model->user_id = \Yii::$app->user->id;
if ($model->save()){
return ['status' => 'success'];
}