Question
Purpose:
* Demonstrate ability to clip lines using the Cohen-Sutherland algorithm.
* Demonstrate ability to write some additional (simple) C code.

#----------------------------------------------------------------------
Background:

* The Cohen-Sutherland algorithm is explained in the handout posted to Canvas in the Modules section.
* The goal for this homework is to read lines (from a ".line" file) and clip them using the Cohen-Sutherland algorithm and the supplied view parameters (from a ".view" file). The clipped lines are then printed (along with the canvas size) to create a viewable ".sdf" file.

* Line files have the following format. (The basic structure is the same as the SVFM file, just with different entries.)

    - Blank lines are to be ignored. (A blank line has no characters at all or is just whitespace.)

    - Lines with '#' as the first non-whitespace character are comments and are to be ignored.

    - A line with an 'l' as the first non-whitespace character is a line line (ha!). There will be four numbers following the 'l': the p1X, p1Y, p2X, p2Y coordinates of the tw endpoints that define the line. The 'l' and the coordinates will be separated by whitespace. Example:

       l 237.4    123   8      96.1

      Notice that the coodinates may be either integer or floating point numbers.

    - If a line starts with any other non-whitespace character, it should be silently ignored. ('silently' means you should not print an error message. Just ignore it.)

* View files are as described in the previous homework.

#----------------------------------------------------------------------
Tasks:

    1. There are a number of TODO: comments in the .c files that need to be replaced with the appropriate C code. (Do NOT change anything in any .c file except to update the headers and to replace a TODO comment with your code.)

    Here's a list:

hmwk_03.c:46: // TODO: Read each line from the proposed line file (it was ...

line.c:24:    // TODO: Implement the clipLine algorithm here. ...
line.c:61:    // TODO: Print an 'l' line for the given Line l. ...
line.c:67:    // TODO: Implement the region code computation here. ...

    The Template/view.c file also has a couple of TODO spots in it, but those are left over from Homework 02. Just use the view.c file you created for that previous homework.

7. When you have done so, compile and run everything as shown.

    Notice that there are two input files being given to hmwk_03, the first is the line file (Tests/pyramid_01.line) and the second is the view file (Tests/pyramid_01.view).

    You should observe the given output.

$ gcc -o hmwk_03 hmwk_03.c line.c view.c
$ ./hmwk_03 Tests/pyramid_01.line Tests/pyramid_01.view
#- View parameters ---------------------
# Bézier resolution :    0
# Euler angles      :      0.000000,      0.000000,      0.000000
# World limits      :    -1.000000,    -1.000000,      1.000000,      1.000000
# Camera distance   :      0.000000
# Canvas width      :   500
# Canvas height    :   400
# Screen limits    :      0.100000,      0.100000,      0.900000,      0.900000
# Portal pixels    :   50, 450,   40, 360
#---------------------------------------
c 500 400
l    50.0    40.0    450.0    40.0
l    450.0    40.0    450.0    360.0
l    450.0    360.0    50.0    360.0
l    50.0    360.0    50.0    40.0
l    410.0    328.0    410.0    200.0
l    410.0    200.0    250.0    200.0
l    250.0    200.0    410.0    328.0
l    250.0    328.0    410.0    328.0
l    410.0    328.0    250.0    200.0
l    250.0    200.0    250.0    328.0
l    410.0    200.0    330.0    264.0
l    330.0    264.0    250.0    200.0
l    250.0    200.0    410.0    200.0
l    330.0    264.0    250.0    328.0
l    250.0    328.0    250.0    200.0
l    250.0    200.0    330.0    264.0
l    410.0    200.0    410.0    328.0
l    410.0    328.0    330.0    264.0
l    330.0    264.0    410.0    200.0
l    250.0    328.0    330.0    264.0
l    330.0    264.0    410.0    328.0
l    410.0    328.0    250.0    328.0
#- Line statistics ---------------------
#    22 lines drawn.
#      0 lines rejected.
#---------------------------------------
$

    Your output should match this EXACTLY. 'EXACTLY' means just that. It should be the same character-by-character. When your program is tested, it will be run against other data files and the output compared using diff.

