Question
The goal of this assignment is to start working with inheritance in C++. Follow the directions below, and make sure your source code files (**no executable files, `.o` files, or other crufty stuff**) are committed and pushed back into your repository on GitHub.

The Zoo Tycoon game

For this assignment, you will implement a small game where the player acts as the owner of the city's zoo, which has exhibits of monkeys, sea otters, and sloths. As the owner, it's the player's job both to ensure the welfare of the animals and to generate as much profit as possible. They accomplish these goals by investing in animals, feeding them, caring for them when they are sick, and raising their babies when they are born.

Each species of animal has these specific traits:
* **Age**
    * For all species, an animal is an adult if it is at least 3 years old.
    * For all species, an animal is a baby if it is less than 30 days old.
* **Cost**
    * Monkeys cost $15,000 each.
    * Sea otters cost $5,000 each.
    * Sloths cost $2,000 each.
* **Babies**
    * Monkeys have 1 baby at a time.
    * Sea otters have 2 babies at a time.
    * Sloths have 3 babies at a time.
* **Food cost**
    * The base daily food cost varies on a day-to-day basis (see below).
    * Monkeys have a daily food cost of 4 times the base food cost.
    * Sea otters have a daily food cost of 2 times the base food cost.
    * Sloths have a daily food cost equal to the base food cost.
* **Revenue**
    * Each animal generates daily revenue equal to a percentage of the initial cost of one of its species.
      * All animals except monkeys generate 5% of the cost of one of their species (i.e. each sea otter generates $250 each day, and each sloth generates $100 each day).
      * Each monkey generates 10% of the cost of a monkey (i.e. each monkey generates $1500 each day).
    * On certain days, when attendance is high, each monkey generates some amount of bonus revenue. See below for details.

Game flow

The game starts with the owner having no animals and $100,000 in the bank, and it proceeds one day at a time. You can think of each day as a turn for the player. During a single day, several things happen:

1. The age of each animal currently in the zoo increases by one day.

2. The owner may buy up to two adult animals of a single species. The owner may only buy one species per day, but they do not have to buy any animals if they don't want to. Each animal that the owner buys is exactly 3 years old. When the owner buys an animal, the cost of the animal is subtracted from the owner's bank account.

3. The owner must pay the feeding cost for each animal in the zoo (including any they just bought). The cost of food for each animal is calculated using the base cost of food. This starts out as $50. Each day, the base cost changes to a random value between 75% and 125% of the base cost from the day before. Once the cost of food for each animal is calculated, this amount is subtracted from the owner's bank account.

4. A special event occurs. The special event is chosen at random from among the following:
    * One randomly chosen animal gets sick. In order to care for the sick animal, the owner must pay an amount equal to half the initial cost of an animal of the same species as the sick animal (e.g. a sick monkey costs half of $15,000, i.e. $7,500). If the owner has enough money to cover this cost, it is subtracted from their bank account. If they do not have enough money, then the sick animal dies and is removed from the zoo.

