Question
Hash Table

You are to design and implement a Hash Table ADT. The HT must use chaining for collision handling and rely on your Dynamic List to implement chaining for collision handling. The key, data pair are void *’s and each has a corresponding size specifier.

The user of the HT must supply the HT, the hash function to the HT as a function pointer, a compare function as a function pointer to compare keys in the HT, and the HT size during the htCreate function call. You need to design the hash table header file consisting of the data structure(s) as well as the functions for the HT. The function names are to be htName, so for instance, htCreate, htTerminate, …

The HT has the expected set of functions to:

a) create a HT
b) terminate a HT
c) insert a key and associated data into the HT
d) delete a key (and associated data) from the HT returning the data
e) update a key’s data
f) find a key in the HT returning the key’s data
g) check if the HT is empty
h) check if the HT is full
i) print the HT
j) any other functions you so desire pertaining to a HT

In addition to implementing the data structure, you must provide a Makefile and test driver (htDriver.c that produces an executable named htdriver) that thoroughly tests your data structure.

Renumber Program

Sooooo, what are we going to do with our hash table once it’s implemented?

The introduction of microcomputers in the mid-1970s was the start for the explosive growth of the BASIC programming language. Here is a BASIC program (fact.bas) to find the factorial of a number.

Notice that each line has an associated line number.

We used to have to type in a line number and then the BASIC code. You can
imagine that the line numbering scheme gets messy and in some cases, one can even run out of line numbers. For instance, we can only put 4 more lines between line 10 and line 15. It would be nice to have a renumbering program and that’s what I’m asking you to write.

As an example, renumber fact.bas rfact.bas 100 10 will renumber a program called fact.bas in rfact.bas where the first line number will be 100, the second line number will be 110, then 120, and so on.

There are five kinds of BASIC statements that can cause problems during the renumbering process and they are:
1.if e xpression then ###
2. gosub ###
3. goto ###
4. on expr goto ### {, ###, …}
5. on expr gosub ### {, ###, …}

For this assignment, you are to handle the first three BASIC statements (1. , 2., and 3.) and assume that the program passed to your renumber program is well- formed. There will not be any syntax errors in the input program and there cannot be any syntax errors in the output program following the execution of your renumbering program. There will be one BASIC statement per line. Line numbers will be in the range of 0 to 99999 inclusive. For this assignment, the reserved words if, then, gosub, and goto will all be lowercase.
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 "list.h"
#include "ht.h"
#include <stdbool.h>
#include <stdio.h>

HT * htCreate(int (*hash)(void * k, int size),
       int (*cmp)(void * k1, void * k2),
       void (*print)(void * d), int size) {
    // initialize the table
    HT * ht = (HT *) malloc(sizeof (HT));
    ht->cmp = cmp;
    ht->hash = hash;
    ht->size = size;
    ht->print = print;
    ht->table = (List*) calloc(size, sizeof (List));
    // array of list
    List * table = ht->table;
    /// initialize the array
    int i;
    for (i = 0; i < size; i++) {
       lstCreate(table + i);
    }
    return ht;
}

void htTerminate(HT * ht) {
    if (ht == NULL) {
       return;
    }
    int i;
    // remove each list in the teble
    List * table = ht->table;
    for (i = 0; i < ht->size; i++) {
       lstTerminate(table + i);
    }
    // remove the table
    free(ht);
}

void htInsert(void * key, void * data, HT * ht) {
    if (ht == NULL) {
       return;
    }
    // find the right slot
    int index = ht->hash(key, ht->size);
   
    // add to the right slot
    List * table = ht->table;
    Pair p;
    p.data = data;
    p.key = key;
    // add to head of the list
    // to reduce running time
    lstInsertBefore(table + index, &p, sizeof (Pair));
}

