Question
Introduction
Hack session activities are small weekly programming assignments intended to get you started on full programming assignments. Collaboration is allowed and, in fact,highly encouraged. You may start on the activity before your hack session, but during the hack session you must either be actively working on this activity orhelping others work on the activity. You are graded using the same rubric as assignments so documentation, style,design and correctness are all important.

Exercises
To get more practice working with files, you will write several functions that involve operations on files. In particular, implement the following functions.
1. Write a function that, given a file path/name as a string opens the file and returnsits entire contents as a single string. Any endline characters should be preserved.
char *getFileContents(const char *filePath);
2. Write a function that, given a file path/name as a string opens the file and returns the contents of the file as an array of strings. Each element in the array should correspond to a line in the file. Any end line character should be chomped out and not included.
char **getFileLines(const char *filePath, int *numLines);
Protein Translation
DNA is a molecule that encode genetic information. A DNA sequence is a string of nucleotides represented as letters A, T, C, and G (representing the nucleobases adenine ,thymine, cytosine, and guanine respectively). Protein sequencing in an organism consists of a two step process. First the DNA is translated into RNA by replacing each thymine nucleotide with uracil (U). Then, the RNA sequence is translated into a protein (a sequence of amino acids) according to the following rules. The RNA sequence is processed 3 bases at a time called acodon. Each codon is translatedinto a single amino acid according to known encoding rules. There are 20 such aminoacids, each represented by a single letter in
(A, C, D, E, F, G, H, I, K, L, M, N, P, Q, R, S, T, V, W, Y)
Because there are 43= 64 possible codons but only 20 amino acids, some codons translate to the same amino acid.The rules for translating trigrams are complex, but we’ve simplified the process by providing a utility function,rnaToProteinwhich takes an RNA codon (as a string) and returns its protein (as a singlechar). If you provide it an invalid sequence, it will return\0the null character.In addition, the trigrams UAA, UAG, and UGA are special markers that indicate a (premature) end to the protein sequencing (there may be additional nucleotides left in the RNA sequence, but they are ignored and the translation ends). The function we’ve provided will return a lower-case character for any of these three trigrams.
As an example, suppose we start with the DNA sequence AAAT T CCGCGT ACCC;
it would be encoded into RNA as AAAUUCCGCGUACCC; and into an amino acid sequence KF RV P. You will write a program that takes two command line arguments. The first is an inputfile containing a DNA sequence and the second is the name of the output file in whichyou’ll place the translated protein sequence. As an example, your program should be executable from the command line as:~>./a.out dnaInputFile.txt protein.txt
The input file may contain irrelevant white space characters to avoid very long lines. You will need to ignore any white space characters when you process the data. Place all your code in a file named proteinTranslator.c.

Instructions
•For the exercises, place all your function prototypes into a file namedfile_utils.hand and their definitions in a file namedfile_utils.c. In addition, you’ll wantto create a main test driver program that demonstrates at least 3 cases per functionto verify their output. You need not hand it in, however.
•Code for themrnaToProteinmfunction as well as a demonstration on how to use it has been provided. However, you only need to handinproteinTranslator.c(and anything else thatyou may find helpful).
•You are encouraged to collaborate any number of students before, during, and afteryour scheduled hack session.
•You may (in fact are encouraged) to define any additional “helper” functions that may help you.
•Include the name(s) of everyone who worked together on this activity in your sourcefile’s header.
•Turn in all of your files via webhandin, making sure that it runs and executes correctly in the webgrader. Each individual student will need to hand in their own copy and will receive their own individual grade.
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"file_utils.h"