* A randomly chosen adult animal gives birth to the appropriate number of babies for its species (a non-adult can't have babies). Each baby starts with age 0 and is added into the zoo.

* A boom in zoo attendance occurs. Each time this happens, each monkey generates a random amount of extra bonus revenue between $250 and $500.

* No special event occurs on this day.

5. The owner receives daily revenue for each animal, as specified above.

In addition to the specifications above, your game must have these features:
* Each baby animal less than 30 days old generates twice the amount of revenue as an adult animal. These babies who are less than 30 days old also cost twice as much as an adult if they get sick.

* If the player runs out of money at any point, the game ends with the zoo going bankrupt.

Program requirements

* You must have a class for each of the following things: zoo, animal, monkey, sea otter, and sloth.

* You must use inheritance: the classes for monkey, sea otter, and sloth must inherit some traits and behaviors from the animal class, though each of them may also have unique traits or behaviors, as well (e.g. the bonus payout for monkeys).

* Within your zoo, the exhibit of each species of animal must be represented as a dynamically-allocated array of objects of the appropriate class.

* Your program should implement the game flow described above. The player may play one day at a time until they choose to quit the came. At the beginning of each day, you should let the player know how much money they have in the bank and how many adults (>= 3 years old) and babies (< 30 days old) they have of each species.

* Your program may not have any memory leaks.

* Your program must be factored into interface, implementation, and application. Specifically, you should have one header file and one implementation file for each class, and you should have a single application file containing your `main()` function. You should also write a makefile that specifies compilation for your program.

Extra

* Implement a new animal class using inheritance. The new animal must include all of the traits of the other animals (age, cost, babies, food cost, revenue).

* Allow the user to choose a type of feed each day:
    * **Regular** - This is the normal food, and it behaves as described above.
    * **Premium** - This food costs twice as much as regular food for all animals, but it reduces the probability of sickness by half.
    * **Cheap** - This food costs half as much as regular food for all animals, but it doubles the probability that an animal will get sick.
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 "Animal.hpp"

Animal::Animal(int year) {
    this->age.setYear(year);
    alive = true;
    babies = 0;
}

Animal::Animal(const Animal& o) {
    age = o.age;
    babies = o.babies;    cost = o.cost;
    food_cost_ratio = o.food_cost_ratio;
    alive = o.alive;   
    revenue_ratio = o.revenue_ratio;
    type = o.type;
}

Animal::~Animal() {
    type.clear();
}

bool Animal::isAlive() {
    return alive;
}

double Animal::getCost() {
    return cost;
}

double Animal::getCoveringCost() {
    if (isBaby()) {
       return cost * 2.0;
    }
    return cost;
}


double Animal::getFoodCost(double baseCost) {
    return food_cost_ratio * baseCost;
}


double Animal::getRevenue(bool isBoom) {
    double revenue = revenue_ratio * cost;
    if (isBaby()) {
       revenue *= 2;
    }
    return revenue;
}

bool Animal::isAdult() {
    return age.isAldult();
}

bool Animal::isBaby() {
    return age.isBaby();
}

int Animal::getBabies() {
    return babies;
}

void Animal::setYear(int year) {
    age.setYear(year);
}

void Animal::oneDayIncreased() {
    age.increaseDay();
}

void Animal::die() {
    alive = false;
}

string Animal::getType() {
    return type;
}
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
$63.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 Version448msRequest Duration45MBMemory UsageGET college-homework-library/{category}/{subject}/{id}Route
    • Booting (261ms)time
    • Application (186ms)time
    • 1 x Booting (58.33%)
      261ms
      1 x Application (41.66%)
      186ms
      • Illuminate\Routing\Events\Routing (1.36ms)
      • Illuminate\Routing\Events\RouteMatched (576μs)
      • Illuminate\Foundation\Events\LocaleUpdated (4.44ms)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (192μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (166μs)
      • Illuminate\Database\Events\ConnectionEstablished (1.04ms)
      • Illuminate\Database\Events\StatementPrepared (8.37ms)
      • Illuminate\Database\Events\QueryExecuted (1.31ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (102μs)
      • eloquent.booting: App\Models\Subject (103μs)
      • eloquent.booted: App\Models\Subject (44μs)
      • Illuminate\Database\Events\StatementPrepared (1.72ms)
      • Illuminate\Database\Events\QueryExecuted (1.49ms)
      • eloquent.retrieved: App\Models\Subject (131μs)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (131μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (59μs)
      • Illuminate\Database\Events\StatementPrepared (4.05ms)
      • Illuminate\Database\Events\QueryExecuted (4.29ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (88μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (15μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (6μs)
      • eloquent.booting: App\Models\SubjectCat (529μs)
      • eloquent.booted: App\Models\SubjectCat (44μs)
      • Illuminate\Database\Events\StatementPrepared (740μs)
      • Illuminate\Database\Events\QueryExecuted (1.63ms)
      • eloquent.retrieved: App\Models\SubjectCat (159μs)
      • Illuminate\Cache\Events\CacheHit (21.64ms)
      • Illuminate\Cache\Events\CacheMissed (175μs)
      • Illuminate\Database\Events\StatementPrepared (901μs)
      • Illuminate\Database\Events\QueryExecuted (32.56ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (103μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (16μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (9μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (7μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (6μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (6μs)
      • Illuminate\Database\Events\StatementPrepared (787μs)
      • Illuminate\Database\Events\QueryExecuted (1.41ms)
      • eloquent.retrieved: App\Models\Subject (100μs)
      • Illuminate\Cache\Events\KeyWritten (836μs)
      • Illuminate\Database\Events\StatementPrepared (2.07ms)
      • Illuminate\Database\Events\QueryExecuted (1.05ms)
      • Illuminate\Database\Events\StatementPrepared (661μs)
      • Illuminate\Database\Events\QueryExecuted (1.32ms)
      • Illuminate\Database\Events\StatementPrepared (801μs)
      • Illuminate\Database\Events\QueryExecuted (1.03ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (48μs)
      • Illuminate\Cache\Events\CacheHit (392μs)
      • creating: homework.show (200μs)
      • composing: homework.show (79μs)
      • creating: components.breadcrumbs (191μs)
      • composing: components.breadcrumbs (83μs)
      • Illuminate\Database\Events\StatementPrepared (1.23ms)
      • Illuminate\Database\Events\QueryExecuted (800μs)
      • eloquent.retrieved: App\Models\SubjectCat (72μs)
      • Illuminate\Cache\Events\CacheMissed (2.97ms)
      • Illuminate\Database\Events\StatementPrepared (717μs)
      • Illuminate\Database\Events\QueryExecuted (963μs)
      • eloquent.retrieved: App\Models\SubjectCat (139μs)
      • Illuminate\Cache\Events\KeyWritten (338μs)
      • Illuminate\Cache\Events\CacheHit (1.03ms)
      • Illuminate\Cache\Events\CacheHit (470μs)
      • Illuminate\Cache\Events\CacheHit (141μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheMissed (192μs)
      • Illuminate\Database\Events\StatementPrepared (744μs)
      • Illuminate\Database\Events\QueryExecuted (840μs)
      • eloquent.retrieved: App\Models\SubjectCat (67μs)
      • Illuminate\Cache\Events\KeyWritten (322μs)
      • Illuminate\Cache\Events\CacheHit (1.46ms)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (149μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheMissed (2.23ms)
      • Illuminate\Database\Events\StatementPrepared (844μs)
      • Illuminate\Database\Events\QueryExecuted (888μs)
      • eloquent.retrieved: App\Models\SubjectCat (70μs)
      • Illuminate\Cache\Events\KeyWritten (311μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (145μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (301μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (130μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (144μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (138μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (130μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (146μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheMissed (133μs)
      • Illuminate\Database\Events\StatementPrepared (2.17ms)
      • Illuminate\Database\Events\QueryExecuted (1.03ms)
      • eloquent.retrieved: App\Models\SubjectCat (80μs)
      • Illuminate\Cache\Events\KeyWritten (328μs)
      • Illuminate\Cache\Events\CacheHit (1.13ms)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheMissed (214μs)
      • Illuminate\Database\Events\StatementPrepared (738μs)
      • Illuminate\Database\Events\QueryExecuted (952μs)
      • eloquent.retrieved: App\Models\SubjectCat (61μs)
      • Illuminate\Cache\Events\KeyWritten (1.4ms)
      • Illuminate\Cache\Events\CacheHit (214μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (130μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (624μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (311μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (96μs)
      • Illuminate\Cache\Events\CacheHit (136μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheMissed (129μs)
      • Illuminate\Database\Events\StatementPrepared (732μs)
      • Illuminate\Database\Events\QueryExecuted (842μs)
      • eloquent.retrieved: App\Models\SubjectCat (71μs)
      • Illuminate\Cache\Events\KeyWritten (290μs)
      • Illuminate\Cache\Events\CacheHit (1.41ms)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (143μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (278μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (135μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (139μs)
      • Illuminate\Cache\Events\CacheHit (142μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheMissed (243μs)
      • Illuminate\Database\Events\StatementPrepared (842μs)
      • Illuminate\Database\Events\QueryExecuted (970μs)
      • eloquent.retrieved: App\Models\SubjectCat (69μs)
      • Illuminate\Cache\Events\KeyWritten (1.56ms)
      • Illuminate\Cache\Events\CacheHit (235μs)
      • Illuminate\Cache\Events\CacheHit (398μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (150μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (691μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (144μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (130μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (101μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (138μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (99μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (125μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (151μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (142μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (141μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (142μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheMissed (136μs)
      • Illuminate\Database\Events\StatementPrepared (743μs)
      • Illuminate\Database\Events\QueryExecuted (826μs)
      • eloquent.retrieved: App\Models\SubjectCat (75μs)
      • Illuminate\Cache\Events\KeyWritten (295μs)
      • Illuminate\Cache\Events\CacheHit (1.1ms)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (135μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (104μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (141μs)
      • Illuminate\Cache\Events\CacheHit (113μs)
      • Illuminate\Cache\Events\CacheHit (304μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • creating: site.layouts.app (358μs)
      • composing: site.layouts.app (17μs)
      • creating: components.canonical (399μs)
      • composing: components.canonical (79μs)
      • creating: components.open-graph (139μs)
      • composing: components.open-graph (49μs)
      • creating: site.headers.header (226μs)
      • composing: site.headers.header (51μs)
      • Illuminate\Cache\Events\CacheHit (1.32ms)
      • creating: components.footer (76μs)
      • composing: components.footer (79μs)
      • Illuminate\Cache\Events\CacheHit (670μs)
      • Illuminate\Cache\Events\CacheMissed (315μs)
      • Illuminate\Database\Events\StatementPrepared (802μs)
      • Illuminate\Database\Events\QueryExecuted (1.03ms)
      • eloquent.retrieved: App\Models\SubjectCat (112μs)
      • Illuminate\Cache\Events\KeyWritten (1.48ms)
      • Illuminate\Cache\Events\CacheHit (462μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (250μs)
      • Illuminate\Cache\Events\CacheHit (219μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (116μs)
      • Illuminate\Cache\Events\CacheHit (119μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • creating: components.forms.contact-us (173μs)
      • composing: components.forms.contact-us (115μs)
      • creating: components.forms.get-started (209μs)
      • composing: components.forms.get-started (57μs)
      • creating: components.forms.free-tool-download (80μs)
      • composing: components.forms.free-tool-download (41μs)
      • creating: components.forms.claim-free-worksheet (66μs)
      • composing: components.forms.claim-free-worksheet (40μs)
      • creating: components.forms.tutor-subscription-waitlist (63μs)
      • composing: components.forms.tutor-subscription-waitlist (38μs)
      • creating: components.forms.tutor-subscription-join (63μs)
      • composing: components.forms.tutor-subscription-join (37μs)
      • creating: components.forms.tutor-support (63μs)
      • composing: components.forms.tutor-support (37μs)
      • 312 x Illuminate\Cache\Events\CacheHit (15.73%)
        70.40ms
        19 x Illuminate\Database\Events\QueryExecuted (12.34%)
        55.22ms
        19 x Illuminate\Database\Events\StatementPrepared (6.63%)
        29.66ms
        10 x Illuminate\Cache\Events\KeyWritten (1.6%)
        7.16ms
        10 x Illuminate\Cache\Events\CacheMissed (1.51%)
        6.75ms
        1 x Illuminate\Foundation\Events\LocaleUpdated (0.99%)
        4.44ms
        1 x Illuminate\Routing\Events\Routing (0.3%)
        1.36ms
        1 x Illuminate\Database\Events\ConnectionEstablished (0.23%)
        1.04ms
        11 x eloquent.retrieved: App\Models\SubjectCat (0.22%)
        975μs
        1 x Illuminate\Routing\Events\RouteMatched (0.13%)
        576μs
        1 x eloquent.booting: App\Models\SubjectCat (0.12%)
        529μs
        1 x creating: components.canonical (0.09%)
        399μs
        1 x creating: site.layouts.app (0.08%)
        358μs
        7 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (0.06%)
        249μs
        2 x eloquent.retrieved: App\Models\Subject (0.05%)
        231μs
        1 x creating: site.headers.header (0.05%)
        226μs
        1 x creating: components.forms.get-started (0.05%)
        209μs
        1 x creating: homework.show (0.04%)
        200μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (0.04%)
        192μs
        1 x creating: components.breadcrumbs (0.04%)
        191μs
        1 x creating: components.forms.contact-us (0.04%)
        173μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (0.04%)
        166μs
        5 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.04%)
        166μs
        1 x creating: components.open-graph (0.03%)
        139μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.03%)
        131μs
        1 x composing: components.forms.contact-us (0.03%)
        115μs
        1 x eloquent.booting: App\Models\Subject (0.02%)
        103μs
        1 x composing: components.breadcrumbs (0.02%)
        83μs
        1 x creating: components.forms.free-tool-download (0.02%)
        80μs
        1 x composing: homework.show (0.02%)
        79μs
        1 x composing: components.canonical (0.02%)
        79μs
        1 x composing: components.footer (0.02%)
        79μs
        1 x creating: components.footer (0.02%)
        76μs
        1 x creating: components.forms.claim-free-worksheet (0.01%)
        66μs
        1 x creating: components.forms.tutor-subscription-waitlist (0.01%)
        63μs
        1 x creating: components.forms.tutor-subscription-join (0.01%)
        63μs
        1 x creating: components.forms.tutor-support (0.01%)
        63μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.01%)
        59μs
        1 x composing: components.forms.get-started (0.01%)
        57μs
        1 x composing: site.headers.header (0.01%)
        51μs
        1 x composing: components.open-graph (0.01%)
        49μs
        1 x eloquent.booted: App\Models\Subject (0.01%)
        44μs
        1 x eloquent.booted: App\Models\SubjectCat (0.01%)
        44μs
        1 x composing: components.forms.free-tool-download (0.01%)
        41μs
        1 x composing: components.forms.claim-free-worksheet (0.01%)
        40μs
        1 x composing: components.forms.tutor-subscription-waitlist (0.01%)
        38μs
        1 x composing: components.forms.tutor-subscription-join (0.01%)
        37μs
        1 x composing: components.forms.tutor-support (0.01%)
        37μ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
      19 statements were executed, 5 of which were duplicates, 14 unique. Show only duplicated70.93ms
      • 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` = '35984' limit 1
        8.85mstwenty4_siteHomeworkLibraryController.php#97
        Bindings
        • 0: published
        • 1: 0
        • 2: 35984
        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.7mstwenty4_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 (35984)
        7.78mstwenty4_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.36mstwenty4_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` <> 35984 and `subject` = 16 and `status` = 'published' and `price` > 0 order by RAND() limit 6
        32.45mstwenty4_siteHomeworkLibraryRepository.php#30
        Bindings
        • 0: 35984
        • 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.63mstwenty4_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` = 35984 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'question' order by `order` asc, `id` asc
        1.14mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 35984
        • 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` = 35984 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'teaser' order by `order` asc, `id` asc
        1.43mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 35984
        • 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` = 35984 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'solution' order by `order` asc, `id` asc
        1.27mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 35984
        • 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
        960μstwenty4_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.19mstwenty4_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.16mstwenty4_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.21mstwenty4_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` = 33 limit 1
        2.76mstwenty4_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.19mstwenty4_siteSubject.php#100
        Bindings
        • 0: 11
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 5 limit 1
        1.17mstwenty4_siteSubject.php#100
        Bindings
        • 0: 5
        Backtrace
        • 18. app/Models/Subject.php:100
        • 19. vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • 20. vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:419
        • 22. app/Models/Subject.php:101
        • 34. vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
      • select * from `subject_cats` where `subject_cats`.`id` = 34 limit 1
        1.25mstwenty4_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.16mstwenty4_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.27mstwenty4_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
          9jG6hqb1HGqRhacWfSJ95jSJBb1vWhe72uDUejog
          utm_source
          direct
          redirectUrl
          /college-homework-library/Computer-Science/C-Family-Programming/35984
          _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/35984
          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-680df70f-6b5725047fcfca421bcdc08f" ] "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.145.0.168" ] "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 09:21:20 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6Im1ud2dDNm1PbE5SeENlSEx1aDFXRlE9PSIsInZhbHVlIjoiWDhvcjM1aTk5MlNlKzM5aDhGUjdEK25tdFA3QmhUbFV2M1dUZndreHN2NXBVc2MxUUFWMEdIVmc3Q3p3bmY2UGUvWms5dWRFK3ZiS0hwL1hUYjE1T2FUZVpmQUZHWkI0S0ZYbE9wbVF2RTVOYnNSbUNZNnBrUGRnMFJnS1FVbjIiLCJtYWMiOiI0ZTFkMTNhOTNmZmVmNjA2ZjFhNjhlNjYxNGMwYjU3NzFiMzE4NjA2N2FjYmQwMjYwYmNlM2I3N2Q5MjA2Mjg5IiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 11:21:20 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; samesite=laxXSRF-TOKEN=eyJpdiI6Im1ud2dDNm1PbE5SeENlSEx1aDFXRlE9PSIsInZhbHVlIjoiWDhvcjM1aTk5MlNlKzM5aDhGUjdEK25tdFA3QmhUbFV2M1dUZndreHN2NXBVc2MxUUFWMEdIVmc3Q3p3bmY2UGUvWms5d" 1 => "24houranswers_session=eyJpdiI6IklLN1o5aUJpYURBT0E0ZmpiaFJIUHc9PSIsInZhbHVlIjoiT25WOXN4eVc1SWdZdVVGNzV2SnNFQUR4YmM1RmlOWTltS2VxTThDTUNvRUdDOGk1NlZ4TFpmUkF6Wmx2TG5CVFZ3YmNSOG5WWjNLOVh4Z3BBUU9wbEVJRkQ5OU5FeGtNbklWQVJ4MHZ2dVNNdG9GbFdoMVpONjRzK2NLc1V6bjciLCJtYWMiOiI4OTZjMTNkMzdkMzZjZjE1NzQ5ZTE1ODdmMzFkZGU5Y2NlYWQzNDY5NjQ2ZTUxMDEzYmM2OTk1ZTQ2ZGNiYTE3IiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 11:21:20 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; httponly; samesite=lax24houranswers_session=eyJpdiI6IklLN1o5aUJpYURBT0E0ZmpiaFJIUHc9PSIsInZhbHVlIjoiT25WOXN4eVc1SWdZdVVGNzV2SnNFQUR4YmM1RmlOWTltS2VxTThDTUNvRUdDOGk1NlZ4TFpmUkF6Wmx2TG" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6Im1ud2dDNm1PbE5SeENlSEx1aDFXRlE9PSIsInZhbHVlIjoiWDhvcjM1aTk5MlNlKzM5aDhGUjdEK25tdFA3QmhUbFV2M1dUZndreHN2NXBVc2MxUUFWMEdIVmc3Q3p3bmY2UGUvWms5dWRFK3ZiS0hwL1hUYjE1T2FUZVpmQUZHWkI0S0ZYbE9wbVF2RTVOYnNSbUNZNnBrUGRnMFJnS1FVbjIiLCJtYWMiOiI0ZTFkMTNhOTNmZmVmNjA2ZjFhNjhlNjYxNGMwYjU3NzFiMzE4NjA2N2FjYmQwMjYwYmNlM2I3N2Q5MjA2Mjg5IiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 11:21:20 GMT; domain=.24houranswers.com; path=/XSRF-TOKEN=eyJpdiI6Im1ud2dDNm1PbE5SeENlSEx1aDFXRlE9PSIsInZhbHVlIjoiWDhvcjM1aTk5MlNlKzM5aDhGUjdEK25tdFA3QmhUbFV2M1dUZndreHN2NXBVc2MxUUFWMEdIVmc3Q3p3bmY2UGUvWms5d" 1 => "24houranswers_session=eyJpdiI6IklLN1o5aUJpYURBT0E0ZmpiaFJIUHc9PSIsInZhbHVlIjoiT25WOXN4eVc1SWdZdVVGNzV2SnNFQUR4YmM1RmlOWTltS2VxTThDTUNvRUdDOGk1NlZ4TFpmUkF6Wmx2TG5CVFZ3YmNSOG5WWjNLOVh4Z3BBUU9wbEVJRkQ5OU5FeGtNbklWQVJ4MHZ2dVNNdG9GbFdoMVpONjRzK2NLc1V6bjciLCJtYWMiOiI4OTZjMTNkMzdkMzZjZjE1NzQ5ZTE1ODdmMzFkZGU5Y2NlYWQzNDY5NjQ2ZTUxMDEzYmM2OTk1ZTQ2ZGNiYTE3IiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 11:21:20 GMT; domain=.24houranswers.com; path=/; httponly24houranswers_session=eyJpdiI6IklLN1o5aUJpYURBT0E0ZmpiaFJIUHc9PSIsInZhbHVlIjoiT25WOXN4eVc1SWdZdVVGNzV2SnNFQUR4YmM1RmlOWTltS2VxTThDTUNvRUdDOGk1NlZ4TFpmUkF6Wmx2TG" ] ]
          session_attributes
          0 of 0
          array:6 [ "_token" => "9jG6hqb1HGqRhacWfSJ95jSJBb1vWhe72uDUejog" "utm_source" => "direct" "redirectUrl" => "/college-homework-library/Computer-Science/C-Family-Programming/35984" "_previous" => array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Science/C-Family-Programming/35984" ] "_flash" => array:2 [ "old" => [] "new" => [] ] "PHPDEBUGBAR_STACK_DATA" => [] ]