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