Question
For the second programming assignment you will be implementing a simple reliable transport protocol. The protocol will be unidirectional. Host A will be sending segments, and Host B will be receiving and acknowledging those segments, but Host B will not be sending any application data of its own. Host A is the sender, Host B is the receiver.
1.First, read section 3.4.1 – "Building a Reliable Data Transfer Protocol" of Kurose and Ross, Computer Networking: A Top-Down Approach. You will be implementing the Alternating Bit protocol, which they call rdt3.0.
2.Read the directions, descriptions, and suggestions in the attached assignment description from the textbook authors carefully.
3.Examine the files prog2.c and prog2.py carefully. All of your code will be added to one of these files to fill in the function stubs. That is how you will implement rdt3.0 as a part of this network simulation program.
4.You must implement the following functions in prog2.py or prog2.c, please read their descriptions in the assignment description carefully.
a.A_init
b.A_output
c.A_input
d.A_timerinterrupt
e.B_init
f.B_input
5.Do not implement either B_output or B_timerinterrupt.Those functions are only required for a bi-directional version of the protocol. Please ignore these two function stubs.
6.Your implementation should include some output to STDOUT describing events that occur and protocol actions that are taken during the simulation. For example, message arrival, packet arrival, timer interrupt, or data corruption detection, etc. should all be reported to STDOUT. In addition, describe the actions your functions take in response. For example, building a packet, sending a packet, retransmitting a message, restarting the timer, etc. Part of your submission will be a trace of your program—we need output for the trace.
7.Try running the simulation program first – to see what it looks like before you start adding your own code.
8.Submit your source code, which should consist of a single file—your modified prog2.py or prog2.c
9.Submit a README that briefly explains your strategy for implementing each of the functions required rdt3.0.
10.Submit a trace of your completed program running to the point where about 10 messages have been sent and correctly acknowledged. Use the following settings: loss probability of 0.1, corruption probability of 0.3, and a trace level of 2. You can use screenshots, or you can redirect the output to a file. You might want to annotate your trace to indicate where interesting things happened (e.g., recovery from packet loss or packet corruption).
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.

#define BIDIRECTIONAL 0    /* change to 1 if you're doing extra credit */
                           /* and write a routine called B_output */

/* a "msg" is the data unit passed from layer 5 (teachers code) to layer */
/* 4 (students' code). It contains the data (characters) to be delivered */
/* to layer 5 via the students transport level protocol entities.         */
struct msg {
char data[20];
};

/* a packet is the data unit passed from layer 4 (students code) to layer */
/* 3 (teachers code). Note the pre-defined packet structure, which all   */
/* students must follow. */
struct pkt {
   int seqnum;
   int acknum;
   int checksum;
   char payload[20];
    };

/********* STUDENTS WRITE THE NEXT SEVEN ROUTINES *********/

void starttimer(int AorB, float increment);
void stoptimer(int AorB);
void tolayer3(int AorB, struct pkt packet);
void tolayer5(int AorB, char datasent[20]);


#define SWAP(x) (x == 0 ? 1 : 0)

#define A_B_RTT 15

int A_seq;
int A_waiting_ack;
struct pkt A_last_packet;

int B_seq;
int B_waiting_ack;
struct pkt B_last_packet;

// The checksum of a packet is calculated
//Take all the bits in the packet and do the summation

int calculate_checksum(struct pkt *packet){
    int cs = 0;
    cs += packet->seqnum;
    cs += packet->acknum;
    for (int i = 0; i < 20; ++i)
       cs += packet->payload[i];
    return cs;
}

/* called from layer 5, passed the data to be sent to other side */
void A_output(message)
struct msg message;
{
    if (A_waiting_ack){
       /* If A is waiting for ACK from B, ignore new packet from layer 5 */
       printf("\tA_output: Waiting for ACK from B. Ignore new message: [%s]\n", message.data);
       return;
    }else{
       /* A is waiting for upper layer, send new msg comming from layer 5 to B */
       printf("\tA_output: Sending new message to B: [%s]\n", message.data);
      
       /* Create new packet with the msg and send it to layer 3 below*/
       struct pkt packet;
       packet.seqnum = A_seq;
       memmove(packet.payload, message.data, 20);
       packet.checksum = calculate_checksum(&packet);
      
       A_last_packet = packet;
       A_waiting_ack = 1;
      
       tolayer3(0, packet);
       starttimer(0, A_B_RTT);
    }
}

