Question
Solution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references.
Students may use these solutions for personal skill-building and practice.
Unethical use is strictly forbidden.

*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "clock.h"
#include "structs.h"
#include "constants.h"
#include "scheduler.h"

/* Called when the program terminates.
* You may use this to clean up memory or for any other purpose.
*/
void scheduler_exit(Schedule *schedule) {
scheduler_free(schedule);
return;
}

/* Initialize the Schedule Struct
* Follow the specification for this function.
* Returns a pointer to the new Schedule or NULL on any error.
*/
Schedule *scheduler_init() {

Schedule *schedule = (Schedule *) malloc(sizeof(Schedule));

if (schedule == NULL) {
    return NULL;
}

List *ready_list = (List *) malloc(sizeof(List));

if (ready_list == NULL) {
    return NULL;
}
ready_list->head = NULL;
ready_list->count = 0;

List *stopped_list = (List *) malloc(sizeof(List));
if (stopped_list == NULL) {
    return NULL;
}
stopped_list->head = NULL;
stopped_list->count = 0;

List *defunct_list = (List *) malloc(sizeof(List));
if (defunct_list == NULL) {
    return NULL;
}
defunct_list->head = NULL;
defunct_list->count = 0;

schedule->ready_list = ready_list;
schedule->stopped_list = stopped_list;
schedule->defunct_list = defunct_list;

return schedule;
}

int insert_into_list(List *lst, Process *process) {
    if (lst != NULL) {      
       Process *tmp = lst->head;
       Process *prev = NULL;   
       int done = 0;
       // Adding the process in ascending order of pid
       while (tmp != NULL) {
          if(tmp->pid > process->pid) {
            if(prev == NULL) {
             process->next = tmp;
             lst->head = process;
             done = 1;
             break;
            } else {
             prev->next = process;
             process->next = tmp;
             done = 1;
             break;
            }
          }
          prev = tmp;
          tmp = tmp->next;
       }

       if(done == 0) {
          if (prev != NULL) { // Reached at the end
            prev->next = process;
          } else { // List is empty
            lst->head = process;
          }
       }
       lst->count += 1;
       return 0;
    } else {
      return -1;
    }
}

/* Add the process into the appropriate linked list.
* Follow the specification for this function.
* Returns a 0 on success or a -1 on any error.
*/
int scheduler_add(Schedule *schedule, Process *process) {
if (process == NULL || schedule == NULL) {
    return -1;
}
if ((process->flags & STATE_CREATED) == STATE_CREATED) {
    int mask = 1 << 0;
    process->flags = (process->flags & ~mask) | ((0 << 0) & mask);
    process->flags = process->flags | STATE_READY;

    List *ready_list = schedule->ready_list;
    return insert_into_list(ready_list, process);

} else if ((process->flags & STATE_READY) == STATE_READY) {
    if (process->time_remaining > 0) {
      List *ready_list = schedule->ready_list;
      return insert_into_list(ready_list, process);
    } else if (process->time_remaining == 0){
      int mask = 1 << 1;
      process->flags = (process->flags & ~mask) | ((0 << 1) & mask);
      process->flags = process->flags | STATE_DEFUNCT;
      List *defunct_list = schedule->defunct_list;
      return insert_into_list(defunct_list, process);
    } else if ((process->flags & STATE_DEFUNCT) == 1) {
      List *defunct_list = schedule->defunct_list;
      return insert_into_list(defunct_list, process);
    }
}

return -1;
}