void htDelete(void * key, HT * ht) {
    if (ht == NULL) {
       return;
    }
    // find the right slot
    int index = ht->hash(key, ht->size);
    List * table = ht->table;
    Pair p;
    Pair tmp;
    int i = 0;
    // iterate to the first item of the list
    lstFirst(table + index, &tmp, sizeof (Pair));
    // move to the end of the list
    while (i < lstSize(table + index)) {
       p = *(Pair *) lstPeek(table + index, &p, sizeof (Pair));
       if (ht->cmp(p.key, key) == 0) { // found it
            // remove it
            lstDeleteCurrent(table + index, &p, sizeof (Pair));
            return;
       }
       // move to the next one
       lstNext(table + index, &p, sizeof (Pair));
       i++;
    }
}
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:
Solution.zip
Purchase Solution
$184.00
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 Version486msRequest Duration45MBMemory UsageGET college-homework-library/{category}/{subject}/{id}Route
    • Booting (288ms)time
    • Application (199ms)time
    • 1 x Booting (59.13%)
      288ms
      1 x Application (40.87%)
      199ms
      • Illuminate\Routing\Events\Routing (724μs)
      • Illuminate\Routing\Events\RouteMatched (511μs)
      • Illuminate\Foundation\Events\LocaleUpdated (2.26ms)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (172μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (146μs)
      • Illuminate\Database\Events\ConnectionEstablished (644μs)
      • Illuminate\Database\Events\StatementPrepared (33.15ms)
      • Illuminate\Database\Events\QueryExecuted (1.74ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (115μs)
      • eloquent.booting: App\Models\Subject (107μs)
      • eloquent.booted: App\Models\Subject (39μs)
      • Illuminate\Database\Events\StatementPrepared (1.58ms)
      • Illuminate\Database\Events\QueryExecuted (1.38ms)
      • eloquent.retrieved: App\Models\Subject (101μs)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (317μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (47μs)
      • Illuminate\Database\Events\StatementPrepared (763μs)
      • Illuminate\Database\Events\QueryExecuted (3.51ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (108μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (17μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (7μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (5μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (5μs)
      • eloquent.booting: App\Models\SubjectCat (383μs)
      • eloquent.booted: App\Models\SubjectCat (40μs)
      • Illuminate\Database\Events\StatementPrepared (857μs)
      • Illuminate\Database\Events\QueryExecuted (891μs)
      • eloquent.retrieved: App\Models\SubjectCat (110μs)
      • Illuminate\Cache\Events\CacheHit (10.46ms)
      • Illuminate\Cache\Events\CacheMissed (1.47ms)
      • Illuminate\Database\Events\StatementPrepared (827μs)
      • Illuminate\Database\Events\QueryExecuted (22.22ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (96μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (16μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (10μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (6μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (7μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (6μs)
      • Illuminate\Database\Events\StatementPrepared (793μs)
      • Illuminate\Database\Events\QueryExecuted (1.34ms)
      • eloquent.retrieved: App\Models\Subject (91μs)
      • Illuminate\Cache\Events\KeyWritten (1.69ms)
      • Illuminate\Database\Events\StatementPrepared (1.61ms)
      • Illuminate\Database\Events\QueryExecuted (1.29ms)
      • Illuminate\Database\Events\StatementPrepared (1.1ms)
      • Illuminate\Database\Events\QueryExecuted (1ms)
      • Illuminate\Database\Events\StatementPrepared (720μs)
      • Illuminate\Database\Events\QueryExecuted (1.09ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (59μs)
      • Illuminate\Cache\Events\CacheHit (745μs)
      • creating: homework.show (400μs)
      • composing: homework.show (162μs)
      • creating: components.breadcrumbs (395μs)
      • composing: components.breadcrumbs (175μs)
      • Illuminate\Database\Events\StatementPrepared (1.49ms)
      • Illuminate\Database\Events\QueryExecuted (984μs)
      • eloquent.retrieved: App\Models\SubjectCat (98μs)
      • Illuminate\Cache\Events\CacheMissed (4.86ms)
      • Illuminate\Database\Events\StatementPrepared (832μs)
      • Illuminate\Database\Events\QueryExecuted (1.2ms)
      • eloquent.retrieved: App\Models\SubjectCat (74μs)
      • Illuminate\Cache\Events\KeyWritten (352μs)
      • Illuminate\Cache\Events\CacheHit (315μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (303μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (295μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheMissed (2.31ms)
      • Illuminate\Database\Events\StatementPrepared (626μs)
      • Illuminate\Database\Events\QueryExecuted (1ms)
      • eloquent.retrieved: App\Models\SubjectCat (88μs)
      • Illuminate\Cache\Events\KeyWritten (1.13ms)
      • Illuminate\Cache\Events\CacheHit (258μs)
      • Illuminate\Cache\Events\CacheHit (234μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (248μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheMissed (202μs)
      • Illuminate\Database\Events\StatementPrepared (528μs)
      • Illuminate\Database\Events\QueryExecuted (777μs)
      • eloquent.retrieved: App\Models\SubjectCat (81μs)
      • Illuminate\Cache\Events\KeyWritten (1.32ms)
      • Illuminate\Cache\Events\CacheHit (217μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (148μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (135μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (345μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheMissed (134μs)
      • Illuminate\Database\Events\StatementPrepared (716μs)
      • Illuminate\Database\Events\QueryExecuted (892μs)
      • eloquent.retrieved: App\Models\SubjectCat (72μs)
      • Illuminate\Cache\Events\KeyWritten (302μs)
      • Illuminate\Cache\Events\CacheHit (1.3ms)
      • Illuminate\Cache\Events\CacheHit (225μs)
      • Illuminate\Cache\Events\CacheHit (141μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (232μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (149μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (232μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (145μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (312μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (130μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheMissed (136μs)
      • Illuminate\Database\Events\StatementPrepared (844μs)
      • Illuminate\Database\Events\QueryExecuted (930μs)
      • eloquent.retrieved: App\Models\SubjectCat (82μs)
      • Illuminate\Cache\Events\KeyWritten (522μs)
      • Illuminate\Cache\Events\CacheHit (1.19ms)
      • Illuminate\Cache\Events\CacheHit (211μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (136μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheMissed (193μs)
      • Illuminate\Database\Events\StatementPrepared (731μs)
      • Illuminate\Database\Events\QueryExecuted (1.22ms)
      • eloquent.retrieved: App\Models\SubjectCat (65μs)
      • Illuminate\Cache\Events\KeyWritten (1.39ms)
      • Illuminate\Cache\Events\CacheHit (274μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (820μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (5ms)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (143μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheMissed (233μs)
      • Illuminate\Database\Events\StatementPrepared (843μs)
      • Illuminate\Database\Events\QueryExecuted (1.01ms)
      • eloquent.retrieved: App\Models\SubjectCat (91μs)
      • Illuminate\Cache\Events\KeyWritten (581μs)
      • Illuminate\Cache\Events\CacheHit (367μs)
      • Illuminate\Cache\Events\CacheHit (549μs)
      • Illuminate\Cache\Events\CacheHit (306μs)
      • Illuminate\Cache\Events\CacheHit (343μs)
      • Illuminate\Cache\Events\CacheHit (336μs)
      • Illuminate\Cache\Events\CacheHit (339μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (526μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (320μs)
      • Illuminate\Cache\Events\CacheHit (319μs)
      • Illuminate\Cache\Events\CacheHit (338μs)
      • Illuminate\Cache\Events\CacheHit (322μs)
      • Illuminate\Cache\Events\CacheHit (342μs)
      • Illuminate\Cache\Events\CacheHit (311μs)
      • Illuminate\Cache\Events\CacheHit (341μs)
      • Illuminate\Cache\Events\CacheHit (325μs)
      • Illuminate\Cache\Events\CacheHit (602μs)
      • Illuminate\Cache\Events\CacheHit (320μs)
      • Illuminate\Cache\Events\CacheHit (337μs)
      • Illuminate\Cache\Events\CacheHit (319μs)
      • Illuminate\Cache\Events\CacheHit (333μs)
      • Illuminate\Cache\Events\CacheHit (300μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (145μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (94μs)
      • Illuminate\Cache\Events\CacheHit (138μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (290μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (142μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (143μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (130μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheMissed (229μs)
      • Illuminate\Database\Events\StatementPrepared (873μs)
      • Illuminate\Database\Events\QueryExecuted (1.02ms)
      • eloquent.retrieved: App\Models\SubjectCat (85μs)
      • Illuminate\Cache\Events\KeyWritten (607μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (244μs)
      • Illuminate\Cache\Events\CacheHit (146μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (257μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (625μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (148μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (147μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (139μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheMissed (207μs)
      • Illuminate\Database\Events\StatementPrepared (776μs)
      • Illuminate\Database\Events\QueryExecuted (849μs)
      • eloquent.retrieved: App\Models\SubjectCat (74μs)
      • Illuminate\Cache\Events\KeyWritten (281μs)
      • Illuminate\Cache\Events\CacheHit (293μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • creating: site.layouts.app (425μs)
      • composing: site.layouts.app (17μs)
      • creating: components.canonical (393μs)
      • composing: components.canonical (78μs)
      • creating: components.open-graph (142μs)
      • composing: components.open-graph (49μs)
      • creating: site.headers.header (216μs)
      • composing: site.headers.header (47μs)
      • Illuminate\Cache\Events\CacheHit (1.92ms)
      • creating: components.footer (77μs)
      • composing: components.footer (69μs)
      • Illuminate\Cache\Events\CacheHit (632μs)
      • Illuminate\Cache\Events\CacheMissed (366μs)
      • Illuminate\Database\Events\StatementPrepared (773μs)
      • Illuminate\Database\Events\QueryExecuted (1.16ms)
      • eloquent.retrieved: App\Models\SubjectCat (78μs)
      • Illuminate\Cache\Events\KeyWritten (294μs)
      • Illuminate\Cache\Events\CacheHit (254μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (244μs)
      • Illuminate\Cache\Events\CacheHit (237μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • creating: components.forms.contact-us (229μs)
      • composing: components.forms.contact-us (115μs)
      • creating: components.forms.get-started (126μs)
      • composing: components.forms.get-started (45μs)
      • creating: components.forms.free-tool-download (85μs)
      • composing: components.forms.free-tool-download (40μs)
      • creating: components.forms.claim-free-worksheet (80μs)
      • composing: components.forms.claim-free-worksheet (38μs)
      • creating: components.forms.tutor-subscription-waitlist (96μs)
      • composing: components.forms.tutor-subscription-waitlist (41μs)
      • creating: components.forms.tutor-subscription-join (82μs)
      • composing: components.forms.tutor-subscription-join (39μs)
      • creating: components.forms.tutor-support (84μs)
      • composing: components.forms.tutor-support (53μs)
      • 311 x Illuminate\Cache\Events\CacheHit (14.22%)
        69.16ms
        20 x Illuminate\Database\Events\StatementPrepared (10.37%)
        50.43ms
        20 x Illuminate\Database\Events\QueryExecuted (9.36%)
        45.52ms
        11 x Illuminate\Cache\Events\CacheMissed (2.13%)
        10.34ms
        11 x Illuminate\Cache\Events\KeyWritten (1.74%)
        8.46ms
        1 x Illuminate\Foundation\Events\LocaleUpdated (0.46%)
        2.26ms
        12 x eloquent.retrieved: App\Models\SubjectCat (0.21%)
        998μs
        1 x Illuminate\Routing\Events\Routing (0.15%)
        724μs
        1 x Illuminate\Database\Events\ConnectionEstablished (0.13%)
        644μs
        1 x Illuminate\Routing\Events\RouteMatched (0.11%)
        511μs
        1 x creating: site.layouts.app (0.09%)
        425μs
        1 x creating: homework.show (0.08%)
        400μs
        1 x creating: components.breadcrumbs (0.08%)
        395μs
        1 x creating: components.canonical (0.08%)
        393μs
        1 x eloquent.booting: App\Models\SubjectCat (0.08%)
        383μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.07%)
        317μs
        7 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (0.05%)
        256μs
        1 x creating: components.forms.contact-us (0.05%)
        229μs
        1 x creating: site.headers.header (0.04%)
        216μs
        7 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.04%)
        209μs
        2 x eloquent.retrieved: App\Models\Subject (0.04%)
        192μs
        1 x composing: components.breadcrumbs (0.04%)
        175μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (0.04%)
        172μs
        1 x composing: homework.show (0.03%)
        162μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (0.03%)
        146μs
        1 x creating: components.open-graph (0.03%)
        142μs
        1 x creating: components.forms.get-started (0.03%)
        126μs
        1 x composing: components.forms.contact-us (0.02%)
        115μs
        1 x eloquent.booting: App\Models\Subject (0.02%)
        107μs
        1 x creating: components.forms.tutor-subscription-waitlist (0.02%)
        96μs
        1 x creating: components.forms.free-tool-download (0.02%)
        85μs
        1 x creating: components.forms.tutor-support (0.02%)
        84μs
        1 x creating: components.forms.tutor-subscription-join (0.02%)
        82μs
        1 x creating: components.forms.claim-free-worksheet (0.02%)
        80μs
        1 x composing: components.canonical (0.02%)
        78μs
        1 x creating: components.footer (0.02%)
        77μs
        1 x composing: components.footer (0.01%)
        69μs
        1 x composing: components.forms.tutor-support (0.01%)
        53μs
        1 x composing: components.open-graph (0.01%)
        49μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.01%)
        47μs
        1 x composing: site.headers.header (0.01%)
        47μs
        1 x composing: components.forms.get-started (0.01%)
        45μs
        1 x composing: components.forms.tutor-subscription-waitlist (0.01%)
        41μs
        1 x eloquent.booted: App\Models\SubjectCat (0.01%)
        40μs
        1 x composing: components.forms.free-tool-download (0.01%)
        40μs
        1 x eloquent.booted: App\Models\Subject (0.01%)
        39μs
        1 x composing: components.forms.tutor-subscription-join (0.01%)
        39μs
        1 x composing: components.forms.claim-free-worksheet (0.01%)
        38μs
        1 x composing: site.layouts.app (0%)
        17μ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
      20 statements were executed, 5 of which were duplicates, 15 unique. Show only duplicated80.75ms
      • 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` = '34582' limit 1
        33.86mstwenty4_siteHomeworkLibraryController.php#97
        Bindings
        • 0: published
        • 1: 0
        • 2: 34582
        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.54mstwenty4_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 (34582)
        3.36mstwenty4_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
        1.21mstwenty4_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` <> 34582 and `subject` = 16 and `status` = 'published' and `price` > 0 order by RAND() limit 6
        22.31mstwenty4_siteHomeworkLibraryRepository.php#30
        Bindings
        • 0: 34582
        • 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.4mstwenty4_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` = 34582 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'question' order by `order` asc, `id` asc
        1.31mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 34582
        • 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` = 34582 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'teaser' order by `order` asc, `id` asc
        1.55mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 34582
        • 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` = 34582 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'solution' order by `order` asc, `id` asc
        1.13mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 34582
        • 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
        1.18mstwenty4_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
        1.26mstwenty4_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
        1mstwenty4_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
        870μstwenty4_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
        1.2mstwenty4_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.29mstwenty4_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.43mstwenty4_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.22mstwenty4_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
      • select * from `subject_cats` where `subject_cats`.`id` = 34 limit 1
        1.32mstwenty4_siteSubject.php#100
        Bindings
        • 0: 34
        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` = 31 limit 1
        1.11mstwenty4_siteSubject.php#100
        Bindings
        • 0: 31
        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` = 36 limit 1
        1.2mstwenty4_siteSubject.php#100
        Bindings
        • 0: 36
        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
        • 28. view::components.footer:170
      App\Models\SubjectCat
      12SubjectCat.php
      App\Models\HomeworkLibrary\HomeworkLibrary
      7HomeworkLibrary.php
      App\Models\HomeworkLibrary\HomeworkLibraryFile
      7HomeworkLibraryFile.php
      App\Models\Subject
      2Subject.php
          _token
          4XTV6t2gPpalmgJTh4FtipAKKF2uC4Zw4Pf7nW3h
          utm_source
          direct
          redirectUrl
          /college-homework-library/Computer-Science/C-Family-Programming/34582
          _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/34582
          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-680de830-5cf0f4af301a92417435dae8" ] "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.216.151.52" ] "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 => "Sun, 27 Apr 2025 08:17:53 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6Im40M1FUT1BuZWswMlRab1YybWJWcEE9PSIsInZhbHVlIjoibE5QWUNtS2RyaW9kMUtjR24vRUF4Z3duVVlaSk1vYW1kOG82VjBBQW9zeTU1MTBJUjhjUUR5ZGVvampsUWJoWHdtS3h4OG51ZnpIeDJPNXRFVmVuVUpuaTZzR2FVQnIrVXZMZU1hbmwzTFBJdmVBU0dxVkVMZDBsTWl4bTVqTDUiLCJtYWMiOiJiMzFhNGZjYjZmMWZlOWUyMjIzZWNlNDk5ZjM3NGUxNzVjODczZDY4MDk2YThjMWZhMTg3MmRkMjUyMmVhZGRkIiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 10:17:53 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; samesite=laxXSRF-TOKEN=eyJpdiI6Im40M1FUT1BuZWswMlRab1YybWJWcEE9PSIsInZhbHVlIjoibE5QWUNtS2RyaW9kMUtjR24vRUF4Z3duVVlaSk1vYW1kOG82VjBBQW9zeTU1MTBJUjhjUUR5ZGVvampsUWJoWHdtS3h4O" 1 => "24houranswers_session=eyJpdiI6ImpXT3VMMWhueDZkbitIeGpzb0ExbFE9PSIsInZhbHVlIjoiVFVaNEFXeU5YWFQ0Z2hORlpTY0RPL0dJYS9ySjBvcERUbVZkOTdseDgwTEhVY1crS2p6a0dENGNQemNqQkVBSk5lY24ySFRRMC9XdVRHUHFNS1ZSZzgzZTIzeFZlRElnMUl2TEFTcDFXOFNVdWtUYzBPUTJLZ1JPU3NJMXpZVlQiLCJtYWMiOiJhNmE3YjYzNDVmODVhZGUyZTIyNTc2MmU1Y2QxNGRjZGNhNmVkYTVhMmE1ZDRkNmNmNzFlMGQ5N2QyNjIwZWZhIiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 10:17:53 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; httponly; samesite=lax24houranswers_session=eyJpdiI6ImpXT3VMMWhueDZkbitIeGpzb0ExbFE9PSIsInZhbHVlIjoiVFVaNEFXeU5YWFQ0Z2hORlpTY0RPL0dJYS9ySjBvcERUbVZkOTdseDgwTEhVY1crS2p6a0dENGNQemNqQk" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6Im40M1FUT1BuZWswMlRab1YybWJWcEE9PSIsInZhbHVlIjoibE5QWUNtS2RyaW9kMUtjR24vRUF4Z3duVVlaSk1vYW1kOG82VjBBQW9zeTU1MTBJUjhjUUR5ZGVvampsUWJoWHdtS3h4OG51ZnpIeDJPNXRFVmVuVUpuaTZzR2FVQnIrVXZMZU1hbmwzTFBJdmVBU0dxVkVMZDBsTWl4bTVqTDUiLCJtYWMiOiJiMzFhNGZjYjZmMWZlOWUyMjIzZWNlNDk5ZjM3NGUxNzVjODczZDY4MDk2YThjMWZhMTg3MmRkMjUyMmVhZGRkIiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 10:17:53 GMT; domain=.24houranswers.com; path=/XSRF-TOKEN=eyJpdiI6Im40M1FUT1BuZWswMlRab1YybWJWcEE9PSIsInZhbHVlIjoibE5QWUNtS2RyaW9kMUtjR24vRUF4Z3duVVlaSk1vYW1kOG82VjBBQW9zeTU1MTBJUjhjUUR5ZGVvampsUWJoWHdtS3h4O" 1 => "24houranswers_session=eyJpdiI6ImpXT3VMMWhueDZkbitIeGpzb0ExbFE9PSIsInZhbHVlIjoiVFVaNEFXeU5YWFQ0Z2hORlpTY0RPL0dJYS9ySjBvcERUbVZkOTdseDgwTEhVY1crS2p6a0dENGNQemNqQkVBSk5lY24ySFRRMC9XdVRHUHFNS1ZSZzgzZTIzeFZlRElnMUl2TEFTcDFXOFNVdWtUYzBPUTJLZ1JPU3NJMXpZVlQiLCJtYWMiOiJhNmE3YjYzNDVmODVhZGUyZTIyNTc2MmU1Y2QxNGRjZGNhNmVkYTVhMmE1ZDRkNmNmNzFlMGQ5N2QyNjIwZWZhIiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 10:17:53 GMT; domain=.24houranswers.com; path=/; httponly24houranswers_session=eyJpdiI6ImpXT3VMMWhueDZkbitIeGpzb0ExbFE9PSIsInZhbHVlIjoiVFVaNEFXeU5YWFQ0Z2hORlpTY0RPL0dJYS9ySjBvcERUbVZkOTdseDgwTEhVY1crS2p6a0dENGNQemNqQk" ] ]
          session_attributes
          0 of 0
          array:6 [ "_token" => "4XTV6t2gPpalmgJTh4FtipAKKF2uC4Zw4Pf7nW3h" "utm_source" => "direct" "redirectUrl" => "/college-homework-library/Computer-Science/C-Family-Programming/34582" "_previous" => array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Science/C-Family-Programming/34582" ] "_flash" => array:2 [ "old" => [] "new" => [] ] "PHPDEBUGBAR_STACK_DATA" => [] ]