void B_output(message)
struct msg message;
{

}

/* called from layer 3, when a packet arrives for layer 4 */
void A_input(packet)
struct pkt packet;
{
    /* if the checksum of the packet is not matching, ignore the packet.[ACK]*/
    if (packet.checksum != calculate_checksum(&packet)){
       printf("\tA_input: Corrupted packet received and droped.\n");
       return;
    }

    /* if the sequence of the received ACK is not the expected sequence, drop it*/
    if (packet.acknum != A_seq){
       printf("\tA_input: Unexpected packet received and droped.\n");
       return;
    }
   
    /* valid ACK received for last packet */
    printf("\tA_input: ACK received for Last packet.\n");
    stoptimer(0);
   
    // change the sequence and change the state.
    A_seq = SWAP(A_seq);
    A_waiting_ack = 0;
}

/* This is called when A's timer goes off */
void A_timerinterrupt()
{
    /* if A is waiitng for ACK from B, resend the packet*/
    if (A_waiting_ack){
       printf("\tA_timerinterrupt: Resending last packet after timeout: [%s].\n", A_last_packet.payload);
       tolayer3(0, A_last_packet);
       starttimer(0, A_B_RTT);
    }   
}

/* The following routine will be called once (only) before any other */
/* entity A routines are called. You can use it to do any initialization */
void A_init()
{
    A_seq = 0;
    A_waiting_ack = 0;
}


/* Note that with simplex transfer from a-to-B, there is no B_output() */