char *getFileContents(const char *filePath){
ifstream inFile;
inFile.open(filePath,ios::in);
if(!inFile.is_open()){
cout<<"error can not open words.txt file\n";
system("pause");
exit(1);
}
inFile.seekg(0,ios::end);
int size = inFile.tellg();
string content = "";
char temp;
int index = 0 , i ;
inFile.seekg(0,ios::beg);
string str;
while(!inFile.eof()){
inFile.get(temp);
if(inFile.fail()) break;
content += temp;

}
char const *data = content.data();
string ddd = data;
char *d = new char[strlen(data)];
for( i = 0 ; i < strlen(data) ; i++){
strcpy((d+i),(data+i));
}
return d ;
}
char **getFileLines(const char *filePath, int *numLines)
{
ifstream inFile;
inFile.open(filePath,ios::in);
if(!inFile.is_open
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
$10.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 Version445msRequest Duration45MBMemory UsageGET college-homework-library/{category}/{subject}/{id}Route
    • Booting (267ms)time
    • Application (178ms)time
    • 1 x Booting (60%)
      267ms
      1 x Application (40%)
      178ms
      • Illuminate\Routing\Events\Routing (581μs)
      • Illuminate\Routing\Events\RouteMatched (257μs)
      • Illuminate\Foundation\Events\LocaleUpdated (1.9ms)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (150μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (115μs)
      • Illuminate\Database\Events\ConnectionEstablished (674μs)
      • Illuminate\Database\Events\StatementPrepared (8.76ms)
      • Illuminate\Database\Events\QueryExecuted (1.59ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (131μs)
      • eloquent.booting: App\Models\Subject (144μs)
      • eloquent.booted: App\Models\Subject (60μs)
      • Illuminate\Database\Events\StatementPrepared (2.17ms)
      • Illuminate\Database\Events\QueryExecuted (1.34ms)
      • eloquent.retrieved: App\Models\Subject (119μs)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (121μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (39μs)
      • Illuminate\Database\Events\StatementPrepared (672μs)
      • Illuminate\Database\Events\QueryExecuted (1.6ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (97μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (17μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (13μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (12μs)
      • eloquent.booting: App\Models\SubjectCat (635μs)
      • eloquent.booted: App\Models\SubjectCat (61μs)
      • Illuminate\Database\Events\StatementPrepared (787μs)
      • Illuminate\Database\Events\QueryExecuted (956μs)
      • eloquent.retrieved: App\Models\SubjectCat (87μs)
      • Illuminate\Cache\Events\CacheHit (14.93ms)
      • Illuminate\Cache\Events\CacheMissed (261μs)
      • Illuminate\Database\Events\StatementPrepared (1.07ms)
      • Illuminate\Database\Events\QueryExecuted (26.57ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (77μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (15μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (7μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (7μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (5μs)
      • Illuminate\Database\Events\StatementPrepared (616μs)
      • Illuminate\Database\Events\QueryExecuted (1.19ms)
      • eloquent.retrieved: App\Models\Subject (91μs)
      • Illuminate\Cache\Events\KeyWritten (1.01ms)
      • Illuminate\Database\Events\StatementPrepared (1.47ms)
      • Illuminate\Database\Events\QueryExecuted (998μs)
      • Illuminate\Database\Events\StatementPrepared (631μs)
      • Illuminate\Database\Events\QueryExecuted (942μs)
      • Illuminate\Database\Events\StatementPrepared (815μs)
      • Illuminate\Database\Events\QueryExecuted (868μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (44μs)
      • Illuminate\Cache\Events\CacheHit (415μs)
      • creating: homework.show (209μs)
      • composing: homework.show (82μs)
      • creating: components.breadcrumbs (214μs)
      • composing: components.breadcrumbs (87μs)
      • Illuminate\Database\Events\StatementPrepared (1.23ms)
      • Illuminate\Database\Events\QueryExecuted (900μs)
      • eloquent.retrieved: App\Models\SubjectCat (76μs)
      • Illuminate\Cache\Events\CacheHit (3.4ms)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (138μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheMissed (149μs)
      • Illuminate\Database\Events\StatementPrepared (600μs)
      • Illuminate\Database\Events\QueryExecuted (1.32ms)
      • eloquent.retrieved: App\Models\SubjectCat (88μs)
      • Illuminate\Cache\Events\KeyWritten (710μs)
      • Illuminate\Cache\Events\CacheHit (241μs)
      • Illuminate\Cache\Events\CacheHit (229μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheMissed (163μs)
      • Illuminate\Database\Events\StatementPrepared (652μs)
      • Illuminate\Database\Events\QueryExecuted (883μs)
      • eloquent.retrieved: App\Models\SubjectCat (83μs)
      • Illuminate\Cache\Events\KeyWritten (349μs)
      • Illuminate\Cache\Events\CacheHit (1.01ms)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (252μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (396μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheMissed (2.03ms)
      • Illuminate\Database\Events\StatementPrepared (752μs)
      • Illuminate\Database\Events\QueryExecuted (1.17ms)
      • eloquent.retrieved: App\Models\SubjectCat (102μs)
      • Illuminate\Cache\Events\KeyWritten (373μs)
      • Illuminate\Cache\Events\CacheHit (238μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (251μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (242μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheMissed (223μs)
      • Illuminate\Database\Events\StatementPrepared (754μs)
      • Illuminate\Database\Events\QueryExecuted (929μs)
      • eloquent.retrieved: App\Models\SubjectCat (93μs)
      • Illuminate\Cache\Events\KeyWritten (306μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (222μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (145μs)
      • Illuminate\Cache\Events\CacheHit (263μs)
      • Illuminate\Cache\Events\CacheMissed (379μs)
      • Illuminate\Database\Events\StatementPrepared (662μs)
      • Illuminate\Database\Events\QueryExecuted (869μs)
      • eloquent.retrieved: App\Models\SubjectCat (88μs)
      • Illuminate\Cache\Events\KeyWritten (316μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (216μs)
      • Illuminate\Cache\Events\CacheHit (239μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (316μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (1.09ms)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (262μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (143μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (223μs)
      • Illuminate\Cache\Events\CacheHit (147μs)
      • Illuminate\Cache\Events\CacheMissed (142μs)
      • Illuminate\Database\Events\StatementPrepared (877μs)
      • Illuminate\Database\Events\QueryExecuted (920μs)
      • eloquent.retrieved: App\Models\SubjectCat (86μs)
      • Illuminate\Cache\Events\KeyWritten (286μs)
      • Illuminate\Cache\Events\CacheHit (264μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (362μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (244μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (211μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (238μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheMissed (149μs)
      • Illuminate\Database\Events\StatementPrepared (672μs)
      • Illuminate\Database\Events\QueryExecuted (1.13ms)
      • eloquent.retrieved: App\Models\SubjectCat (84μs)
      • Illuminate\Cache\Events\KeyWritten (990μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (229μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (237μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (302μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (971μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (216μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (225μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (233μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (172μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (142μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (141μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (149μs)
      • Illuminate\Cache\Events\CacheMissed (141μs)
      • Illuminate\Database\Events\StatementPrepared (832μs)
      • Illuminate\Database\Events\QueryExecuted (1.09ms)
      • eloquent.retrieved: App\Models\SubjectCat (92μs)
      • Illuminate\Cache\Events\KeyWritten (294μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • creating: site.layouts.app (477μs)
      • composing: site.layouts.app (21μs)
      • creating: components.canonical (353μs)
      • composing: components.canonical (81μs)
      • creating: components.open-graph (168μs)
      • composing: components.open-graph (78μs)
      • creating: site.headers.header (246μs)
      • composing: site.headers.header (80μs)
      • Illuminate\Cache\Events\CacheHit (1.84ms)
      • creating: components.footer (85μs)
      • composing: components.footer (95μs)
      • Illuminate\Cache\Events\CacheHit (838μs)
      • Illuminate\Cache\Events\CacheMissed (264μs)
      • Illuminate\Database\Events\StatementPrepared (703μs)
      • Illuminate\Database\Events\QueryExecuted (911μs)
      • eloquent.retrieved: App\Models\SubjectCat (70μs)
      • Illuminate\Cache\Events\KeyWritten (1.77ms)
      • Illuminate\Cache\Events\CacheHit (316μs)
      • Illuminate\Cache\Events\CacheHit (231μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (301μs)
      • Illuminate\Cache\Events\CacheHit (343μs)
      • Illuminate\Cache\Events\CacheHit (211μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (222μs)
      • Illuminate\Cache\Events\CacheHit (228μs)
      • Illuminate\Cache\Events\CacheHit (296μs)
      • creating: components.forms.contact-us (239μs)
      • composing: components.forms.contact-us (167μs)
      • creating: components.forms.get-started (120μs)
      • composing: components.forms.get-started (72μs)
      • creating: components.forms.free-tool-download (132μs)
      • composing: components.forms.free-tool-download (76μs)
      • creating: components.forms.claim-free-worksheet (108μs)
      • composing: components.forms.claim-free-worksheet (68μs)
      • creating: components.forms.tutor-subscription-waitlist (103μs)
      • composing: components.forms.tutor-subscription-waitlist (67μs)
      • creating: components.forms.tutor-subscription-join (101μs)
      • composing: components.forms.tutor-subscription-join (80μs)
      • creating: components.forms.tutor-support (108μs)
      • composing: components.forms.tutor-support (71μs)
      • 312 x Illuminate\Cache\Events\CacheHit (18.36%)
        81.71ms
        19 x Illuminate\Database\Events\QueryExecuted (10.37%)
        46.16ms
        19 x Illuminate\Database\Events\StatementPrepared (5.56%)
        24.73ms
        10 x Illuminate\Cache\Events\KeyWritten (1.44%)
        6.41ms
        10 x Illuminate\Cache\Events\CacheMissed (0.88%)
        3.90ms
        1 x Illuminate\Foundation\Events\LocaleUpdated (0.43%)
        1.90ms
        11 x eloquent.retrieved: App\Models\SubjectCat (0.21%)
        949μs
        1 x Illuminate\Database\Events\ConnectionEstablished (0.15%)
        674μs
        1 x eloquent.booting: App\Models\SubjectCat (0.14%)
        635μs
        1 x Illuminate\Routing\Events\Routing (0.13%)
        581μs
        1 x creating: site.layouts.app (0.11%)
        477μs
        1 x creating: components.canonical (0.08%)
        353μs
        1 x Illuminate\Routing\Events\RouteMatched (0.06%)
        257μs
        7 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (0.06%)
        250μs
        1 x creating: site.headers.header (0.06%)
        246μs
        1 x creating: components.forms.contact-us (0.05%)
        239μs
        1 x creating: components.breadcrumbs (0.05%)
        214μs
        2 x eloquent.retrieved: App\Models\Subject (0.05%)
        210μs
        1 x creating: homework.show (0.05%)
        209μs
        5 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.04%)
        183μs
        1 x creating: components.open-graph (0.04%)
        168μs
        1 x composing: components.forms.contact-us (0.04%)
        167μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (0.03%)
        150μs
        1 x eloquent.booting: App\Models\Subject (0.03%)
        144μs
        1 x creating: components.forms.free-tool-download (0.03%)
        132μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.03%)
        121μs
        1 x creating: components.forms.get-started (0.03%)
        120μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (0.03%)
        115μs
        1 x creating: components.forms.claim-free-worksheet (0.02%)
        108μs
        1 x creating: components.forms.tutor-support (0.02%)
        108μs
        1 x creating: components.forms.tutor-subscription-waitlist (0.02%)
        103μs
        1 x creating: components.forms.tutor-subscription-join (0.02%)
        101μs
        1 x composing: components.footer (0.02%)
        95μs
        1 x composing: components.breadcrumbs (0.02%)
        87μs
        1 x creating: components.footer (0.02%)
        85μs
        1 x composing: homework.show (0.02%)
        82μs
        1 x composing: components.canonical (0.02%)
        81μs
        1 x composing: site.headers.header (0.02%)
        80μs
        1 x composing: components.forms.tutor-subscription-join (0.02%)
        80μs
        1 x composing: components.open-graph (0.02%)
        78μs
        1 x composing: components.forms.free-tool-download (0.02%)
        76μs
        1 x composing: components.forms.get-started (0.02%)
        72μs
        1 x composing: components.forms.tutor-support (0.02%)
        71μs
        1 x composing: components.forms.claim-free-worksheet (0.02%)
        68μs
        1 x composing: components.forms.tutor-subscription-waitlist (0.02%)
        67μs
        1 x eloquent.booted: App\Models\SubjectCat (0.01%)
        61μs
        1 x eloquent.booted: App\Models\Subject (0.01%)
        60μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.01%)
        39μs
        1 x composing: site.layouts.app (0%)
        21μ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
      19 statements were executed, 5 of which were duplicates, 14 unique. Show only duplicated56.41ms
      • 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` = '50110' limit 1
        9.54mstwenty4_siteHomeworkLibraryController.php#97
        Bindings
        • 0: published
        • 1: 0
        • 2: 50110
        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.65mstwenty4_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 (50110)
        1.39mstwenty4_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.09mstwenty4_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` <> 50110 and `subject` = 16 and `status` = 'published' and `price` > 0 order by RAND() limit 6
        26.89mstwenty4_siteHomeworkLibraryRepository.php#30
        Bindings
        • 0: 50110
        • 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.24mstwenty4_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` = 50110 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'question' order by `order` asc, `id` asc
        1.07mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 50110
        • 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` = 50110 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'teaser' order by `order` asc, `id` asc
        1.03mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 50110
        • 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` = 50110 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'solution' order by `order` asc, `id` asc
        1.08mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 50110
        • 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.05mstwenty4_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` = 3 limit 1
        1.28mstwenty4_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.04mstwenty4_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.08mstwenty4_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.08mstwenty4_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
        990μ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.18mstwenty4_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.3mstwenty4_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.3mstwenty4_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.13mstwenty4_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
      11SubjectCat.php
      App\Models\HomeworkLibrary\HomeworkLibrary
      7HomeworkLibrary.php
      App\Models\HomeworkLibrary\HomeworkLibraryFile
      5HomeworkLibraryFile.php
      App\Models\Subject
      2Subject.php
          _token
          E7sxsJQoPEoNAodx4RE7Gaf2rbe7SRn0Q0BA1wWN
          utm_source
          direct
          redirectUrl
          /college-homework-library/Computer-Science/C-Family-Programming/50110
          _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/50110
          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-680e046b-0c38cc803ce389275e52484e" ] "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.116.61.169" ] "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 10:18:19 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6ImorNnoyN2x5M2xaWkhNdVExVmRhOUE9PSIsInZhbHVlIjoic0dqZWlOeGpYTHpPUnpTTXovekJndzBUSG81dU9EZkorb3VPZlpLM1dmSjQrWFlzN0UvWEh3b2JCS1ZNOU9kYzRZaG5YSlNxckljY1hscHEzdWxHZVdqdXRHUlJmM1VpVjFKd2FEVHg1dmVwQkJnWGI0MDIvYnZoaFUzWCtoeUwiLCJtYWMiOiI3ZDI4OTM5OTA4OGZjYzBmMDM0NTdjMzc2ODBiYjhhN2UxZDhhYTM0MWJhMWFiMjljNTdmMzA5NTJjZWIwNzg3IiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 12:18:19 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; samesite=laxXSRF-TOKEN=eyJpdiI6ImorNnoyN2x5M2xaWkhNdVExVmRhOUE9PSIsInZhbHVlIjoic0dqZWlOeGpYTHpPUnpTTXovekJndzBUSG81dU9EZkorb3VPZlpLM1dmSjQrWFlzN0UvWEh3b2JCS1ZNOU9kYzRZaG5YS" 1 => "24houranswers_session=eyJpdiI6IlpiTW9FSkdxUHZDVmRpRW4xUisrUmc9PSIsInZhbHVlIjoiSVdPYmN3TDFSbzZ6VjczQnI1Mk0rVU55R24zTjJRT1F6UzQ1U0d4UVUyS3QxU1pOcnhua1BlTEZNUnBmR01Ud2tvZUdKQnkwR2RrZWxIZy9UVnVGTUVHRnRFaEE0aDZnaFpDQU5kVjgzb2t1K1RSYU1ManB0Wk03WGdaRFpOQUIiLCJtYWMiOiI3OWY2MzIxNDFjN2ExMDI1ODBiZWRiMTdkMmFjZjBhZjgyOWI5ODZkODg0MTY0NDMxYjMxNWFlNTcyYmY3NzVmIiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 12:18:19 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; httponly; samesite=lax24houranswers_session=eyJpdiI6IlpiTW9FSkdxUHZDVmRpRW4xUisrUmc9PSIsInZhbHVlIjoiSVdPYmN3TDFSbzZ6VjczQnI1Mk0rVU55R24zTjJRT1F6UzQ1U0d4UVUyS3QxU1pOcnhua1BlTEZNUnBmR0" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6ImorNnoyN2x5M2xaWkhNdVExVmRhOUE9PSIsInZhbHVlIjoic0dqZWlOeGpYTHpPUnpTTXovekJndzBUSG81dU9EZkorb3VPZlpLM1dmSjQrWFlzN0UvWEh3b2JCS1ZNOU9kYzRZaG5YSlNxckljY1hscHEzdWxHZVdqdXRHUlJmM1VpVjFKd2FEVHg1dmVwQkJnWGI0MDIvYnZoaFUzWCtoeUwiLCJtYWMiOiI3ZDI4OTM5OTA4OGZjYzBmMDM0NTdjMzc2ODBiYjhhN2UxZDhhYTM0MWJhMWFiMjljNTdmMzA5NTJjZWIwNzg3IiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 12:18:19 GMT; domain=.24houranswers.com; path=/XSRF-TOKEN=eyJpdiI6ImorNnoyN2x5M2xaWkhNdVExVmRhOUE9PSIsInZhbHVlIjoic0dqZWlOeGpYTHpPUnpTTXovekJndzBUSG81dU9EZkorb3VPZlpLM1dmSjQrWFlzN0UvWEh3b2JCS1ZNOU9kYzRZaG5YS" 1 => "24houranswers_session=eyJpdiI6IlpiTW9FSkdxUHZDVmRpRW4xUisrUmc9PSIsInZhbHVlIjoiSVdPYmN3TDFSbzZ6VjczQnI1Mk0rVU55R24zTjJRT1F6UzQ1U0d4UVUyS3QxU1pOcnhua1BlTEZNUnBmR01Ud2tvZUdKQnkwR2RrZWxIZy9UVnVGTUVHRnRFaEE0aDZnaFpDQU5kVjgzb2t1K1RSYU1ManB0Wk03WGdaRFpOQUIiLCJtYWMiOiI3OWY2MzIxNDFjN2ExMDI1ODBiZWRiMTdkMmFjZjBhZjgyOWI5ODZkODg0MTY0NDMxYjMxNWFlNTcyYmY3NzVmIiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 12:18:19 GMT; domain=.24houranswers.com; path=/; httponly24houranswers_session=eyJpdiI6IlpiTW9FSkdxUHZDVmRpRW4xUisrUmc9PSIsInZhbHVlIjoiSVdPYmN3TDFSbzZ6VjczQnI1Mk0rVU55R24zTjJRT1F6UzQ1U0d4UVUyS3QxU1pOcnhua1BlTEZNUnBmR0" ] ]
          session_attributes
          0 of 0
          array:6 [ "_token" => "E7sxsJQoPEoNAodx4RE7Gaf2rbe7SRn0Q0BA1wWN" "utm_source" => "direct" "redirectUrl" => "/college-homework-library/Computer-Science/C-Family-Programming/50110" "_previous" => array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Science/C-Family-Programming/50110" ] "_flash" => array:2 [ "old" => [] "new" => [] ] "PHPDEBUGBAR_STACK_DATA" => [] ]