df

1 month ago

namht1st

dsf

Code

$user = App\User::where('username','=',"0905052611")->first();

Output

[!] Aliasing 'Submission' to 'App\Models\Mongo\Submission' for this Tinker session.
[!] Aliasing 'SubmissionSkill' to 'App\Models\Mongo\SubmissionSkill' for this Tinker session.
[!] Aliasing 'SubmissionSkillFormatter' to 'App\Repositories\Submission\SubmissionSkillFormatter' for this Tinker session.
=> [
     "id" => 4,
     "name" => "Writing",
     "avatar" => "https://ipp.test/images/icon_writing.png",
     "duration" => null,
     "is_limit_time" => 0,
     "sections" => [
       [
         "id" => 2459,
         "title" => "WT2 Advantages & Disadvantages",
         "content" => "",
         "element" => null,
         "sub_element" => null,
         "offset" => null,
         "achievements" => null,
         "exercises" => [
           [
             "id" => 5664,
             "title" => "Writing Exercise",
             "type" => 5,
             "content" => "It is now possible for scientists and tourists to travel to remote natural environment, such as the South Pole. Do the advantages of this development outweigh the disadvantages?",
             "body" => "",
             "element" => null,
             "sub_element" => null,
             "validation_rules" => [
               "max_words" => null,
             ],
             "questions" => [
               [
                 "id" => 57276,
                 "title" => "Write down your answer here.",
                 "content" => "",
                 "type" => 5,
                 "sample_content" => null,
                 "weight" => 2,
                 "auto_marking_quota" => null,
                 "exercise_id" => 5664,
                 "section_id" => 2459,
                 "explanation" => null,
                 "is_required_script" => 0,
                 "answers" => [
                   [
                     "id" => 57128,
                     "content" => [
                       "options" => [],
                       "prefix" => "",
                       "postfix" => "",
                       "correct" => [],
                     ],
                     "type" => 5,
                   ],
                 ],
                 "element" => null,
                 "suggestion_order_index" => null,
                 "answer_script" => null,
                 "submission_answer_id" => "612f0969c7046c3710299622",
                 "submission_answer_content" => """
                   Due to the technical breakthrough, humans can travel to wherever they want to satisfy their thirst for being rewarded by a vista. However, the fact that scientists and tourists can pay a visit to undiscovered places seems to have the disadvantages far outweighing the advantageous ones.\n
                   On the one hand, travelling to remote areas can have positive influence on both the global tourism and science. There are still undiscovered secrets in wilderness, so the scientists can conduct researches to gain clearer insight on out environment. Besides, the untouched beauty would greatly appeal to people, therefore they would choose rural places for their vacations rather than hectic and hustle cities that has been famous for tourism for decades.\n
                   However, I still believe that the positive aspects of this statement can be outweighed by the negative ones. If people visit these places and find some potential factors to develop their career path, they would reside and run businesses. The natural habitat, consequently, can be significantly plagued by massive construction of transport infrastructure. Another problem causing by this issue is that when the scientists come and live there, national authorities have to be in charge of guarantee the health and safe of them under severe weather by creating integrated transport system or building appropriate working environment. These investments can later on adversely affect the national budget. Also, the travel cost to these places appears to be high and just suitable for a small group of individuals.\n
                   All in all, that people can travel to distant places seems to cause more drawbacks than bring about benefits, so the government should take it to consideration carefully to protect ourselves, our lives and our globe.
                   """,
                 "submission_answer_draft_content" => "",
                 "submission_answer_fidelity_class" => null,
                 "submission_answer_score" => null,
                 "submission_answer_is_correct" => 0,
                 "submission_answer_marking" => null,
                 "submission_file" => null,
               ],
             ],
             "offset" => null,
             "section_id" => 2459,
             "explanation" => null,
             "element_timer" => null,
             "countdown_time" => null,
             "is_use_suggestion_order" => null,
             "suggestion_order_comment" => null,
           ],
         ],
       ],
     ],
     "submission_id" => "610b66aaf461373f872b1fe2",
     "submission_skill_id" => "610b66aaf461373f872b1fe3",
     "skill_id" => 4,
     "skill_name" => "Writing",
     "start_time" => 1630472490283,
     "end_time" => 1630472545025,
     "expired_at" => null,
     "marking_status" => null,
     "progress" => 100,
     "result" => "5.5",
     "status" => 3,
     "is_marked" => 1,
     "correct_answer" => null,
     "total_question" => null,
     "marking_data" => [
       "score" => 5.5,
       "comment" => null,
       "criteria" => [],
     ],
     "attempt" => 1,
     "submission_time" => 1630472553,
     "current_score" => "5.5",
     "result_type" => 1,
     "history" => [
       [
         "submission_id" => "610b66aaf461373f872b1fe2",
         "submission_skill_id" => "610b66aaf461373f872b1fe3",
         "skill_id" => 4,
         "skill_name" => "Writing",
         "start_time" => 1630472490283,
         "end_time" => 1630472545025,
         "expired_at" => null,
         "marking_status" => null,
         "progress" => 100,
         "result" => "5.5",
         "status" => 3,
         "is_marked" => 1,
         "correct_answer" => null,
         "total_question" => null,
         "marking_data" => [
           "score" => 5.5,
           "comment" => null,
           "criteria" => [],
         ],
         "attempt" => 1,
         "submission_time" => 1630472553,
       ],
     ],
     "programme_id" => null,
     "programme_name" => "",
     "course_id" => 52,
     "course_name" => [
       "en" => "Khoá chữa bài Writing",
       "vi" => "Khoá chữa bài Writing",
     ],
     "course_item_type" => 2,
     "course_item_id" => 506,
     "course_item_free" => 1,
     "course_item_title" => "WT2 Advantages & Disadvantages",
     "count_skill" => 1,
   ]
Video course: PHP Package Development