You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Для каждой эмоции у нас есть две ситуации, cчайным образом выбираем одну
94
+
* Generate questions for the quiz.
95
+
*
96
+
* Randomly choose one situation for each emotion.
116
97
*
117
98
* @throws \Exception
118
99
*
@@ -121,9 +102,16 @@ public function index(Request $request)
121
102
publicfunctionquestions(): Collection
122
103
{
123
104
returncollect([
124
-
Question::make(['Какова основная цель фреймворка Laravel?', 'Какой фреймворк акцентирует внимание на элегантном синтаксисе и призван делать процесс разработки приятным?'])
- **Model**: Represents the data and the business rules concerning the data. This includes data persistence, validation, business logic, and authentication.
108
+
109
+
- **View**: Presents data to the user in a specific format. The view receives data from the model and user interactions from the controller.
110
+
111
+
- **Controller**: Acts as an intermediary between models and views. It processes user input, interacts with the model, and selects the view to display.
112
+
'])
113
+
->answers(['**Controller**: Acts as an intermediary between models and views. It processes user input, interacts with the model, and selects the view to display.', 'Django', 'Rails', 'Express', 'Laravel'])
114
+
->setCorrectAnswer('**Controller**: Acts as an intermediary between models and views. It processes user input, interacts with the model, and selects the view to display.'),
127
115
128
116
Question::make(['Какой компонент Laravel позволяет управлять операциями с базой данных упрощенным способом?', 'Какая функция в Laravel упрощает взаимодействие с базой данных?'])
0 commit comments