Question
To prepare you for program 1.B (where you will be creating your own string class), you need to become familiar with cstring ( a null ('\0') terminated char array). You can find more information about cstrings out in Files under Review Lectures from 131 and then towards the end of the Lecture 8 Pointers.

The following code creates the array show below it

char str2[ ] = "cat";

str2:

'c' 'a' 't' '\0'

To help you with the cstring learning process, for this assignment you will need to write two function shown by their function prototypes below. In your funcitons, you can't call any of the cstring funcitons.

The comparison should be the same as in a dictionary, except capital letters will sort less than lowercase letters. Shorter word containing the same characters as longer words should sort smaller. For example cat < catagory.

You need to compare one char at a time until you find a difference or reach the end of a word.

For turn in, use the main that I have given you below.

/**
if arg1 < arg2 returns a negative number
if arg1 > arg2 returns a positive number
if arg1 == arg1 returns zero
*/
int compareTo(const char* lstr, const char* rstr); // needs to be written
int length(const char * str); // needs to be written

int main() {
char str1[] = "batman";
char str2[] = "cat";
char str3[] = "cast";
char str4[] = "catagory";
char str5[] = "ZIP";

cout << "batman " << length(str1) << endl;
cout << "cat " << length(str2) << endl;

cout << "comparing " << str1 << " & " << str2 << " " << compareTo(str1, str2) << endl;
cout << "comparing " << str2 << " & " << str1 << " " << compareTo(str2, str1) << endl;

cout << "comparing " << str3 << " & " << str2 << " " << compareTo(str3, str2) << endl;
cout << "comparing " << str2 << " & " << str3 << " " << compareTo(str2, str3) << endl;

cout << "comparing " << str4 << " & " << str2 << " " << compareTo(str4, str2) << endl;
cout << "comparing " << str2 << " & " << str4 << " " << compareTo(str2, str4) << endl;

cout << "comparing " << str2 << " & " << str2 << " " << compareTo(str2, str2) << endl;

cout << "comparing " << str2 << " & " << str5 << " " << compareTo(str2, str5) << endl;

system("pause");
return 0;
}
Turn in a print out of your program and the output.

Comments: Comments are a way of documenting a program (explaining who did what and how). All programs for the rest of the course are required to have the following header documentation and inline documentation to explain any tricky pieces of code.

////
// Author: Your Name
// Section: A or S
// Assignment: #
// Description: Short description of what the program accomplishes
// (at least a couple sentences – also you should say where the input
// data comes from, what information is output, and where the output
// data is sent to (the screen or a file)
////

#include <iostream>.......the rest of the program
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.

/*
* File:   main.cpp
* Author:
*
*
*/

#include <cstdlib>
#include <iostream>

using namespace std;

/**

if arg1 < arg2 returns a negative number

if arg1 > arg2 returns a positive number

if arg1 == arg1 returns zero

*/

int compareTo(const char* lstr, const char* rstr); // needs to be written

int length(const char * str); // needs to be written

