$username,'email'=>$email,'password'=>$password]);
}
public function actionQuestionCount($user_id)
{
return Question::where('user_id', $user_id)->count();
}
public function actionViewAllUsers(): void
{
foreach (User::all() as $user)
{
echo $user->username . "
";
}
}
public function actionViewUser(): void
{
echo User::where('id', '=', 13)->get();
// $user = User::where('id', '=', 13)->get();
// echo $user->username . "
";
// echo $user->email . "
";
// echo $user->created_at . "
";
}
}