$username,'email'=>$email,'password'=>$password]); } public function actionQuestionCount($user_id) { return Question::where('user_id', $user_id)->count(); } }