int main() {

    char str1[] = "batman";
    char str2[] = "cat";
    char str3[] = "cast";
    char str4[] = "catagory";
    char str5[] = "ZIP";

    cout << "batman " << length(str1) << endl;
    cout << "cat " << length(str2) << endl;


    cout << "comparing " << str1 << " & " << str2 << " " << compareTo(str1, str2) << endl;
    cout << "comparing " << str2 << " & " << str1 << " " << compareTo(str2, str1) << endl;

    cout << "comparing " << str3 << " & " << str2 << " " << compareTo(str3, str2) << endl;
    cout << "comparing " << str2 << " & " << str3 << " " << compareTo(str2, str3) << endl;

    cout << "comparing " << str4 << " & " << str2 << " " << compareTo(str4, str2) << endl;
    cout << "comparing " << str2 << " & " << str4 << " " << compareTo(str2, str4) << endl;


    cout << "comparing " << str2 << " & " << str2 << " " << compareTo(str2, str2) << endl;
    cout << "comparing " << str2 << " & " << str5 << " " << compareTo(str2, str5) << endl;


    system("pause");
    return 0;
}
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:
main.cpp
Purchase Solution
$14.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 Version361msRequest Duration45MBMemory UsageGET college-homework-library/{category}/{subject}/{id}Route
    • Booting (181ms)time
    • Application (180ms)time
    • 1 x Booting (50.01%)
      181ms
      1 x Application (49.98%)
      180ms
      • Illuminate\Routing\Events\Routing (574μs)
      • Illuminate\Routing\Events\RouteMatched (362μs)
      • Illuminate\Foundation\Events\LocaleUpdated (1.9ms)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (169μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (143μs)
      • Illuminate\Database\Events\ConnectionEstablished (771μs)
      • Illuminate\Database\Events\StatementPrepared (5.08ms)
      • Illuminate\Database\Events\QueryExecuted (1.43ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (101μs)
      • eloquent.booting: App\Models\Subject (73μs)
      • eloquent.booted: App\Models\Subject (55μs)
      • Illuminate\Database\Events\StatementPrepared (1.62ms)
      • Illuminate\Database\Events\QueryExecuted (1.55ms)
      • eloquent.retrieved: App\Models\Subject (153μs)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (140μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (62μs)
      • Illuminate\Database\Events\StatementPrepared (689μs)
      • Illuminate\Database\Events\QueryExecuted (1.18ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (119μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (22μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (15μs)
      • eloquent.booting: App\Models\SubjectCat (656μs)
      • eloquent.booted: App\Models\SubjectCat (67μs)
      • Illuminate\Database\Events\StatementPrepared (778μs)
      • Illuminate\Database\Events\QueryExecuted (1.12ms)
      • eloquent.retrieved: App\Models\SubjectCat (134μs)
      • Illuminate\Cache\Events\CacheHit (11.81ms)
      • Illuminate\Cache\Events\CacheMissed (181μs)
      • Illuminate\Database\Events\StatementPrepared (1.71ms)
      • Illuminate\Database\Events\QueryExecuted (30.38ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (86μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (17μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (6μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (6μs)
      • Illuminate\Database\Events\StatementPrepared (968μs)
      • Illuminate\Database\Events\QueryExecuted (1.33ms)
      • eloquent.retrieved: App\Models\Subject (105μs)
      • Illuminate\Cache\Events\KeyWritten (2.13ms)
      • Illuminate\Database\Events\StatementPrepared (1.88ms)
      • Illuminate\Database\Events\QueryExecuted (1.12ms)
      • Illuminate\Database\Events\StatementPrepared (734μs)
      • Illuminate\Database\Events\QueryExecuted (919μs)
      • Illuminate\Database\Events\StatementPrepared (743μs)
      • Illuminate\Database\Events\QueryExecuted (973μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (66μs)
      • Illuminate\Cache\Events\CacheHit (390μs)
      • creating: homework.show (185μs)
      • composing: homework.show (78μs)
      • creating: components.breadcrumbs (185μs)
      • composing: components.breadcrumbs (83μs)
      • Illuminate\Database\Events\StatementPrepared (1.22ms)
      • Illuminate\Database\Events\QueryExecuted (1.02ms)
      • eloquent.retrieved: App\Models\SubjectCat (74μs)
      • Illuminate\Cache\Events\CacheMissed (3.22ms)
      • Illuminate\Database\Events\StatementPrepared (757μs)
      • Illuminate\Database\Events\QueryExecuted (805μs)
      • eloquent.retrieved: App\Models\SubjectCat (75μs)
      • Illuminate\Cache\Events\KeyWritten (334μs)
      • Illuminate\Cache\Events\CacheHit (218μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (266μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheMissed (1.98ms)
      • Illuminate\Database\Events\StatementPrepared (660μs)
      • Illuminate\Database\Events\QueryExecuted (1.13ms)
      • eloquent.retrieved: App\Models\SubjectCat (69μs)
      • Illuminate\Cache\Events\KeyWritten (1.05ms)
      • Illuminate\Cache\Events\CacheHit (250μs)
      • Illuminate\Cache\Events\CacheHit (266μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheMissed (149μs)
      • Illuminate\Database\Events\StatementPrepared (626μs)
      • Illuminate\Database\Events\QueryExecuted (1.06ms)
      • eloquent.retrieved: App\Models\SubjectCat (98μs)
      • Illuminate\Cache\Events\KeyWritten (591μs)
      • Illuminate\Cache\Events\CacheHit (1.16ms)
      • Illuminate\Cache\Events\CacheHit (257μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (293μs)
      • Illuminate\Cache\Events\CacheHit (211μs)
      • Illuminate\Cache\Events\CacheHit (232μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (426μs)
      • Illuminate\Cache\Events\CacheHit (246μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (215μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (225μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheMissed (498μs)
      • Illuminate\Database\Events\StatementPrepared (758μs)
      • Illuminate\Database\Events\QueryExecuted (1.09ms)
      • eloquent.retrieved: App\Models\SubjectCat (67μs)
      • Illuminate\Cache\Events\KeyWritten (1.59ms)
      • Illuminate\Cache\Events\CacheHit (360μs)
      • Illuminate\Cache\Events\CacheHit (255μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (243μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (239μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (253μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (229μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheMissed (205μs)
      • Illuminate\Database\Events\StatementPrepared (773μs)
      • Illuminate\Database\Events\QueryExecuted (922μs)
      • eloquent.retrieved: App\Models\SubjectCat (82μs)
      • Illuminate\Cache\Events\KeyWritten (354μs)
      • Illuminate\Cache\Events\CacheHit (1.02ms)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (268μs)
      • Illuminate\Cache\Events\CacheHit (221μs)
      • Illuminate\Cache\Events\CacheMissed (286μs)
      • Illuminate\Database\Events\StatementPrepared (674μs)
      • Illuminate\Database\Events\QueryExecuted (1.19ms)
      • eloquent.retrieved: App\Models\SubjectCat (94μs)
      • Illuminate\Cache\Events\KeyWritten (374μs)
      • Illuminate\Cache\Events\CacheHit (1.42ms)
      • Illuminate\Cache\Events\CacheHit (234μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (238μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (260μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (981μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (354μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (154μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheMissed (338μs)
      • Illuminate\Database\Events\StatementPrepared (853μs)
      • Illuminate\Database\Events\QueryExecuted (1.1ms)
      • eloquent.retrieved: App\Models\SubjectCat (60μs)
      • Illuminate\Cache\Events\KeyWritten (352μs)
      • Illuminate\Cache\Events\CacheHit (1.03ms)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (224μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (264μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (230μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (224μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (211μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheMissed (293μs)
      • Illuminate\Database\Events\StatementPrepared (882μs)
      • Illuminate\Database\Events\QueryExecuted (994μs)
      • eloquent.retrieved: App\Models\SubjectCat (72μs)
      • Illuminate\Cache\Events\KeyWritten (1.69ms)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (144μs)
      • Illuminate\Cache\Events\CacheHit (139μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (783μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (148μs)
      • Illuminate\Cache\Events\CacheHit (144μs)
      • Illuminate\Cache\Events\CacheHit (146μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (144μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheMissed (196μs)
      • Illuminate\Database\Events\StatementPrepared (751μs)
      • Illuminate\Database\Events\QueryExecuted (889μs)
      • eloquent.retrieved: App\Models\SubjectCat (74μs)
      • Illuminate\Cache\Events\KeyWritten (348μs)
      • Illuminate\Cache\Events\CacheHit (1.12ms)
      • Illuminate\Cache\Events\CacheHit (383μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (138μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • creating: site.layouts.app (358μs)
      • composing: site.layouts.app (17μs)
      • creating: components.canonical (441μs)
      • composing: components.canonical (75μs)
      • creating: components.open-graph (160μs)
      • composing: components.open-graph (51μs)
      • creating: site.headers.header (221μs)
      • composing: site.headers.header (51μs)
      • Illuminate\Cache\Events\CacheHit (1.27ms)
      • creating: components.footer (68μs)
      • composing: components.footer (71μs)
      • Illuminate\Cache\Events\CacheHit (627μs)
      • Illuminate\Cache\Events\CacheMissed (270μs)
      • Illuminate\Database\Events\StatementPrepared (1.42ms)
      • Illuminate\Database\Events\QueryExecuted (1.38ms)
      • eloquent.retrieved: App\Models\SubjectCat (76μs)
      • Illuminate\Cache\Events\KeyWritten (356μs)
      • Illuminate\Cache\Events\CacheHit (365μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (298μs)
      • Illuminate\Cache\Events\CacheHit (266μs)
      • Illuminate\Cache\Events\CacheHit (380μs)
      • Illuminate\Cache\Events\CacheHit (385μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (209μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • creating: components.forms.contact-us (311μs)
      • composing: components.forms.contact-us (182μs)
      • creating: components.forms.get-started (219μs)
      • composing: components.forms.get-started (85μs)
      • creating: components.forms.free-tool-download (233μs)
      • composing: components.forms.free-tool-download (79μs)
      • creating: components.forms.claim-free-worksheet (146μs)
      • composing: components.forms.claim-free-worksheet (77μs)
      • creating: components.forms.tutor-subscription-waitlist (141μs)
      • composing: components.forms.tutor-subscription-waitlist (74μs)
      • creating: components.forms.tutor-subscription-join (142μs)
      • composing: components.forms.tutor-subscription-join (78μs)
      • creating: components.forms.tutor-support (140μs)
      • composing: components.forms.tutor-support (77μs)
      • 311 x Illuminate\Cache\Events\CacheHit (19.98%)
        72.16ms
        20 x Illuminate\Database\Events\QueryExecuted (14.28%)
        51.57ms
        20 x Illuminate\Database\Events\StatementPrepared (6.53%)
        23.57ms
        11 x Illuminate\Cache\Events\KeyWritten (2.54%)
        9.16ms
        11 x Illuminate\Cache\Events\CacheMissed (2.11%)
        7.61ms
        1 x Illuminate\Foundation\Events\LocaleUpdated (0.53%)
        1.90ms
        12 x eloquent.retrieved: App\Models\SubjectCat (0.27%)
        975μs
        1 x Illuminate\Database\Events\ConnectionEstablished (0.21%)
        771μs
        1 x eloquent.booting: App\Models\SubjectCat (0.18%)
        656μs
        1 x Illuminate\Routing\Events\Routing (0.16%)
        574μs
        1 x creating: components.canonical (0.12%)
        441μs
        1 x Illuminate\Routing\Events\RouteMatched (0.1%)
        362μs
        1 x creating: site.layouts.app (0.1%)
        358μs
        1 x creating: components.forms.contact-us (0.09%)
        311μs
        2 x eloquent.retrieved: App\Models\Subject (0.07%)
        258μs
        1 x creating: components.forms.free-tool-download (0.06%)
        233μs
        7 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (0.06%)
        233μs
        4 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.06%)
        222μs
        1 x creating: site.headers.header (0.06%)
        221μs
        1 x creating: components.forms.get-started (0.06%)
        219μs
        1 x creating: homework.show (0.05%)
        185μs
        1 x creating: components.breadcrumbs (0.05%)
        185μs
        1 x composing: components.forms.contact-us (0.05%)
        182μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (0.05%)
        169μs
        1 x creating: components.open-graph (0.04%)
        160μs
        1 x creating: components.forms.claim-free-worksheet (0.04%)
        146μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (0.04%)
        143μs
        1 x creating: components.forms.tutor-subscription-join (0.04%)
        142μs
        1 x creating: components.forms.tutor-subscription-waitlist (0.04%)
        141μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.04%)
        140μs
        1 x creating: components.forms.tutor-support (0.04%)
        140μs
        1 x composing: components.forms.get-started (0.02%)
        85μs
        1 x composing: components.breadcrumbs (0.02%)
        83μs
        1 x composing: components.forms.free-tool-download (0.02%)
        79μs
        1 x composing: homework.show (0.02%)
        78μs
        1 x composing: components.forms.tutor-subscription-join (0.02%)
        78μs
        1 x composing: components.forms.claim-free-worksheet (0.02%)
        77μs
        1 x composing: components.forms.tutor-support (0.02%)
        77μs
        1 x composing: components.canonical (0.02%)
        75μs
        1 x composing: components.forms.tutor-subscription-waitlist (0.02%)
        74μs
        1 x eloquent.booting: App\Models\Subject (0.02%)
        73μs
        1 x composing: components.footer (0.02%)
        71μs
        1 x creating: components.footer (0.02%)
        68μs
        1 x eloquent.booted: App\Models\SubjectCat (0.02%)
        67μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.02%)
        62μs
        1 x eloquent.booted: App\Models\Subject (0.02%)
        55μs
        1 x composing: components.open-graph (0.01%)
        51μs
        1 x composing: site.headers.header (0.01%)
        51μ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 duplicated59.77ms
      • 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` = '58015' limit 1
        5.7mstwenty4_siteHomeworkLibraryController.php#97
        Bindings
        • 0: published
        • 1: 0
        • 2: 58015
        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.56mstwenty4_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 (58015)
        1.16mstwenty4_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.11mstwenty4_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` <> 58015 and `subject` = 16 and `status` = 'published' and `price` > 0 order by RAND() limit 6
        31.41mstwenty4_siteHomeworkLibraryRepository.php#30
        Bindings
        • 0: 58015
        • 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.44mstwenty4_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` = 58015 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'question' order by `order` asc, `id` asc
        1.15mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 58015
        • 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` = 58015 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'teaser' order by `order` asc, `id` asc
        1.07mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 58015
        • 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` = 58015 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'solution' order by `order` asc, `id` asc
        1.19mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 58015
        • 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.23mstwenty4_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.1mstwenty4_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.27mstwenty4_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.15mstwenty4_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.09mstwenty4_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.26mstwenty4_siteSubject.php#100
        Bindings
        • 0: 33
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 11 limit 1
        1.12mstwenty4_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.2mstwenty4_siteSubject.php#100
        Bindings
        • 0: 5
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 34 limit 1
        1.32mstwenty4_siteSubject.php#100
        Bindings
        • 0: 34
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 31 limit 1
        1.1mstwenty4_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
        2.14mstwenty4_siteSubject.php#100
        Bindings
        • 0: 36
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 28. view::components.footer:170
      App\Models\SubjectCat
      12SubjectCat.php
      App\Models\HomeworkLibrary\HomeworkLibrary
      7HomeworkLibrary.php
      App\Models\HomeworkLibrary\HomeworkLibraryFile
      4HomeworkLibraryFile.php
      App\Models\Subject
      2Subject.php
          _token
          OopcRRe8m46sLzOWuOvnRBaiWzVNd5QJzIwT2Ao5
          utm_source
          direct
          redirectUrl
          /college-homework-library/Computer-Science/C-Family-Programming/58015
          _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/58015
          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-680de332-7250ad051b09f3f9185332f5" ] "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.143.254.10" ] "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:56:34 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IktzekFyZzZjd2N3SXdDZVZRMWJaMFE9PSIsInZhbHVlIjoiVHk0cXFtUEwrMVVESUVXYWZTeHBidnRGU1JSUzh0U3ZYZ3RxSSs3R3pJU1V2SEFTRWMxK3dQRDJQejV0ZWhGdmVvUWxzbzhMNmJFakFSSTM0a0lwMm5UdG43RVRjWmFCMkM3QUZzcU0vcEMyNlYxRHF0RWdUR292bUt1RlI5SmQiLCJtYWMiOiIyOTM2ZTRmYjgwZWUyOTRiNmRiNGIxNzlkZDVjYjk5MDlhZGFjODAzYjYyMGQ2NTkwMWU4YzM4YWQ1MTcxNjE5IiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 09:56:34 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; samesite=laxXSRF-TOKEN=eyJpdiI6IktzekFyZzZjd2N3SXdDZVZRMWJaMFE9PSIsInZhbHVlIjoiVHk0cXFtUEwrMVVESUVXYWZTeHBidnRGU1JSUzh0U3ZYZ3RxSSs3R3pJU1V2SEFTRWMxK3dQRDJQejV0ZWhGdmVvUWxzb" 1 => "24houranswers_session=eyJpdiI6IkxXdzlnc0k0aWp2WWgycDQ1Z3JyTlE9PSIsInZhbHVlIjoiNDJWRXhUdHpXdmxBd3kzOFM2VGFHZWU3NE9GY2VudmZrNXhzU3lPZHBaRTBaODZ5NktqbE5lQTZsdnlFdFRZeFJHL1NkSUVtQjAvbU5GKzFybm9RWjA5dGIvdDZWTnNtVDEvSEEwNFp0Mm9YL29CZXNCbnltZlZkNHcrMWF2STgiLCJtYWMiOiI4YzU3NDhhMWQwOGJkZjNmOWJmNDFmNTM0NzM1MmYyMDdiYzZiMTJmZTM5YWRhYzVkY2NiNzVkZGY5NTExNDA3IiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 09:56:34 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; httponly; samesite=lax24houranswers_session=eyJpdiI6IkxXdzlnc0k0aWp2WWgycDQ1Z3JyTlE9PSIsInZhbHVlIjoiNDJWRXhUdHpXdmxBd3kzOFM2VGFHZWU3NE9GY2VudmZrNXhzU3lPZHBaRTBaODZ5NktqbE5lQTZsdnlFdF" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IktzekFyZzZjd2N3SXdDZVZRMWJaMFE9PSIsInZhbHVlIjoiVHk0cXFtUEwrMVVESUVXYWZTeHBidnRGU1JSUzh0U3ZYZ3RxSSs3R3pJU1V2SEFTRWMxK3dQRDJQejV0ZWhGdmVvUWxzbzhMNmJFakFSSTM0a0lwMm5UdG43RVRjWmFCMkM3QUZzcU0vcEMyNlYxRHF0RWdUR292bUt1RlI5SmQiLCJtYWMiOiIyOTM2ZTRmYjgwZWUyOTRiNmRiNGIxNzlkZDVjYjk5MDlhZGFjODAzYjYyMGQ2NTkwMWU4YzM4YWQ1MTcxNjE5IiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 09:56:34 GMT; domain=.24houranswers.com; path=/XSRF-TOKEN=eyJpdiI6IktzekFyZzZjd2N3SXdDZVZRMWJaMFE9PSIsInZhbHVlIjoiVHk0cXFtUEwrMVVESUVXYWZTeHBidnRGU1JSUzh0U3ZYZ3RxSSs3R3pJU1V2SEFTRWMxK3dQRDJQejV0ZWhGdmVvUWxzb" 1 => "24houranswers_session=eyJpdiI6IkxXdzlnc0k0aWp2WWgycDQ1Z3JyTlE9PSIsInZhbHVlIjoiNDJWRXhUdHpXdmxBd3kzOFM2VGFHZWU3NE9GY2VudmZrNXhzU3lPZHBaRTBaODZ5NktqbE5lQTZsdnlFdFRZeFJHL1NkSUVtQjAvbU5GKzFybm9RWjA5dGIvdDZWTnNtVDEvSEEwNFp0Mm9YL29CZXNCbnltZlZkNHcrMWF2STgiLCJtYWMiOiI4YzU3NDhhMWQwOGJkZjNmOWJmNDFmNTM0NzM1MmYyMDdiYzZiMTJmZTM5YWRhYzVkY2NiNzVkZGY5NTExNDA3IiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 09:56:34 GMT; domain=.24houranswers.com; path=/; httponly24houranswers_session=eyJpdiI6IkxXdzlnc0k0aWp2WWgycDQ1Z3JyTlE9PSIsInZhbHVlIjoiNDJWRXhUdHpXdmxBd3kzOFM2VGFHZWU3NE9GY2VudmZrNXhzU3lPZHBaRTBaODZ5NktqbE5lQTZsdnlFdF" ] ]
          session_attributes
          0 of 0
          array:6 [ "_token" => "OopcRRe8m46sLzOWuOvnRBaiWzVNd5QJzIwT2Ao5" "utm_source" => "direct" "redirectUrl" => "/college-homework-library/Computer-Science/C-Family-Programming/58015" "_previous" => array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Science/C-Family-Programming/58015" ] "_flash" => array:2 [ "old" => [] "new" => [] ] "PHPDEBUGBAR_STACK_DATA" => [] ]