/* Move the process with matching pid from Ready to Stopped.
* Change its State to Stopped.
* Follow the specification for this function.
* Returns a 0 on success or a -1 on any error.
*/
int scheduler_stop(Schedule *schedule, int pid) {

if (schedule != NULL
This is only a preview of the solution.
Please use the purchase button to see the entire solution.
By purchasing this solution you'll be able to access the following files:
scheduler.c
Purchase Solution
$52.50
Google Pay
Amazon
Paypal
Mastercard
Visacard
Discover
Amex
View Available Computer Science Tutors 529 tutors matched
Ionut
(ionut)
Hi! MSc Applied Informatics & Computer Science Engineer. Practical experience in many CS & IT branches.Research work & homework
5/5 (5,654+ sessions)
2 hours avg response
Leo
(Leo)
Hi! I have been a professor in New York and taught in a math department and in an applied math department.
4.9/5 (5,652+ sessions)
2 hours avg response
Pranay
(math1983)
Ph.D. in mathematics and working as an Assistant Professor in University. I can provide help in mathematics, statistics and allied areas.
4.6/5 (5,512+ sessions)
1 hour avg response

Similar Homework Solutions

8.1.0PHP Version894msRequest Duration45MBMemory UsageGET college-homework-library/{category}/{subject}/{id}Route
    • Booting (501ms)time
    • Application (393ms)time
    • 1 x Booting (56.03%)
      501ms
      1 x Application (43.97%)
      393ms
      • Illuminate\Routing\Events\Routing (1.36ms)
      • Illuminate\Routing\Events\RouteMatched (745μs)
      • Illuminate\Foundation\Events\LocaleUpdated (13.05ms)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (528μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (472μs)
      • Illuminate\Database\Events\ConnectionEstablished (3.01ms)
      • Illuminate\Database\Events\StatementPrepared (14.87ms)
      • Illuminate\Database\Events\QueryExecuted (1.57ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (148μs)
      • eloquent.booting: App\Models\Subject (124μs)
      • eloquent.booted: App\Models\Subject (60μs)
      • Illuminate\Database\Events\StatementPrepared (2.3ms)
      • Illuminate\Database\Events\QueryExecuted (1.61ms)
      • eloquent.retrieved: App\Models\Subject (140μs)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (152μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (58μs)
      • Illuminate\Database\Events\StatementPrepared (749μs)
      • Illuminate\Database\Events\QueryExecuted (1.16ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (104μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (22μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (12μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (10μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (10μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (7μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (7μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (10μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (10μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.booting: App\Models\SubjectCat (1.55ms)
      • eloquent.booted: App\Models\SubjectCat (298μs)
      • Illuminate\Database\Events\StatementPrepared (1.06ms)
      • Illuminate\Database\Events\QueryExecuted (4ms)
      • eloquent.retrieved: App\Models\SubjectCat (263μs)
      • Illuminate\Cache\Events\CacheHit (32.96ms)
      • Illuminate\Cache\Events\CacheMissed (2.52ms)
      • Illuminate\Database\Events\StatementPrepared (1.09ms)
      • Illuminate\Database\Events\QueryExecuted (20.1ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (124μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (24μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (13μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (10μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (11μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (9μs)
      • Illuminate\Database\Events\StatementPrepared (849μs)
      • Illuminate\Database\Events\QueryExecuted (1.38ms)
      • eloquent.retrieved: App\Models\Subject (151μs)
      • Illuminate\Cache\Events\KeyWritten (2.14ms)
      • Illuminate\Database\Events\StatementPrepared (2.78ms)
      • Illuminate\Database\Events\QueryExecuted (1.13ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (85μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (20μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (11μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (10μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (10μs)
      • Illuminate\Database\Events\StatementPrepared (1.88ms)
      • Illuminate\Database\Events\QueryExecuted (2.36ms)
      • Illuminate\Database\Events\StatementPrepared (2.68ms)
      • Illuminate\Database\Events\QueryExecuted (1.31ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (65μs)
      • Illuminate\Cache\Events\CacheHit (5.9ms)
      • creating: homework.show (439μs)
      • composing: homework.show (351μs)
      • creating: components.breadcrumbs (537μs)
      • composing: components.breadcrumbs (438μs)
      • Illuminate\Database\Events\StatementPrepared (1.84ms)
      • Illuminate\Database\Events\QueryExecuted (2.31ms)
      • eloquent.retrieved: App\Models\SubjectCat (928μs)
      • Illuminate\Cache\Events\CacheMissed (17.6ms)
      • Illuminate\Database\Events\StatementPrepared (1.62ms)
      • Illuminate\Database\Events\QueryExecuted (2.16ms)
      • eloquent.retrieved: App\Models\SubjectCat (666μs)
      • Illuminate\Cache\Events\KeyWritten (811μs)
      • Illuminate\Cache\Events\CacheHit (285μs)
      • Illuminate\Cache\Events\CacheHit (422μs)
      • Illuminate\Cache\Events\CacheHit (240μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (319μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (374μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheMissed (503μs)
      • Illuminate\Database\Events\StatementPrepared (1.47ms)
      • Illuminate\Database\Events\QueryExecuted (1.3ms)
      • eloquent.retrieved: App\Models\SubjectCat (73μs)
      • Illuminate\Cache\Events\KeyWritten (644μs)
      • Illuminate\Cache\Events\CacheHit (2.79ms)
      • Illuminate\Cache\Events\CacheHit (5.03ms)
      • Illuminate\Cache\Events\CacheHit (455μs)
      • Illuminate\Cache\Events\CacheHit (284μs)
      • Illuminate\Cache\Events\CacheHit (1.85ms)
      • Illuminate\Cache\Events\CacheHit (246μs)
      • Illuminate\Cache\Events\CacheHit (1.14ms)
      • Illuminate\Cache\Events\CacheMissed (319μs)
      • Illuminate\Database\Events\StatementPrepared (4.2ms)
      • Illuminate\Database\Events\QueryExecuted (6.31ms)
      • eloquent.retrieved: App\Models\SubjectCat (280μs)
      • Illuminate\Cache\Events\KeyWritten (444μs)
      • Illuminate\Cache\Events\CacheHit (3.05ms)
      • Illuminate\Cache\Events\CacheHit (242μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (482μs)
      • Illuminate\Cache\Events\CacheHit (228μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (1.25ms)
      • Illuminate\Cache\Events\CacheHit (243μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (4.34ms)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (229μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheHit (233μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheMissed (349μs)
      • Illuminate\Database\Events\StatementPrepared (966μs)
      • Illuminate\Database\Events\QueryExecuted (3.89ms)
      • eloquent.retrieved: App\Models\SubjectCat (115μs)
      • Illuminate\Cache\Events\KeyWritten (437μs)
      • Illuminate\Cache\Events\CacheHit (378μs)
      • Illuminate\Cache\Events\CacheHit (348μs)
      • Illuminate\Cache\Events\CacheHit (267μs)
      • Illuminate\Cache\Events\CacheHit (615μs)
      • Illuminate\Cache\Events\CacheHit (387μs)
      • Illuminate\Cache\Events\CacheHit (230μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (455μs)
      • Illuminate\Cache\Events\CacheHit (4.34ms)
      • Illuminate\Cache\Events\CacheHit (241μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (251μs)
      • Illuminate\Cache\Events\CacheHit (211μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (215μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (344μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (217μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (255μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (288μs)
      • Illuminate\Cache\Events\CacheHit (232μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheMissed (144μs)
      • Illuminate\Database\Events\StatementPrepared (796μs)
      • Illuminate\Database\Events\QueryExecuted (937μs)
      • eloquent.retrieved: App\Models\SubjectCat (96μs)
      • Illuminate\Cache\Events\KeyWritten (375μs)
      • Illuminate\Cache\Events\CacheHit (1.08ms)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheMissed (372μs)
      • Illuminate\Database\Events\StatementPrepared (748μs)
      • Illuminate\Database\Events\QueryExecuted (1.08ms)
      • eloquent.retrieved: App\Models\SubjectCat (92μs)
      • Illuminate\Cache\Events\KeyWritten (366μs)
      • Illuminate\Cache\Events\CacheHit (1.29ms)
      • Illuminate\Cache\Events\CacheHit (233μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (234μs)
      • Illuminate\Cache\Events\CacheHit (251μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (927μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (275μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (221μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheMissed (312μs)
      • Illuminate\Database\Events\StatementPrepared (811μs)
      • Illuminate\Database\Events\QueryExecuted (1.08ms)
      • eloquent.retrieved: App\Models\SubjectCat (92μs)
      • Illuminate\Cache\Events\KeyWritten (1.32ms)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (407μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (474μs)
      • Illuminate\Cache\Events\CacheHit (231μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (227μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (296μs)
      • Illuminate\Cache\Events\CacheHit (325μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (1.39ms)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (298μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (6.29ms)
      • Illuminate\Cache\Events\CacheHit (1.54ms)
      • Illuminate\Cache\Events\CacheHit (639μs)
      • Illuminate\Cache\Events\CacheHit (375μs)
      • Illuminate\Cache\Events\CacheHit (3.38ms)
      • Illuminate\Cache\Events\CacheHit (228μs)
      • Illuminate\Cache\Events\CacheHit (352μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (1.35ms)
      • Illuminate\Cache\Events\CacheHit (347μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (1.41ms)
      • Illuminate\Cache\Events\CacheHit (247μs)
      • Illuminate\Cache\Events\CacheHit (248μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (460μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (308μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (288μs)
      • Illuminate\Cache\Events\CacheHit (231μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (435μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (16.79ms)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (3.85ms)
      • Illuminate\Cache\Events\CacheHit (320μs)
      • Illuminate\Cache\Events\CacheHit (330μs)
      • Illuminate\Cache\Events\CacheHit (763μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (259μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (19.26ms)
      • Illuminate\Cache\Events\CacheHit (480μs)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheHit (231μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (13.37ms)
      • Illuminate\Cache\Events\CacheHit (10.75ms)
      • Illuminate\Cache\Events\CacheHit (252μs)
      • Illuminate\Cache\Events\CacheHit (242μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (216μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (221μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (279μs)
      • Illuminate\Cache\Events\CacheHit (236μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (8.31ms)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (149μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (151μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (149μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (260μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (147μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (265μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (148μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (410μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (1.35ms)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • creating: site.layouts.app (517μs)
      • composing: site.layouts.app (23μs)
      • creating: components.canonical (8.72ms)
      • composing: components.canonical (120μs)
      • creating: components.open-graph (284μs)
      • composing: components.open-graph (84μs)
      • creating: site.headers.header (330μs)
      • composing: site.headers.header (90μs)
      • Illuminate\Cache\Events\CacheHit (2.69ms)
      • creating: components.footer (155μs)
      • composing: components.footer (94μs)
      • Illuminate\Cache\Events\CacheHit (906μs)
      • Illuminate\Cache\Events\CacheHit (384μs)
      • Illuminate\Cache\Events\CacheHit (302μs)
      • Illuminate\Cache\Events\CacheHit (299μs)
      • Illuminate\Cache\Events\CacheHit (292μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (312μs)
      • Illuminate\Cache\Events\CacheHit (2.29ms)
      • Illuminate\Cache\Events\CacheHit (222μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (306μs)
      • Illuminate\Cache\Events\CacheHit (324μs)
      • creating: components.forms.contact-us (306μs)
      • composing: components.forms.contact-us (188μs)
      • creating: components.forms.get-started (267μs)
      • composing: components.forms.get-started (96μs)
      • creating: components.forms.free-tool-download (308μs)
      • composing: components.forms.free-tool-download (89μs)
      • creating: components.forms.claim-free-worksheet (192μs)
      • composing: components.forms.claim-free-worksheet (77μs)
      • creating: components.forms.tutor-subscription-waitlist (112μs)
      • composing: components.forms.tutor-subscription-waitlist (61μs)
      • creating: components.forms.tutor-subscription-join (101μs)
      • composing: components.forms.tutor-subscription-join (188μs)
      • creating: components.forms.tutor-support (125μs)
      • composing: components.forms.tutor-support (160μs)
      • 314 x Illuminate\Cache\Events\CacheHit (24.92%)
        223ms
        17 x Illuminate\Database\Events\QueryExecuted (6%)
        53.68ms
        17 x Illuminate\Database\Events\StatementPrepared (4.55%)
        40.71ms
        8 x Illuminate\Cache\Events\CacheMissed (2.47%)
        22.13ms
        1 x Illuminate\Foundation\Events\LocaleUpdated (1.46%)
        13.05ms
        1 x creating: components.canonical (0.97%)
        8.72ms
        8 x Illuminate\Cache\Events\KeyWritten (0.73%)
        6.53ms
        1 x Illuminate\Database\Events\ConnectionEstablished (0.34%)
        3.01ms
        9 x eloquent.retrieved: App\Models\SubjectCat (0.29%)
        2.61ms
        1 x eloquent.booting: App\Models\SubjectCat (0.17%)
        1.55ms
        1 x Illuminate\Routing\Events\Routing (0.15%)
        1.36ms
        1 x Illuminate\Routing\Events\RouteMatched (0.08%)
        745μs
        49 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.08%)
        677μs
        1 x creating: components.breadcrumbs (0.06%)
        537μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (0.06%)
        528μs
        1 x creating: site.layouts.app (0.06%)
        517μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (0.05%)
        472μs
        1 x creating: homework.show (0.05%)
        439μs
        1 x composing: components.breadcrumbs (0.05%)
        438μs
        1 x composing: homework.show (0.04%)
        351μs
        7 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (0.04%)
        339μs
        1 x creating: site.headers.header (0.04%)
        330μs
        1 x creating: components.forms.free-tool-download (0.03%)
        308μs
        1 x creating: components.forms.contact-us (0.03%)
        306μs
        1 x eloquent.booted: App\Models\SubjectCat (0.03%)
        298μs
        2 x eloquent.retrieved: App\Models\Subject (0.03%)
        291μs
        1 x creating: components.open-graph (0.03%)
        284μs
        1 x creating: components.forms.get-started (0.03%)
        267μs
        1 x creating: components.forms.claim-free-worksheet (0.02%)
        192μs
        1 x composing: components.forms.contact-us (0.02%)
        188μs
        1 x composing: components.forms.tutor-subscription-join (0.02%)
        188μs
        1 x composing: components.forms.tutor-support (0.02%)
        160μs
        1 x creating: components.footer (0.02%)
        155μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.02%)
        152μs
        1 x creating: components.forms.tutor-support (0.01%)
        125μs
        1 x eloquent.booting: App\Models\Subject (0.01%)
        124μs
        1 x composing: components.canonical (0.01%)
        120μs
        1 x creating: components.forms.tutor-subscription-waitlist (0.01%)
        112μs
        1 x creating: components.forms.tutor-subscription-join (0.01%)
        101μs
        1 x composing: components.forms.get-started (0.01%)
        96μs
        1 x composing: components.footer (0.01%)
        94μs
        1 x composing: site.headers.header (0.01%)
        90μs
        1 x composing: components.forms.free-tool-download (0.01%)
        89μs
        1 x composing: components.open-graph (0.01%)
        84μs
        1 x composing: components.forms.claim-free-worksheet (0.01%)
        77μs
        1 x composing: components.forms.tutor-subscription-waitlist (0.01%)
        61μs
        1 x eloquent.booted: App\Models\Subject (0.01%)
        60μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.01%)
        58μs
        1 x composing: site.layouts.app (0%)
        23μs
      14 templates were rendered
      • 1x homework.showshow.blade.phpblade
      • 1x components.breadcrumbsbreadcrumbs.blade.phpblade
      • 1x site.layouts.appapp.blade.phpblade
      • 1x components.canonicalcanonical.blade.phpblade
      • 1x components.open-graphopen-graph.blade.phpblade
      • 1x site.headers.headerheader.blade.phpblade
      • 1x components.footerfooter.blade.phpblade
      • 1x components.forms.contact-uscontact-us.blade.phpblade
      • 1x components.forms.get-startedget-started.blade.phpblade
      • 1x components.forms.free-tool-downloadfree-tool-download.blade.phpblade
      • 1x components.forms.claim-free-worksheetclaim-free-worksheet.blade.phpblade
      • 1x components.forms.tutor-subscription-waitlisttutor-subscription-waitlist.blade.phpblade
      • 1x components.forms.tutor-subscription-jointutor-subscription-join.blade.phpblade
      • 1x components.forms.tutor-supporttutor-support.blade.phpblade
      uri
      GET college-homework-library/{category}/{subject}/{id}
      middleware
      web, utm.parameters
      controller
      App\Http\Controllers\HomeworkLibraryController@show
      namespace
      where
      as
      homework.show
      file
      app/Http/Controllers/HomeworkLibraryController.php:79-176
      17 statements were executed, 5 of which were duplicates, 12 unique. Show only duplicated65.69ms
      • Connection Establishedtwenty4_siteHomeworkLibraryController.php#91
        Backtrace
        • 13. app/Http/Controllers/HomeworkLibraryController.php:91
        • 14. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 15. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 16. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 17. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `solutionslibrary` where `status` = 'published' and `price` > 0 and `solutionslibrary`.`id` = '59649' limit 1
        15.01mstwenty4_siteHomeworkLibraryController.php#97
        Bindings
        • 0: published
        • 1: 0
        • 2: 59649
        Backtrace
        • 16. app/Http/Controllers/HomeworkLibraryController.php:97
        • 17. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 18. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 19. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 20. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `subjects` where `subjects`.`id` in (16)
        1.75mstwenty4_siteHomeworkLibraryController.php#97
        Backtrace
        • 21. app/Http/Controllers/HomeworkLibraryController.php:97
        • 22. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 23. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 24. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 25. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` in (59649)
        1.1mstwenty4_siteHomeworkLibraryController.php#97
        Backtrace
        • 21. app/Http/Controllers/HomeworkLibraryController.php:97
        • 22. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 23. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 24. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
        • 25. vendor/laravel/framework/src/Illuminate/Routing/Route.php:205
      • select * from `subject_cats` where `subject_cats`.`id` = 3 limit 1
        3.8mstwenty4_siteHomeworkLibrary.php#201
        Bindings
        • 0: 3
        Backtrace
        • 20. app/Models/HomeworkLibrary/HomeworkLibrary.php:201
        • 26. app/Http/Controllers/HomeworkLibraryController.php:105
        • 27. vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • 28. vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • 29. vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • select * from `solutionslibrary` where `id` <> 59649 and `subject` = 16 and `status` = 'published' and `price` > 0 order by RAND() limit 6
        20.22mstwenty4_siteHomeworkLibraryRepository.php#30
        Bindings
        • 0: 59649
        • 1: 16
        • 2: published
        • 3: 0
        Backtrace
        • 14. app/Repositories/HomeworkLibraryRepository.php:30
        • 15. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 16. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 18. app/Repositories/HomeworkLibraryRepository.php:39
        • 19. app/Http/Controllers/HomeworkLibraryController.php:139
      • select * from `subjects` where `subjects`.`id` in (16)
        1.17mstwenty4_siteHomeworkLibraryRepository.php#30
        Backtrace
        • 19. app/Repositories/HomeworkLibraryRepository.php:30
        • 20. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 21. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 23. app/Repositories/HomeworkLibraryRepository.php:39
        • 24. app/Http/Controllers/HomeworkLibraryController.php:139
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 59649 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'question' order by `order` asc, `id` asc
        1.1mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 59649
        • 1: question
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:58
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 59649 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'teaser' order by `order` asc, `id` asc
        1.01mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 59649
        • 1: teaser
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:69
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `solutionslibrary_files` where `solutionslibrary_files`.`solutionlib_id` = 59649 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'solution' order by `order` asc, `id` asc
        2.77mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 59649
        • 1: solution
        Backtrace
        • 15. app/Models/HomeworkLibrary/HomeworkLibrary.php:260
        • 16. app/Transformers/HomeworkLibrary/HomeworkLibraryTransformer.php:80
        • 19. vendor/league/fractal/src/TransformerAbstract.php:128
        • 20. vendor/league/fractal/src/TransformerAbstract.php:107
        • 21. vendor/league/fractal/src/Scope.php:383
      • select * from `subject_cats` where `subject_cats`.`id` = 3 limit 1
        2.28mstwenty4_siteHomeworkLibrary.php#201
        Bindings
        • 0: 3
        Backtrace
        • 20. app/Models/HomeworkLibrary/HomeworkLibrary.php:201
        • 32. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
        • 33. vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
        • 34. vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:69
        • 35. vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
      • select * from `subject_cats` where `subject_cats`.`id` = 1 limit 1
        2.37mstwenty4_siteSubject.php#100
        Bindings
        • 0: 1
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 3 limit 1
        2.01mstwenty4_siteSubject.php#100
        Bindings
        • 0: 3
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 4 limit 1
        3.85mstwenty4_siteSubject.php#100
        Bindings
        • 0: 4
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 10 limit 1
        3.88mstwenty4_siteSubject.php#100
        Bindings
        • 0: 10
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 33 limit 1
        1.07mstwenty4_siteSubject.php#100
        Bindings
        • 0: 33
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 11 limit 1
        1.13mstwenty4_siteSubject.php#100
        Bindings
        • 0: 11
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 5 limit 1
        1.17mstwenty4_siteSubject.php#100
        Bindings
        • 0: 5
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      App\Models\HomeworkLibrary\HomeworkLibraryFile
      49HomeworkLibraryFile.php
      App\Models\SubjectCat
      9SubjectCat.php
      App\Models\HomeworkLibrary\HomeworkLibrary
      7HomeworkLibrary.php
      App\Models\Subject
      2Subject.php
          _token
          GGFcvmXiFuM3FxEdEbAwdFnMH5Si3cMcyHND0Isc
          utm_source
          direct
          redirectUrl
          /college-homework-library/Computer-Science/C-Family-Programming/59649
          _previous
          array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Scienc...
          _flash
          array:2 [ "old" => [] "new" => [] ]
          PHPDEBUGBAR_STACK_DATA
          []
          path_info
          /college-homework-library/Computer-Science/C-Family-Programming/59649
          status_code
          200
          
          status_text
          OK
          format
          html
          content_type
          text/html; charset=UTF-8
          request_query
          []
          
          request_request
          []
          
          request_headers
          0 of 0
          array:21 [ "priority" => array:1 [ 0 => "u=0, i" ] "accept-encoding" => array:1 [ 0 => "gzip, deflate, br, zstd" ] "sec-fetch-dest" => array:1 [ 0 => "document" ] "sec-fetch-user" => array:1 [ 0 => "?1" ] "sec-fetch-mode" => array:1 [ 0 => "navigate" ] "sec-fetch-site" => array:1 [ 0 => "none" ] "accept" => array:1 [ 0 => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" ] "user-agent" => array:1 [ 0 => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" ] "upgrade-insecure-requests" => array:1 [ 0 => "1" ] "sec-ch-ua-platform" => array:1 [ 0 => ""Windows"" ] "sec-ch-ua-mobile" => array:1 [ 0 => "?0" ] "sec-ch-ua" => array:1 [ 0 => ""HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"" ] "cache-control" => array:1 [ 0 => "no-cache" ] "pragma" => array:1 [ 0 => "no-cache" ] "x-amzn-trace-id" => array:1 [ 0 => "Root=1-67fd1cae-768036fc68579601089a561f" ] "host" => array:1 [ 0 => "staging.dev.24houranswers.com" ] "x-forwarded-port" => array:1 [ 0 => "443" ] "x-forwarded-proto" => array:1 [ 0 => "https" ] "x-forwarded-for" => array:1 [ 0 => "18.191.112.81" ] "content-length" => array:1 [ 0 => "" ] "content-type" => array:1 [ 0 => "" ] ]
          request_cookies
          []
          
          response_headers
          0 of 0
          array:5 [ "content-type" => array:1 [ 0 => "text/html; charset=UTF-8" ] "cache-control" => array:1 [ 0 => "no-cache, private" ] "date" => array:1 [ 0 => "Mon, 14 Apr 2025 14:33:19 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6ImhoNnhWTjJMWUVkYVRacHVLWGxlNlE9PSIsInZhbHVlIjoiR0xqYnRjTjhiYXozRjVmYkMvdXMxQ09waWtyNlJOdEV3Y0luRDd3SFRiVFVwT3MwNEZuYWNhOE5xZExieXB2QXFORk9sbkNXQ24xN0FkZlZWL0RhOFpmZmNiSHE0UnVNNG53aHZPcjYxbTE5VnZIbXRGM1ByTGkzRld4bUU5Y3ciLCJtYWMiOiIyYTU2YzZmYWZmODc2NDJmODhmOGIxNjZkYWJlY2FhNzc4ODNiMzExMzhkMmUzODA3ZGFlNjAyZjQ0MjdjZjk4IiwidGFnIjoiIn0%3D; expires=Mon, 14 Apr 2025 16:33:19 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; samesite=laxXSRF-TOKEN=eyJpdiI6ImhoNnhWTjJMWUVkYVRacHVLWGxlNlE9PSIsInZhbHVlIjoiR0xqYnRjTjhiYXozRjVmYkMvdXMxQ09waWtyNlJOdEV3Y0luRDd3SFRiVFVwT3MwNEZuYWNhOE5xZExieXB2QXFORk9sb" 1 => "24houranswers_session=eyJpdiI6InR6OXROUkVVSmJIMzdMTC9vdmFMYVE9PSIsInZhbHVlIjoiYkYyQzdhL0JiNEJFRzR3TTNnT0l1UGRQZXFnVWlqRTF3VFZXYkh3N1ZvVmY2RlcyaUlNc1BKT1lWclI3V2JLRllMQ3liR1JyQ0J5cGh3bTQ2d2RDZWNWNlJWR002TkRjSnVlUmRWbFMwYm5BTjFyZTJJWkljRFIrQ1BKNndIb3ciLCJtYWMiOiJlOTA2NTIxNDk2M2E5NzExNDE0MDliZmU3NzNmYzE1ODJlNWI1Mzg4NDM4NDdlN2U4NWUyMzZkZWRlZGI4MjFjIiwidGFnIjoiIn0%3D; expires=Mon, 14 Apr 2025 16:33:19 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; httponly; samesite=lax24houranswers_session=eyJpdiI6InR6OXROUkVVSmJIMzdMTC9vdmFMYVE9PSIsInZhbHVlIjoiYkYyQzdhL0JiNEJFRzR3TTNnT0l1UGRQZXFnVWlqRTF3VFZXYkh3N1ZvVmY2RlcyaUlNc1BKT1lWclI3V2" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6ImhoNnhWTjJMWUVkYVRacHVLWGxlNlE9PSIsInZhbHVlIjoiR0xqYnRjTjhiYXozRjVmYkMvdXMxQ09waWtyNlJOdEV3Y0luRDd3SFRiVFVwT3MwNEZuYWNhOE5xZExieXB2QXFORk9sbkNXQ24xN0FkZlZWL0RhOFpmZmNiSHE0UnVNNG53aHZPcjYxbTE5VnZIbXRGM1ByTGkzRld4bUU5Y3ciLCJtYWMiOiIyYTU2YzZmYWZmODc2NDJmODhmOGIxNjZkYWJlY2FhNzc4ODNiMzExMzhkMmUzODA3ZGFlNjAyZjQ0MjdjZjk4IiwidGFnIjoiIn0%3D; expires=Mon, 14-Apr-2025 16:33:19 GMT; domain=.24houranswers.com; path=/XSRF-TOKEN=eyJpdiI6ImhoNnhWTjJMWUVkYVRacHVLWGxlNlE9PSIsInZhbHVlIjoiR0xqYnRjTjhiYXozRjVmYkMvdXMxQ09waWtyNlJOdEV3Y0luRDd3SFRiVFVwT3MwNEZuYWNhOE5xZExieXB2QXFORk9sb" 1 => "24houranswers_session=eyJpdiI6InR6OXROUkVVSmJIMzdMTC9vdmFMYVE9PSIsInZhbHVlIjoiYkYyQzdhL0JiNEJFRzR3TTNnT0l1UGRQZXFnVWlqRTF3VFZXYkh3N1ZvVmY2RlcyaUlNc1BKT1lWclI3V2JLRllMQ3liR1JyQ0J5cGh3bTQ2d2RDZWNWNlJWR002TkRjSnVlUmRWbFMwYm5BTjFyZTJJWkljRFIrQ1BKNndIb3ciLCJtYWMiOiJlOTA2NTIxNDk2M2E5NzExNDE0MDliZmU3NzNmYzE1ODJlNWI1Mzg4NDM4NDdlN2U4NWUyMzZkZWRlZGI4MjFjIiwidGFnIjoiIn0%3D; expires=Mon, 14-Apr-2025 16:33:19 GMT; domain=.24houranswers.com; path=/; httponly24houranswers_session=eyJpdiI6InR6OXROUkVVSmJIMzdMTC9vdmFMYVE9PSIsInZhbHVlIjoiYkYyQzdhL0JiNEJFRzR3TTNnT0l1UGRQZXFnVWlqRTF3VFZXYkh3N1ZvVmY2RlcyaUlNc1BKT1lWclI3V2" ] ]
          session_attributes
          0 of 0
          array:6 [ "_token" => "GGFcvmXiFuM3FxEdEbAwdFnMH5Si3cMcyHND0Isc" "utm_source" => "direct" "redirectUrl" => "/college-homework-library/Computer-Science/C-Family-Programming/59649" "_previous" => array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Science/C-Family-Programming/59649" ] "_flash" => array:2 [ "old" => [] "new" => [] ] "PHPDEBUGBAR_STACK_DATA" => [] ]