8. There are a number of line files in Tests/ along with a view file for each. Run all of these tests and compare your results to those given in Results/. Your output should match EXACTLY.

9. Use diff (fc on Windows) to compare your output to that of the results file. They should match with NO DIFFERENCES.
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 <ctype.h>
#include <stdio.h>
#include <stdlib.h>

#include "line.h"
#include "view.h"

//----------------------------------------------------------
int main( int argc, char *argv[] )
{
if ( argc != 3 ) {
    fprintf( stderr, "Usage: %s <lineFileName> <viewFileName\n", argv[0] );
    exit( 1 );
}

char *lineFileName = argv[1];
char *viewFileName = argv[2];

//--------------------------------------
// Load the view information. We're interested in the canvas
// size and the portal dimensions (both measured in pixels).
View *v;

v = loadView( viewFileName );
dumpView( v );

//--------------------------------------
// Print the canvas size for the SDF file.
printf( "c %4d %4d\n", v->m_width, v->m_height );

//--------------------------------------
// Open the file with proposed lines to draw.
FILE *fp = fopen( lineFileName
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
$45.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 Version442msRequest Duration45MBMemory UsageGET college-homework-library/{category}/{subject}/{id}Route
    • Booting (257ms)time
    • Application (184ms)time
    • 1 x Booting (58.27%)
      257ms
      1 x Application (41.73%)
      184ms
      • Illuminate\Routing\Events\Routing (716μs)
      • Illuminate\Routing\Events\RouteMatched (371μs)
      • Illuminate\Foundation\Events\LocaleUpdated (3.89ms)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (253μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (199μs)
      • Illuminate\Database\Events\ConnectionEstablished (1.18ms)
      • Illuminate\Database\Events\StatementPrepared (7.34ms)
      • Illuminate\Database\Events\QueryExecuted (1.28ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (130μs)
      • eloquent.booting: App\Models\Subject (128μs)
      • eloquent.booted: App\Models\Subject (61μs)
      • Illuminate\Database\Events\StatementPrepared (1.97ms)
      • Illuminate\Database\Events\QueryExecuted (1.25ms)
      • eloquent.retrieved: App\Models\Subject (141μs)
      • eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (151μs)
      • eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (53μs)
      • Illuminate\Database\Events\StatementPrepared (698μs)
      • Illuminate\Database\Events\QueryExecuted (2.15ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (167μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (22μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (11μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (10μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (9μs)
      • eloquent.booting: App\Models\SubjectCat (803μs)
      • eloquent.booted: App\Models\SubjectCat (63μs)
      • Illuminate\Database\Events\StatementPrepared (753μs)
      • Illuminate\Database\Events\QueryExecuted (1.04ms)
      • eloquent.retrieved: App\Models\SubjectCat (118μs)
      • Illuminate\Cache\Events\CacheHit (12.08ms)
      • Illuminate\Cache\Events\CacheMissed (210μs)
      • Illuminate\Database\Events\StatementPrepared (872μs)
      • Illuminate\Database\Events\QueryExecuted (25.79ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (91μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (16μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (8μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (6μs)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (5μs)
      • Illuminate\Database\Events\StatementPrepared (886μs)
      • Illuminate\Database\Events\QueryExecuted (1.43ms)
      • eloquent.retrieved: App\Models\Subject (474μs)
      • Illuminate\Cache\Events\KeyWritten (2.08ms)
      • Illuminate\Database\Events\StatementPrepared (2.83ms)
      • Illuminate\Database\Events\QueryExecuted (1.55ms)
      • Illuminate\Database\Events\StatementPrepared (999μs)
      • Illuminate\Database\Events\QueryExecuted (1.19ms)
      • Illuminate\Database\Events\StatementPrepared (701μs)
      • Illuminate\Database\Events\QueryExecuted (1.05ms)
      • eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (61μs)
      • Illuminate\Cache\Events\CacheHit (690μs)
      • creating: homework.show (484μs)
      • composing: homework.show (104μs)
      • creating: components.breadcrumbs (259μs)
      • composing: components.breadcrumbs (121μs)
      • Illuminate\Database\Events\StatementPrepared (1.23ms)
      • Illuminate\Database\Events\QueryExecuted (917μs)
      • eloquent.retrieved: App\Models\SubjectCat (85μs)
      • Illuminate\Cache\Events\CacheMissed (5.37ms)
      • Illuminate\Database\Events\StatementPrepared (799μs)
      • Illuminate\Database\Events\QueryExecuted (1.37ms)
      • eloquent.retrieved: App\Models\SubjectCat (126μs)
      • Illuminate\Cache\Events\KeyWritten (380μs)
      • Illuminate\Cache\Events\CacheHit (262μs)
      • Illuminate\Cache\Events\CacheHit (278μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (310μs)
      • Illuminate\Cache\Events\CacheHit (151μs)
      • Illuminate\Cache\Events\CacheHit (147μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (110μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheMissed (217μs)
      • Illuminate\Database\Events\StatementPrepared (803μs)
      • Illuminate\Database\Events\QueryExecuted (937μs)
      • eloquent.retrieved: App\Models\SubjectCat (75μs)
      • Illuminate\Cache\Events\KeyWritten (324μs)
      • Illuminate\Cache\Events\CacheHit (229μs)
      • Illuminate\Cache\Events\CacheHit (427μs)
      • Illuminate\Cache\Events\CacheHit (267μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (134μs)
      • Illuminate\Cache\Events\CacheHit (141μs)
      • Illuminate\Cache\Events\CacheHit (148μs)
      • Illuminate\Cache\Events\CacheMissed (200μs)
      • Illuminate\Database\Events\StatementPrepared (675μs)
      • Illuminate\Database\Events\QueryExecuted (1.26ms)
      • eloquent.retrieved: App\Models\SubjectCat (81μs)
      • Illuminate\Cache\Events\KeyWritten (335μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (529μs)
      • Illuminate\Cache\Events\CacheHit (280μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (264μs)
      • Illuminate\Cache\Events\CacheHit (146μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (137μs)
      • Illuminate\Cache\Events\CacheHit (103μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (97μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (121μs)
      • Illuminate\Cache\Events\CacheHit (237μs)
      • Illuminate\Cache\Events\CacheHit (145μs)
      • Illuminate\Cache\Events\CacheHit (102μs)
      • Illuminate\Cache\Events\CacheHit (130μs)
      • Illuminate\Cache\Events\CacheHit (346μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (107μs)
      • Illuminate\Cache\Events\CacheHit (427μs)
      • Illuminate\Cache\Events\CacheHit (548μs)
      • Illuminate\Cache\Events\CacheHit (147μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (135μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheMissed (318μs)
      • Illuminate\Database\Events\StatementPrepared (700μs)
      • Illuminate\Database\Events\QueryExecuted (965μs)
      • eloquent.retrieved: App\Models\SubjectCat (69μs)
      • Illuminate\Cache\Events\KeyWritten (330μs)
      • Illuminate\Cache\Events\CacheHit (314μs)
      • Illuminate\Cache\Events\CacheHit (228μs)
      • Illuminate\Cache\Events\CacheHit (145μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (118μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (111μs)
      • Illuminate\Cache\Events\CacheHit (341μs)
      • Illuminate\Cache\Events\CacheHit (147μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (115μs)
      • Illuminate\Cache\Events\CacheHit (126μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (144μs)
      • Illuminate\Cache\Events\CacheHit (117μs)
      • Illuminate\Cache\Events\CacheHit (133μs)
      • Illuminate\Cache\Events\CacheHit (109μs)
      • Illuminate\Cache\Events\CacheHit (124μs)
      • Illuminate\Cache\Events\CacheHit (108μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (122μs)
      • Illuminate\Cache\Events\CacheHit (128μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (106μs)
      • Illuminate\Cache\Events\CacheHit (123μs)
      • Illuminate\Cache\Events\CacheHit (100μs)
      • Illuminate\Cache\Events\CacheHit (120μs)
      • Illuminate\Cache\Events\CacheHit (98μs)
      • Illuminate\Cache\Events\CacheHit (127μs)
      • Illuminate\Cache\Events\CacheHit (129μs)
      • Illuminate\Cache\Events\CacheMissed (211μs)
      • Illuminate\Database\Events\StatementPrepared (783μs)
      • Illuminate\Database\Events\QueryExecuted (1.2ms)
      • eloquent.retrieved: App\Models\SubjectCat (85μs)
      • Illuminate\Cache\Events\KeyWritten (317μs)
      • Illuminate\Cache\Events\CacheHit (789μs)
      • Illuminate\Cache\Events\CacheHit (293μs)
      • Illuminate\Cache\Events\CacheHit (135μs)
      • Illuminate\Cache\Events\CacheHit (135μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheMissed (207μs)
      • Illuminate\Database\Events\StatementPrepared (686μs)
      • Illuminate\Database\Events\QueryExecuted (1.06ms)
      • eloquent.retrieved: App\Models\SubjectCat (149μs)
      • Illuminate\Cache\Events\KeyWritten (677μs)
      • Illuminate\Cache\Events\CacheHit (1.79ms)
      • Illuminate\Cache\Events\CacheHit (184μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (151μs)
      • Illuminate\Cache\Events\CacheHit (132μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (114μs)
      • Illuminate\Cache\Events\CacheHit (140μs)
      • Illuminate\Cache\Events\CacheHit (105μs)
      • Illuminate\Cache\Events\CacheHit (131μs)
      • Illuminate\Cache\Events\CacheHit (112μs)
      • Illuminate\Cache\Events\CacheHit (1.16ms)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (254μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (206μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheMissed (311μs)
      • Illuminate\Database\Events\StatementPrepared (828μs)
      • Illuminate\Database\Events\QueryExecuted (1.04ms)
      • eloquent.retrieved: App\Models\SubjectCat (103μs)
      • Illuminate\Cache\Events\KeyWritten (378μs)
      • Illuminate\Cache\Events\CacheHit (320μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (318μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (201μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (266μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (158μs)
      • Illuminate\Cache\Events\CacheHit (208μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (191μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheMissed (302μs)
      • Illuminate\Database\Events\StatementPrepared (875μs)
      • Illuminate\Database\Events\QueryExecuted (1.19ms)
      • eloquent.retrieved: App\Models\SubjectCat (103μs)
      • Illuminate\Cache\Events\KeyWritten (413μs)
      • Illuminate\Cache\Events\CacheHit (212μs)
      • Illuminate\Cache\Events\CacheHit (207μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (220μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (251μs)
      • Illuminate\Cache\Events\CacheHit (171μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (235μs)
      • Illuminate\Cache\Events\CacheHit (194μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (149μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (174μs)
      • Illuminate\Cache\Events\CacheHit (232μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (993μs)
      • Illuminate\Cache\Events\CacheHit (161μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (164μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (170μs)
      • Illuminate\Cache\Events\CacheHit (189μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (187μs)
      • Illuminate\Cache\Events\CacheHit (271μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (213μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (222μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (153μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (175μs)
      • Illuminate\Cache\Events\CacheHit (155μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (151μs)
      • Illuminate\Cache\Events\CacheHit (226μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (186μs)
      • Illuminate\Cache\Events\CacheHit (159μs)
      • Illuminate\Cache\Events\CacheHit (183μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (176μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (177μs)
      • Illuminate\Cache\Events\CacheHit (163μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (198μs)
      • Illuminate\Cache\Events\CacheHit (168μs)
      • Illuminate\Cache\Events\CacheHit (188μs)
      • Illuminate\Cache\Events\CacheHit (167μs)
      • Illuminate\Cache\Events\CacheHit (180μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (221μs)
      • Illuminate\Cache\Events\CacheHit (227μs)
      • Illuminate\Cache\Events\CacheHit (179μs)
      • Illuminate\Cache\Events\CacheHit (162μs)
      • Illuminate\Cache\Events\CacheHit (173μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (211μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (169μs)
      • Illuminate\Cache\Events\CacheHit (152μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (190μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (200μs)
      • Illuminate\Cache\Events\CacheHit (157μs)
      • Illuminate\Cache\Events\CacheMissed (287μs)
      • Illuminate\Database\Events\StatementPrepared (839μs)
      • Illuminate\Database\Events\QueryExecuted (1.15ms)
      • eloquent.retrieved: App\Models\SubjectCat (102μs)
      • Illuminate\Cache\Events\KeyWritten (369μs)
      • Illuminate\Cache\Events\CacheHit (193μs)
      • Illuminate\Cache\Events\CacheHit (202μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (178μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (215μs)
      • Illuminate\Cache\Events\CacheHit (165μs)
      • Illuminate\Cache\Events\CacheHit (199μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • Illuminate\Cache\Events\CacheHit (185μs)
      • Illuminate\Cache\Events\CacheHit (210μs)
      • Illuminate\Cache\Events\CacheHit (182μs)
      • Illuminate\Cache\Events\CacheHit (156μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (160μs)
      • Illuminate\Cache\Events\CacheHit (181μs)
      • Illuminate\Cache\Events\CacheHit (166μs)
      • creating: site.layouts.app (557μs)
      • composing: site.layouts.app (24μs)
      • creating: components.canonical (557μs)
      • composing: components.canonical (119μs)
      • creating: components.open-graph (245μs)
      • composing: components.open-graph (90μs)
      • creating: site.headers.header (346μs)
      • composing: site.headers.header (84μs)
      • Illuminate\Cache\Events\CacheHit (1.84ms)
      • creating: components.footer (65μs)
      • composing: components.footer (83μs)
      • Illuminate\Cache\Events\CacheHit (922μs)
      • Illuminate\Cache\Events\CacheMissed (463μs)
      • Illuminate\Database\Events\StatementPrepared (1.18ms)
      • Illuminate\Database\Events\QueryExecuted (959μs)
      • eloquent.retrieved: App\Models\SubjectCat (94μs)
      • Illuminate\Cache\Events\KeyWritten (311μs)
      • Illuminate\Cache\Events\CacheHit (518μs)
      • Illuminate\Cache\Events\CacheHit (230μs)
      • Illuminate\Cache\Events\CacheHit (203μs)
      • Illuminate\Cache\Events\CacheHit (192μs)
      • Illuminate\Cache\Events\CacheHit (204μs)
      • Illuminate\Cache\Events\CacheHit (298μs)
      • Illuminate\Cache\Events\CacheHit (337μs)
      • Illuminate\Cache\Events\CacheHit (205μs)
      • Illuminate\Cache\Events\CacheHit (195μs)
      • Illuminate\Cache\Events\CacheHit (197μs)
      • Illuminate\Cache\Events\CacheHit (196μs)
      • Illuminate\Cache\Events\CacheHit (248μs)
      • creating: components.forms.contact-us (305μs)
      • composing: components.forms.contact-us (185μs)
      • creating: components.forms.get-started (207μs)
      • composing: components.forms.get-started (86μs)
      • creating: components.forms.free-tool-download (148μs)
      • composing: components.forms.free-tool-download (76μs)
      • creating: components.forms.claim-free-worksheet (158μs)
      • composing: components.forms.claim-free-worksheet (74μs)
      • creating: components.forms.tutor-subscription-waitlist (150μs)
      • composing: components.forms.tutor-subscription-waitlist (71μs)
      • creating: components.forms.tutor-subscription-join (124μs)
      • composing: components.forms.tutor-subscription-join (65μs)
      • creating: components.forms.tutor-support (121μs)
      • composing: components.forms.tutor-support (65μs)
      • 311 x Illuminate\Cache\Events\CacheHit (16.82%)
        74.33ms
        20 x Illuminate\Database\Events\QueryExecuted (11.04%)
        48.76ms
        20 x Illuminate\Database\Events\StatementPrepared (5.99%)
        26.46ms
        11 x Illuminate\Cache\Events\CacheMissed (1.83%)
        8.10ms
        11 x Illuminate\Cache\Events\KeyWritten (1.34%)
        5.91ms
        1 x Illuminate\Foundation\Events\LocaleUpdated (0.88%)
        3.89ms
        12 x eloquent.retrieved: App\Models\SubjectCat (0.27%)
        1.19ms
        1 x Illuminate\Database\Events\ConnectionEstablished (0.27%)
        1.18ms
        1 x eloquent.booting: App\Models\SubjectCat (0.18%)
        803μs
        1 x Illuminate\Routing\Events\Routing (0.16%)
        716μs
        2 x eloquent.retrieved: App\Models\Subject (0.14%)
        615μs
        1 x creating: site.layouts.app (0.13%)
        557μs
        1 x creating: components.canonical (0.13%)
        557μs
        1 x creating: homework.show (0.11%)
        484μs
        1 x Illuminate\Routing\Events\RouteMatched (0.08%)
        371μs
        1 x creating: site.headers.header (0.08%)
        346μs
        1 x creating: components.forms.contact-us (0.07%)
        305μs
        6 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.06%)
        280μs
        7 x eloquent.retrieved: App\Models\HomeworkLibrary\HomeworkLibrary (0.06%)
        264μs
        1 x creating: components.breadcrumbs (0.06%)
        259μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibrary (0.06%)
        253μs
        1 x creating: components.open-graph (0.06%)
        245μs
        1 x creating: components.forms.get-started (0.05%)
        207μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibrary (0.05%)
        199μs
        1 x composing: components.forms.contact-us (0.04%)
        185μs
        1 x creating: components.forms.claim-free-worksheet (0.04%)
        158μs
        1 x eloquent.booting: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.03%)
        151μs
        1 x creating: components.forms.tutor-subscription-waitlist (0.03%)
        150μs
        1 x creating: components.forms.free-tool-download (0.03%)
        148μs
        1 x eloquent.booting: App\Models\Subject (0.03%)
        128μs
        1 x creating: components.forms.tutor-subscription-join (0.03%)
        124μs
        1 x composing: components.breadcrumbs (0.03%)
        121μs
        1 x creating: components.forms.tutor-support (0.03%)
        121μs
        1 x composing: components.canonical (0.03%)
        119μs
        1 x composing: homework.show (0.02%)
        104μs
        1 x composing: components.open-graph (0.02%)
        90μs
        1 x composing: components.forms.get-started (0.02%)
        86μs
        1 x composing: site.headers.header (0.02%)
        84μs
        1 x composing: components.footer (0.02%)
        83μs
        1 x composing: components.forms.free-tool-download (0.02%)
        76μs
        1 x composing: components.forms.claim-free-worksheet (0.02%)
        74μs
        1 x composing: components.forms.tutor-subscription-waitlist (0.02%)
        71μs
        1 x composing: components.forms.tutor-support (0.01%)
        65μs
        1 x creating: components.footer (0.01%)
        65μs
        1 x composing: components.forms.tutor-subscription-join (0.01%)
        65μs
        1 x eloquent.booted: App\Models\SubjectCat (0.01%)
        63μs
        1 x eloquent.booted: App\Models\Subject (0.01%)
        61μs
        1 x eloquent.booted: App\Models\HomeworkLibrary\HomeworkLibraryFile (0.01%)
        53μs
        1 x composing: site.layouts.app (0.01%)
        24μ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 duplicated57.3ms
      • 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` = '59581' limit 1
        7.63mstwenty4_siteHomeworkLibraryController.php#97
        Bindings
        • 0: published
        • 1: 0
        • 2: 59581
        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.31mstwenty4_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 (59581)
        2.11mstwenty4_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.06mstwenty4_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` <> 59581 and `subject` = 16 and `status` = 'published' and `price` > 0 order by RAND() limit 6
        25.94mstwenty4_siteHomeworkLibraryRepository.php#30
        Bindings
        • 0: 59581
        • 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.61mstwenty4_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` = 59581 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'question' order by `order` asc, `id` asc
        2.18mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 59581
        • 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` = 59581 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'teaser' order by `order` asc, `id` asc
        1.33mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 59581
        • 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` = 59581 and `solutionslibrary_files`.`solutionlib_id` is not null and `publish` = 'solution' order by `order` asc, `id` asc
        1.14mstwenty4_siteHomeworkLibrary.php#260
        Bindings
        • 0: 59581
        • 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.1mstwenty4_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.23mstwenty4_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.08mstwenty4_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.07mstwenty4_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.14mstwenty4_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.31mstwenty4_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.04mstwenty4_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.14mstwenty4_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.22mstwenty4_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.14mstwenty4_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.52mstwenty4_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
      6HomeworkLibraryFile.php
      App\Models\Subject
      2Subject.php
          _token
          i7lNWTyN6JQksuMzqZDKjbjjkxWHU8Uu30LdSWiV
          utm_source
          direct
          redirectUrl
          /college-homework-library/Computer-Science/C-Family-Programming/59581
          _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/59581
          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-680debe7-2d3533726a1dbf0a0969e0b4" ] "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.144.211.57" ] "content-length" => array:1 [ 0 => "" ] "content-type" => array:1 [ 0 => "" ] ]
          request_cookies
          []
          
          response_headers
          0 of 0
          array:5 [ "content-type" => array:1 [ 0 => "text/html; charset=UTF-8" ] "cache-control" => array:1 [ 0 => "no-cache, private" ] "date" => array:1 [ 0 => "Sun, 27 Apr 2025 08:33:44 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IkhjTmdpbTB5UVBJd0p5RTViNGxwSVE9PSIsInZhbHVlIjoiVjk3bTRTdVdPZHpidW5uNmdBd1BpVG5uY2F2a2Y1Wm8rMTZLenFZYnZPdFJNVTg5ejJNd1pGQjVObU5ZaWtVRHI5bzIydDZiK0FIMWEvakl0WFZlUmt4eEEzaTBQZWhzTlRvT3J6YmQwUU0xNTJyeU5PVzhlNlN1d01NT2UzMWEiLCJtYWMiOiJjYTRiNGNhNmQzOWEzZDMzNTE2NTE3MTdkZWEyN2Q5YTdmNmI3ZmVjNGQ0ZmU4MmM1ZTQxMGExMDg5MWNjZjg5IiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 10:33:44 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; samesite=laxXSRF-TOKEN=eyJpdiI6IkhjTmdpbTB5UVBJd0p5RTViNGxwSVE9PSIsInZhbHVlIjoiVjk3bTRTdVdPZHpidW5uNmdBd1BpVG5uY2F2a2Y1Wm8rMTZLenFZYnZPdFJNVTg5ejJNd1pGQjVObU5ZaWtVRHI5bzIyd" 1 => "24houranswers_session=eyJpdiI6IkwrNVJtS05mOWlNNmJtZVNadkU5ZUE9PSIsInZhbHVlIjoic3BBckYvZHQ1eTJOZm4vT1o0NXNmSU9vVW82VGYxODFuYnp1NEo2ZFVQSklBT0U3a0ozOWhBSjIrdHBxN21vTFN6enJ6RzU2b1JuRE1yWHJldE5uUUI2aTVCUnVON29TUmVFdGxRNlU0elA4eUI2YWpualBvUEhuSGk3bG5NTHEiLCJtYWMiOiJhZjQ2MTlkYTk1YjkxZGNlYTkzOTBmYjllNDY5MDczYjAyZTkyNGUwNDExYWU5ZDNmZWJlNGMzNDVjZmNmMWQzIiwidGFnIjoiIn0%3D; expires=Sun, 27 Apr 2025 10:33:44 GMT; Max-Age=7200; path=/; domain=.24houranswers.com; httponly; samesite=lax24houranswers_session=eyJpdiI6IkwrNVJtS05mOWlNNmJtZVNadkU5ZUE9PSIsInZhbHVlIjoic3BBckYvZHQ1eTJOZm4vT1o0NXNmSU9vVW82VGYxODFuYnp1NEo2ZFVQSklBT0U3a0ozOWhBSjIrdHBxN2" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6IkhjTmdpbTB5UVBJd0p5RTViNGxwSVE9PSIsInZhbHVlIjoiVjk3bTRTdVdPZHpidW5uNmdBd1BpVG5uY2F2a2Y1Wm8rMTZLenFZYnZPdFJNVTg5ejJNd1pGQjVObU5ZaWtVRHI5bzIydDZiK0FIMWEvakl0WFZlUmt4eEEzaTBQZWhzTlRvT3J6YmQwUU0xNTJyeU5PVzhlNlN1d01NT2UzMWEiLCJtYWMiOiJjYTRiNGNhNmQzOWEzZDMzNTE2NTE3MTdkZWEyN2Q5YTdmNmI3ZmVjNGQ0ZmU4MmM1ZTQxMGExMDg5MWNjZjg5IiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 10:33:44 GMT; domain=.24houranswers.com; path=/XSRF-TOKEN=eyJpdiI6IkhjTmdpbTB5UVBJd0p5RTViNGxwSVE9PSIsInZhbHVlIjoiVjk3bTRTdVdPZHpidW5uNmdBd1BpVG5uY2F2a2Y1Wm8rMTZLenFZYnZPdFJNVTg5ejJNd1pGQjVObU5ZaWtVRHI5bzIyd" 1 => "24houranswers_session=eyJpdiI6IkwrNVJtS05mOWlNNmJtZVNadkU5ZUE9PSIsInZhbHVlIjoic3BBckYvZHQ1eTJOZm4vT1o0NXNmSU9vVW82VGYxODFuYnp1NEo2ZFVQSklBT0U3a0ozOWhBSjIrdHBxN21vTFN6enJ6RzU2b1JuRE1yWHJldE5uUUI2aTVCUnVON29TUmVFdGxRNlU0elA4eUI2YWpualBvUEhuSGk3bG5NTHEiLCJtYWMiOiJhZjQ2MTlkYTk1YjkxZGNlYTkzOTBmYjllNDY5MDczYjAyZTkyNGUwNDExYWU5ZDNmZWJlNGMzNDVjZmNmMWQzIiwidGFnIjoiIn0%3D; expires=Sun, 27-Apr-2025 10:33:44 GMT; domain=.24houranswers.com; path=/; httponly24houranswers_session=eyJpdiI6IkwrNVJtS05mOWlNNmJtZVNadkU5ZUE9PSIsInZhbHVlIjoic3BBckYvZHQ1eTJOZm4vT1o0NXNmSU9vVW82VGYxODFuYnp1NEo2ZFVQSklBT0U3a0ozOWhBSjIrdHBxN2" ] ]
          session_attributes
          0 of 0
          array:6 [ "_token" => "i7lNWTyN6JQksuMzqZDKjbjjkxWHU8Uu30LdSWiV" "utm_source" => "direct" "redirectUrl" => "/college-homework-library/Computer-Science/C-Family-Programming/59581" "_previous" => array:1 [ "url" => "https://staging.dev.24houranswers.com/college-homework-library/Computer-Science/C-Family-Programming/59581" ] "_flash" => array:2 [ "old" => [] "new" => [] ] "PHPDEBUGBAR_STACK_DATA" => [] ]