/* called from layer 3, when a packet arrives for layer 4 at B*/
void B_input(packet)
struct pkt packet;
{
    // If the checksum of the packet is not matching, ignore the packet and send NAK
    if(packet.checksum != calculate_checksum(&packet)){
       printf("\tB_input: Corrupted packet received. Droped and sending NAK.\n");
      
       struct pkt nak_packet;
       nak_packet.acknum = SWAP(B_seq);
       nak_packet.checksum = calculate_checksum(&nak_packet);
       tolayer3(1, nak_packet);

       return
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
$50.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 Version348msRequest Duration45MBMemory UsageGET college-homework-library/{category}/{subject}/{id}Route
    • Booting (191ms)time
    • Application (157ms)time
    • 1 x Booting (54.77%)
      191ms
      1 x Application (45.23%)
      157ms
      • Illuminate\Routing\Events\Routing (928μs)
      • Illuminate\Routing\Events\RouteMatched (424μs)
      • Illuminate\Foundation\Events\LocaleUpdated (4.46ms)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (198μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (182μs)
      • Illuminate\Database\Events\ConnectionEstablished (823μs)
      • Illuminate\Database\Events\StatementPrepared (11.18ms)
      • Illuminate\Database\Events\QueryExecuted (1.29ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (285μs)
      • eloquent.booting: App\Models\Subject (236μs)
      • eloquent.booted: App\Models\Subject (239μs)
      • Illuminate\Database\Events\StatementPrepared (2.08ms)
      • Illuminate\Database\Events\QueryExecuted (1.61ms)
      • eloquent.retrieved: App\Models\Subject (121μs)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (127μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (41μs)
      • Illuminate\Database\Events\StatementPrepared (850μs)
      • Illuminate\Database\Events\QueryExecuted (1.04ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (154μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (20μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (6μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (6μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (5μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (5μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (5μs)
      • eloquent.booting: App\Models\SubjectCat (377μs)
      • eloquent.booted: App\Models\SubjectCat (43μs)
      • Illuminate\Database\Events\StatementPrepared (1ms)
      • Illuminate\Database\Events\QueryExecuted (1.06ms)
      • eloquent.retrieved: App\Models\SubjectCat (105μs)
      • Illuminate\Cache\Events\CacheHit (10.65ms)
      • Illuminate\Cache\Events\CacheMissed (967μs)
      • Illuminate\Database\Events\StatementPrepared (3.29ms)
      • Illuminate\Database\Events\QueryExecuted (19.58ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (96μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (171μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (13μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (7μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (6μs)
      • Illuminate\Database\Events\StatementPrepared (782μs)
      • Illuminate\Database\Events\QueryExecuted (1.27ms)
      • eloquent.retrieved: App\Models\Subject (100μs)
      • Illuminate\Cache\Events\KeyWritten (1.35ms)
      • Illuminate\Database\Events\StatementPrepared (1.87ms)
      • Illuminate\Database\Events\QueryExecuted (1.32ms)
      • Illuminate\Database\Events\StatementPrepared (809μs)
      • Illuminate\Database\Events\QueryExecuted (1.09ms)
      • Illuminate\Database\Events\StatementPrepared (703μs)
      • Illuminate\Database\Events\QueryExecuted (1.11ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (62μs)
      • Illuminate\Cache\Events\CacheHit (715μs)
      • creating: homework.show (305μs)
      • composing: homework.show (122μs)
      • creating: components.breadcrumbs (422μs)
      • composing: components.breadcrumbs (139μs)
      • Illuminate\Database\Events\StatementPrepared (1.25ms)
      • Illuminate\Database\Events\QueryExecuted (894μs)
      • eloquent.retrieved: App\Models\SubjectCat (82μs)
      • Illuminate\Cache\Events\CacheMissed (4.67ms)
      • Illuminate\Database\Events\StatementPrepared (916μs)
      • Illuminate\Database\Events\QueryExecuted (989μs)
      • eloquent.retrieved: App\Models\SubjectCat (85μs)
      • Illuminate\Cache\Events\KeyWritten (345μs)
      • Illuminate\Cache\Events\CacheHit (235μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheMissed (210μs)
      • Illuminate\Database\Events\StatementPrepared (1.06ms)
      • Illuminate\Database\Events\QueryExecuted (977μs)
      • eloquent.retrieved: App\Models\SubjectCat (91μs)
      • Illuminate\Cache\Events\KeyWritten (365μs)
      • Illuminate\Cache\Events\CacheHit (276μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheMissed (227μs)
      • Illuminate\Database\Events\StatementPrepared (791μs)
      • Illuminate\Database\Events\QueryExecuted (901μs)
      • eloquent.retrieved: App\Models\SubjectCat (72μs)
      • Illuminate\Cache\Events\KeyWritten (304μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (147μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (306μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (135μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheMissed (203μs)
      • Illuminate\Database\Events\StatementPrepared (637μs)
      • Illuminate\Database\Events\QueryExecuted (871μs)
      • eloquent.retrieved: App\Models\SubjectCat (77μs)
      • Illuminate\Cache\Events\KeyWritten (303μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (236μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (141μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (258μs)
      • Illuminate\Cache\Events\CacheHit (238μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (143μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (136μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (130μs)
      • Illuminate\Cache\Events\CacheHit (359μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheMissed (208μs)
      • Illuminate\Database\Events\StatementPrepared (680μs)
      • Illuminate\Database\Events\QueryExecuted (894μs)
      • eloquent.retrieved: App\Models\SubjectCat (78μs)
      • Illuminate\Cache\Events\KeyWritten (298μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (339μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheMissed (200μs)
      • Illuminate\Database\Events\StatementPrepared (594μs)
      • Illuminate\Database\Events\QueryExecuted (801μs)
      • eloquent.retrieved: App\Models\SubjectCat (81μs)
      • Illuminate\Cache\Events\KeyWritten (308μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (130μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (780μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (138μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (146μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheMissed (201μs)
      • Illuminate\Database\Events\StatementPrepared (822μs)
      • Illuminate\Database\Events\QueryExecuted (1.04ms)
      • eloquent.retrieved: App\Models\SubjectCat (80μs)
      • Illuminate\Cache\Events\KeyWritten (295μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (147μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (308μs)
      • Illuminate\Cache\Events\CacheHit (145μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (147μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (93μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheMissed (208μs)
      • Illuminate\Database\Events\StatementPrepared (903μs)
      • Illuminate\Database\Events\QueryExecuted (914μs)
      • eloquent.retrieved: App\Models\SubjectCat (79μs)
      • Illuminate\Cache\Events\KeyWritten (330μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (384μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (697μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (95μs)
      • Illuminate\Cache\Events\CacheHit (142μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (147μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (145μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (95μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (95μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (135μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (136μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (95μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (95μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (94μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (95μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (94μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (93μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (294μs)
      • Illuminate\Cache\Events\CacheMissed (270μs)
      • Illuminate\Database\Events\StatementPrepared (779μs)
      • Illuminate\Database\Events\QueryExecuted (1.16ms)
      • eloquent.retrieved: App\Models\SubjectCat (80μs)
      • Illuminate\Cache\Events\KeyWritten (308μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (144μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • creating: site.layouts.app (367μs)
      • composing: site.layouts.app (17μs)
      • creating: components.canonical (414μs)
      • composing: components.canonical (100μs)
      • creating: components.open-graph (164μs)
      • composing: components.open-graph (53μs)
      • creating: site.headers.header (218μs)
      • composing: site.headers.header (48μs)
      • Illuminate\Cache\Events\CacheHit (1.93ms)
      • creating: components.footer (79μs)
      • composing: components.footer (74μs)
      • Illuminate\Cache\Events\CacheHit (671μs)
      • Illuminate\Cache\Events\CacheMissed (281μs)
      • Illuminate\Database\Events\StatementPrepared (783μs)
      • Illuminate\Database\Events\QueryExecuted (1.14ms)
      • eloquent.retrieved: App\Models\SubjectCat (83μs)
      • Illuminate\Cache\Events\KeyWritten (317μs)
      • Illuminate\Cache\Events\CacheHit (353μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (144μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (266μs)
      • Illuminate\Cache\Events\CacheHit (252μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (315μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • creating: components.forms.contact-us (353μs)
      • composing: components.forms.contact-us (133μs)
      • creating: components.forms.get-started (149μs)
      • composing: components.forms.get-started (49μs)
      • creating: components.forms.free-tool-download (86μs)
      • composing: components.forms.free-tool-download (41μs)
      • creating: components.forms.claim-free-worksheet (80μs)
      • composing: components.forms.claim-free-worksheet (39μs)
      • creating: components.forms.tutor-subscription-waitlist (96μs)
      • composing: components.forms.tutor-subscription-waitlist (40μs)
      • creating: components.forms.tutor-subscription-join (79μs)
      • composing: components.forms.tutor-subscription-join (38μs)
      • creating: components.forms.tutor-support (77μs)
      • composing: components.forms.tutor-support (39μs)
      • 311 x Illuminate\Cache\Events\CacheHit (15.92%)
        55.37ms
        20 x Illuminate\Database\Events\QueryExecuted (11.48%)
        39.94ms
        20 x Illuminate\Database\Events\StatementPrepared (9.14%)
        31.79ms
        11 x Illuminate\Cache\Events\CacheMissed (2.2%)
        7.64ms
        11 x Illuminate\Cache\Events\KeyWritten (1.3%)
        4.52ms
        1 x Illuminate\Foundation\Events\LocaleUpdated (1.28%)
        4.46ms
        12 x eloquent.retrieved: App\Models\SubjectCat (0.29%)
        993μs
        1 x Illuminate\Routing\Events\Routing (0.27%)
        928μs
        1 x Illuminate\Database\Events\ConnectionEstablished (0.24%)
        823μs
        7 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (0.17%)
        586μs
        1 x Illuminate\Routing\Events\RouteMatched (0.12%)
        424μs
        1 x creating: components.breadcrumbs (0.12%)
        422μs
        1 x creating: components.canonical (0.12%)
        414μs
        1 x eloquent.booting: App\Models\SubjectCat (0.11%)
        377μs
        1 x creating: site.layouts.app (0.11%)
        367μs
        1 x creating: components.forms.contact-us (0.1%)
        353μs
        1 x creating: homework.show (0.09%)
        305μs
        9 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.08%)
        272μs
        1 x eloquent.booted: App\Models\Subject (0.07%)
        239μs
        1 x eloquent.booting: App\Models\Subject (0.07%)
        236μs
        2 x eloquent.retrieved: App\Models\Subject (0.06%)
        221μs
        1 x creating: site.headers.header (0.06%)
        218μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (0.06%)
        198μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (0.05%)
        182μs
        1 x creating: components.open-graph (0.05%)
        164μs
        1 x creating: components.forms.get-started (0.04%)
        149μs
        1 x composing: components.breadcrumbs (0.04%)
        139μs
        1 x composing: components.forms.contact-us (0.04%)
        133μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.04%)
        127μs
        1 x composing: homework.show (0.04%)
        122μs
        1 x composing: components.canonical (0.03%)
        100μs
        1 x creating: components.forms.tutor-subscription-waitlist (0.03%)
        96μs
        1 x creating: components.forms.free-tool-download (0.02%)
        86μs
        1 x creating: components.forms.claim-free-worksheet (0.02%)
        80μs
        1 x creating: components.forms.tutor-subscription-join (0.02%)
        79μs
        1 x creating: components.footer (0.02%)
        79μs
        1 x creating: components.forms.tutor-support (0.02%)
        77μs
        1 x composing: components.footer (0.02%)
        74μs
        1 x composing: components.open-graph (0.02%)
        53μs
        1 x composing: components.forms.get-started (0.01%)
        49μs
        1 x composing: site.headers.header (0.01%)
        48μs
        1 x eloquent.booted: App\Models\SubjectCat (0.01%)
        43μs
        1 x composing: components.forms.free-tool-download (0.01%)
        41μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.01%)
        41μs
        1 x composing: components.forms.tutor-subscription-waitlist (0.01%)
        40μs
        1 x composing: components.forms.claim-free-worksheet (0.01%)
        39μs
        1 x composing: components.forms.tutor-support (0.01%)
        39μs
        1 x composing: components.forms.tutor-subscription-join (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 duplicated56.7ms
      • 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` = '50912' limit 1
        11.68mstwenty4_siteHomeworkLibraryController.php#97
        Bindings
        • 0: published
        • 1: 0
        • 2: 50912
        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.62mstwenty4_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 (50912)
        1.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.49mstwenty4_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` <> 50912 and `subject` = 16 and `status` = 'published' and `price` > 0 order by RAND() limit 6
        22mstwenty4_siteHomeworkLibraryRepository.php#30
        Bindings
        • 0: 50912
        • 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.43mstwenty4_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` = 50912 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'question' order by `order` asc, `id` asc
        1.4mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 50912
        • 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` = 50912 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'teaser' order by `order` asc, `id` asc
        1.26mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 50912
        • 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` = 50912 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'solution' order by `order` asc, `id` asc
        1.22mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 50912
        • 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.14mstwenty4_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.3mstwenty4_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
        1.46mstwenty4_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
        1.16mstwenty4_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
        980μstwenty4_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.02mstwenty4_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
        870μstwenty4_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.31mstwenty4_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.28mstwenty4_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.38mstwenty4_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.34mstwenty4_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\HomeworkLibraryFile
      9HomeworkLibraryFile.php
      App\Models\HomeworkLibrary\HomeworkLibrary
      7HomeworkLibrary.php
      App\Models\Subject
      2Subject.php
          _token
          AJZxcrMXnb4FIQPBXMZBbkFI8RJVgKMQji9Dg6yC
          utm_source
          direct
          redirectUrl
          /college-homework-library/Computer-Science/C-Family-Programming/50912
          _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/50912
          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-680dd860-306db13f373139967f10c6d6" ] "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 => "3.139.66.158" ] "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 07:10:24 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IkIzT1BaaXJUd2pwQmd3aWVKZGlUclE9PSIsInZhbHVlIjoiOEJOajdZSmEwdXlnMm92TTlMMEpUTW5CMTFMZEhvYWpocWowbWVqaU51ZGpKOSt0cVQ0b1JRTERsZ202MTJWNndjSCtFZG5FS2tHQnA5Z2ZrRnkrazJGcU1WL0NUQ2hDZDhnVGNyOForaGVSNWs4bkpXUXpMQWZSTGtFSVppbkgiLCJtYWMiOiI0MDhhYjU1NjY1NTBlOWMyOTBhNDk0MDQ2MTNlNjQzYjNkZDY2OGJhOGVlMjY5NTU5YzY2Y2Q4Njk5MGJkMWE1IiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 09:10:24 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; samesite=laxXSRF-TOKEN=eyJpdiI6IkIzT1BaaXJUd2pwQmd3aWVKZGlUclE9PSIsInZhbHVlIjoiOEJOajdZSmEwdXlnMm92TTlMMEpUTW5CMTFMZEhvYWpocWowbWVqaU51ZGpKOSt0cVQ0b1JRTERsZ202MTJWNndjSCtFZ" 1 => "24houranswers_session=eyJpdiI6Imlhb1hWd1VITU10alZMRVl2UU5xbnc9PSIsInZhbHVlIjoiU1hxTi9qekFDS2paWEdxRTQxcXpvbDZGRFV5ZVg5Y0QrVk9GSFFjN216SHpYUlNFMWdqaU5VdXoyZHdtRUVLS3BFYUpKRWtLaDdLKzg1MUhqeDNEbUczbGFyc1JsM2dkUllNREpCZjhxVHFESjUxTU4vWHpZaU1seStCWGJIb20iLCJtYWMiOiI1ZTQ0MWRmZGQ0NzUyMjFmMjc3MGRhNzJlMjlmMjMwMzI0MGE1N2UwOTFmNmVhYjQwNjg1MmYzZTkwMzZhMjQwIiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 09:10:24 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; httponly; samesite=lax24houranswers_session=eyJpdiI6Imlhb1hWd1VITU10alZMRVl2UU5xbnc9PSIsInZhbHVlIjoiU1hxTi9qekFDS2paWEdxRTQxcXpvbDZGRFV5ZVg5Y0QrVk9GSFFjN216SHpYUlNFMWdqaU5VdXoyZHdtRU" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IkIzT1BaaXJUd2pwQmd3aWVKZGlUclE9PSIsInZhbHVlIjoiOEJOajdZSmEwdXlnMm92TTlMMEpUTW5CMTFMZEhvYWpocWowbWVqaU51ZGpKOSt0cVQ0b1JRTERsZ202MTJWNndjSCtFZG5FS2tHQnA5Z2ZrRnkrazJGcU1WL0NUQ2hDZDhnVGNyOForaGVSNWs4bkpXUXpMQWZSTGtFSVppbkgiLCJtYWMiOiI0MDhhYjU1NjY1NTBlOWMyOTBhNDk0MDQ2MTNlNjQzYjNkZDY2OGJhOGVlMjY5NTU5YzY2Y2Q4Njk5MGJkMWE1IiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 09:10:24 GMT; domain=.24houranswers.com; path=/XSRF-TOKEN=eyJpdiI6IkIzT1BaaXJUd2pwQmd3aWVKZGlUclE9PSIsInZhbHVlIjoiOEJOajdZSmEwdXlnMm92TTlMMEpUTW5CMTFMZEhvYWpocWowbWVqaU51ZGpKOSt0cVQ0b1JRTERsZ202MTJWNndjSCtFZ" 1 => "24houranswers_session=eyJpdiI6Imlhb1hWd1VITU10alZMRVl2UU5xbnc9PSIsInZhbHVlIjoiU1hxTi9qekFDS2paWEdxRTQxcXpvbDZGRFV5ZVg5Y0QrVk9GSFFjN216SHpYUlNFMWdqaU5VdXoyZHdtRUVLS3BFYUpKRWtLaDdLKzg1MUhqeDNEbUczbGFyc1JsM2dkUllNREpCZjhxVHFESjUxTU4vWHpZaU1seStCWGJIb20iLCJtYWMiOiI1ZTQ0MWRmZGQ0NzUyMjFmMjc3MGRhNzJlMjlmMjMwMzI0MGE1N2UwOTFmNmVhYjQwNjg1MmYzZTkwMzZhMjQwIiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 09:10:24 GMT; domain=.24houranswers.com; path=/; httponly24houranswers_session=eyJpdiI6Imlhb1hWd1VITU10alZMRVl2UU5xbnc9PSIsInZhbHVlIjoiU1hxTi9qekFDS2paWEdxRTQxcXpvbDZGRFV5ZVg5Y0QrVk9GSFFjN216SHpYUlNFMWdqaU5VdXoyZHdtRU" ] ]
          session_attributes
          0 of 0
          array:6 [ "_token" => "AJZxcrMXnb4FIQPBXMZBbkFI8RJVgKMQji9Dg6yC" "utm_source" => "direct" "redirectUrl" => "/college-homework-library/Computer-Science/C-Family-Programming/50912" "_previous" => array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Science/C-Family-Programming/50912" ] "_flash" => array:2 [ "old" => [] "new" => [] ] "PHPDEBUGBAR_STACK_DATA" => [] ]