Illuminate \ View \ ViewException (E_ERROR)
Call to a member function getName() on null (View: /home/forge/pteducation.se/releases/20230711215519/resources/views/layouts/app.blade.php) (View: /home/forge/pteducation.se/releases/20230711215519/resources/views/layouts/app.blade.php)
Previous exceptions
  • Call to a member function getName() on null (View: /home/forge/pteducation.se/releases/20230711215519/resources/views/layouts/app.blade.php) (0)
  • Call to a member function getName() on null (0)
Illuminate\View\ViewException thrown with message "Call to a member function getName() on null (View: /home/forge/pteducation.se/releases/20230711215519/resources/views/layouts/app.blade.php) (View: /home/forge/pteducation.se/releases/20230711215519/resources/views/layouts/app.blade.php)" Stacktrace: #53 Illuminate\View\ViewException in /home/forge/pteducation.se/storage/framework/views/14e2e0fad63bd8e0ce1e04f502b151c65e247a91.php:54 #52 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:106 #51 Livewire\LivewireViewCompilerEngine:handleViewException in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:60 #50 Illuminate\View\ViewException in /home/forge/pteducation.se/storage/framework/views/14e2e0fad63bd8e0ce1e04f502b151c65e247a91.php:54 #49 Illuminate\View\Engines\CompilerEngine:handleViewException in /home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:106 #48 Livewire\LivewireViewCompilerEngine:handleViewException in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:60 #47 Error in /home/forge/pteducation.se/storage/framework/views/14e2e0fad63bd8e0ce1e04f502b151c65e247a91.php:54 #46 require in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:107 #45 Illuminate\Filesystem\Filesystem:Illuminate\Filesystem\{closure} in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:108 #44 Illuminate\Filesystem\Filesystem:getRequire in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58 #43 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:69 #42 Livewire\LivewireViewCompilerEngine:evaluatePath in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:61 #41 Illuminate\View\Engines\CompilerEngine:get in /home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:35 #40 Livewire\LivewireViewCompilerEngine:get in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php:139 #39 Illuminate\View\View:getContents in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php:122 #38 Illuminate\View\View:renderContents in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php:91 #37 Illuminate\View\View:render in /home/forge/pteducation.se/storage/framework/views/eef7028f52afafcf993c52e2003bb79c79717fc4.php:37 #36 require in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:107 #35 Illuminate\Filesystem\Filesystem:Illuminate\Filesystem\{closure} in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:108 #34 Illuminate\Filesystem\Filesystem:getRequire in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58 #33 Illuminate\View\Engines\PhpEngine:evaluatePath in /home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:69 #32 Livewire\LivewireViewCompilerEngine:evaluatePath in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:61 #31 Illuminate\View\Engines\CompilerEngine:get in /home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php:35 #30 Livewire\LivewireViewCompilerEngine:get in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php:139 #29 Illuminate\View\View:getContents in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php:122 #28 Illuminate\View\View:renderContents in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php:91 #27 Illuminate\View\View:render in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Http/Response.php:69 #26 Illuminate\Http\Response:setContent in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Http/Response.php:35 #25 Illuminate\Http\Response:__construct in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:55 #24 Illuminate\Routing\ResponseFactory:make in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php:85 #23 Illuminate\Routing\ResponseFactory:view in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:585 #22 Illuminate\Foundation\Exceptions\Handler:renderHttpException in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:490 #21 Illuminate\Foundation\Exceptions\Handler:prepareResponse in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php:356 #20 Illuminate\Foundation\Exceptions\Handler:render in /home/forge/pteducation.se/releases/20230711215519/app/Exceptions/Handler.php:47 #19 App\Exceptions\Handler:render in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:51 #18 Illuminate\Routing\Pipeline:handleException in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:130 #17 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/DisableBrowserCache.php:19 #16 Livewire\DisableBrowserCache:handle in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #15 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/pteducation.se/releases/20230711215519/vendor/spatie/laravel-cookie-consent/src/CookieConsentMiddleware.php:12 #14 Spatie\CookieConsent\CookieConsentMiddleware:handle in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 #12 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php:31 #11 Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull:handle in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 #9 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php:40 #8 Illuminate\Foundation\Http\Middleware\TrimStrings:handle in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 #6 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #5 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php:86 #4 Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance:handle in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167 #3 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline\{closure} in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103 #2 Illuminate\Pipeline\Pipeline:then in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:142 #1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:111 #0 Illuminate\Foundation\Http\Kernel:handle in /home/forge/pteducation.se/releases/20230711215519/public/index.php:53
53
Illuminate\View\ViewException
/home/forge/pteducation.se/storage/framework/views/14e2e0fad63bd8e0ce1e04f502b151c65e247a91.php54
52
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php106
51
Livewire\LivewireViewCompilerEngine handleViewException
/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php60
50
Illuminate\View\ViewException
/home/forge/pteducation.se/storage/framework/views/14e2e0fad63bd8e0ce1e04f502b151c65e247a91.php54
49
Illuminate\View\Engines\CompilerEngine handleViewException
/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php106
48
Livewire\LivewireViewCompilerEngine handleViewException
/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php60
47
Error
/home/forge/pteducation.se/storage/framework/views/14e2e0fad63bd8e0ce1e04f502b151c65e247a91.php54
46
require
/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php107
45
Illuminate\Filesystem\Filesystem Illuminate\Filesystem\{closure}
/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php108
44
Illuminate\Filesystem\Filesystem getRequire
/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php58
43
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php69
42
Livewire\LivewireViewCompilerEngine evaluatePath
/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php61
41
Illuminate\View\Engines\CompilerEngine get
/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php35
40
Livewire\LivewireViewCompilerEngine get
/vendor/laravel/framework/src/Illuminate/View/View.php139
39
Illuminate\View\View getContents
/vendor/laravel/framework/src/Illuminate/View/View.php122
38
Illuminate\View\View renderContents
/vendor/laravel/framework/src/Illuminate/View/View.php91
37
Illuminate\View\View render
/home/forge/pteducation.se/storage/framework/views/eef7028f52afafcf993c52e2003bb79c79717fc4.php37
36
require
/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php107
35
Illuminate\Filesystem\Filesystem Illuminate\Filesystem\{closure}
/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php108
34
Illuminate\Filesystem\Filesystem getRequire
/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php58
33
Illuminate\View\Engines\PhpEngine evaluatePath
/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php69
32
Livewire\LivewireViewCompilerEngine evaluatePath
/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php61
31
Illuminate\View\Engines\CompilerEngine get
/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php35
30
Livewire\LivewireViewCompilerEngine get
/vendor/laravel/framework/src/Illuminate/View/View.php139
29
Illuminate\View\View getContents
/vendor/laravel/framework/src/Illuminate/View/View.php122
28
Illuminate\View\View renderContents
/vendor/laravel/framework/src/Illuminate/View/View.php91
27
Illuminate\View\View render
/vendor/laravel/framework/src/Illuminate/Http/Response.php69
26
Illuminate\Http\Response setContent
/vendor/laravel/framework/src/Illuminate/Http/Response.php35
25
Illuminate\Http\Response __construct
/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php55
24
Illuminate\Routing\ResponseFactory make
/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php85
23
Illuminate\Routing\ResponseFactory view
/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php585
22
Illuminate\Foundation\Exceptions\Handler renderHttpException
/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php490
21
Illuminate\Foundation\Exceptions\Handler prepareResponse
/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php356
20
Illuminate\Foundation\Exceptions\Handler render
/app/Exceptions/Handler.php47
19
App\Exceptions\Handler render
/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php51
18
Illuminate\Routing\Pipeline handleException
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php130
17
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/livewire/livewire/src/DisableBrowserCache.php19
16
Livewire\DisableBrowserCache handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
15
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/spatie/laravel-cookie-consent/src/CookieConsentMiddleware.php12
14
Spatie\CookieConsent\CookieConsentMiddleware handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
13
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php21
12
Illuminate\Foundation\Http\Middleware\TransformsRequest handle
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php31
11
Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
10
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php21
9
Illuminate\Foundation\Http\Middleware\TransformsRequest handle
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php40
8
Illuminate\Foundation\Http\Middleware\TrimStrings handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
7
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php27
6
Illuminate\Foundation\Http\Middleware\ValidatePostSize handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
5
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php86
4
Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance handle
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php167
3
Illuminate\Pipeline\Pipeline Illuminate\Pipeline\{closure}
/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php103
2
Illuminate\Pipeline\Pipeline then
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php142
1
Illuminate\Foundation\Http\Kernel sendRequestThroughRouter
/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php111
0
Illuminate\Foundation\Http\Kernel handle
/public/index.php53
/home/forge/pteducation.se/storage/framework/views/14e2e0fad63bd8e0ce1e04f502b151c65e247a91.php
            ]); ?>
        </script>
        
        <?php echo $__env->make('layouts.partials.header-tracking-codes', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
    </head>
 
    <body>
 
        
        <div id="app" class="layout <?php echo $__env->yieldContent('layout-class'); ?>">
            <?php echo $__env->make('layouts.partials.help', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php if(config('app.show_pop_banner') && request()->segment(1) != 'pt-utbildning'): ?>
                <?php echo $__env->make('site.partials.pop-banner', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php endif; ?>
            
            <main class="<?php echo $__env->yieldContent('main-class'); ?>">
                <?php echo $__env->make('layouts.partials.impersonate-alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
                <app-header current="<?php echo e(\Request::route()->getName()); ?>">
                    <?php if(auth()->check() && auth()->user()->unreadNotifications()->count()): ?>
                        <div slot="notifications">
                            <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('header-notifications', [])->html();
} elseif ($_instance->childHasBeenRendered('leN1PqS')) {
    $componentId = $_instance->getRenderedChildComponentId('leN1PqS');
    $componentTag = $_instance->getRenderedChildComponentTagName('leN1PqS');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('leN1PqS');
} else {
    $response = \Livewire\Livewire::mount('header-notifications', []);
    $html = $response->html();
    $_instance->logRenderedChild('leN1PqS', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
                        </div>
                    <?php endif; ?>
                </app-header>
Arguments
  1. "Call to a member function getName() on null (View: /home/forge/pteducation.se/releases/20230711215519/resources/views/layouts/app.blade.php) (View: /home/forge/pteducation.se/releases/20230711215519/resources/views/layouts/app.blade.php)"
    
/home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    // Errors thrown while a view is rendering are caught by the Blade
    // compiler and wrapped in an "ErrorException". This makes Livewire errors
    // harder to read, AND causes issues like `abort(404)` not actually working.
    protected function handleViewException(Throwable $e, $obLevel)
    {
        if ($this->shouldBypassExceptionForLivewire($e, $obLevel)) {
            // This is because there is no "parent::parent::".
            PhpEngine::handleViewException($e, $obLevel);
 
            return;
        }
 
        CompilerEngine::handleViewException($e, $obLevel);
    }
 
    public function shouldBypassExceptionForLivewire(Throwable $e, $obLevel)
    {
        $uses = array_flip(class_uses_recursive($e));
 
        return (
            // Don't wrap "abort(403)".
            $e instanceof AuthorizationException
            // Don't wrap "abort(404)".
            || $e instanceof NotFoundHttpException
            // Don't wrap "abort(500)".
            || $e instanceof HttpException
            // Don't wrap most Livewire exceptions.
            || isset($uses[BypassViewHandler::class])
        );
    }
}
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    protected function evaluatePath($path, $data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            $this->files->getRequire($path, $data);
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
        }
 
/home/forge/pteducation.se/storage/framework/views/14e2e0fad63bd8e0ce1e04f502b151c65e247a91.php
            ]); ?>
        </script>
        
        <?php echo $__env->make('layouts.partials.header-tracking-codes', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
    </head>
 
    <body>
 
        
        <div id="app" class="layout <?php echo $__env->yieldContent('layout-class'); ?>">
            <?php echo $__env->make('layouts.partials.help', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php if(config('app.show_pop_banner') && request()->segment(1) != 'pt-utbildning'): ?>
                <?php echo $__env->make('site.partials.pop-banner', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php endif; ?>
            
            <main class="<?php echo $__env->yieldContent('main-class'); ?>">
                <?php echo $__env->make('layouts.partials.impersonate-alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
                <app-header current="<?php echo e(\Request::route()->getName()); ?>">
                    <?php if(auth()->check() && auth()->user()->unreadNotifications()->count()): ?>
                        <div slot="notifications">
                            <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('header-notifications', [])->html();
} elseif ($_instance->childHasBeenRendered('leN1PqS')) {
    $componentId = $_instance->getRenderedChildComponentId('leN1PqS');
    $componentTag = $_instance->getRenderedChildComponentTagName('leN1PqS');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('leN1PqS');
} else {
    $response = \Livewire\Livewire::mount('header-notifications', []);
    $html = $response->html();
    $_instance->logRenderedChild('leN1PqS', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
                        </div>
                    <?php endif; ?>
                </app-header>
Arguments
  1. "Call to a member function getName() on null (View: /home/forge/pteducation.se/releases/20230711215519/resources/views/layouts/app.blade.php)"
    
Exception message: Call to a member function getName() on null (View: /home/forge/pteducation.se/releases/20230711215519/resources/views/layouts/app.blade.php)
/home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    // Errors thrown while a view is rendering are caught by the Blade
    // compiler and wrapped in an "ErrorException". This makes Livewire errors
    // harder to read, AND causes issues like `abort(404)` not actually working.
    protected function handleViewException(Throwable $e, $obLevel)
    {
        if ($this->shouldBypassExceptionForLivewire($e, $obLevel)) {
            // This is because there is no "parent::parent::".
            PhpEngine::handleViewException($e, $obLevel);
 
            return;
        }
 
        CompilerEngine::handleViewException($e, $obLevel);
    }
 
    public function shouldBypassExceptionForLivewire(Throwable $e, $obLevel)
    {
        $uses = array_flip(class_uses_recursive($e));
 
        return (
            // Don't wrap "abort(403)".
            $e instanceof AuthorizationException
            // Don't wrap "abort(404)".
            || $e instanceof NotFoundHttpException
            // Don't wrap "abort(500)".
            || $e instanceof HttpException
            // Don't wrap most Livewire exceptions.
            || isset($uses[BypassViewHandler::class])
        );
    }
}
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    protected function evaluatePath($path, $data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            $this->files->getRequire($path, $data);
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
        }
 
/home/forge/pteducation.se/storage/framework/views/14e2e0fad63bd8e0ce1e04f502b151c65e247a91.php
            ]); ?>
        </script>
        
        <?php echo $__env->make('layouts.partials.header-tracking-codes', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
    </head>
 
    <body>
 
        
        <div id="app" class="layout <?php echo $__env->yieldContent('layout-class'); ?>">
            <?php echo $__env->make('layouts.partials.help', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php if(config('app.show_pop_banner') && request()->segment(1) != 'pt-utbildning'): ?>
                <?php echo $__env->make('site.partials.pop-banner', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <?php endif; ?>
            
            <main class="<?php echo $__env->yieldContent('main-class'); ?>">
                <?php echo $__env->make('layouts.partials.impersonate-alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
 
                <app-header current="<?php echo e(\Request::route()->getName()); ?>">
                    <?php if(auth()->check() && auth()->user()->unreadNotifications()->count()): ?>
                        <div slot="notifications">
                            <?php
if (! isset($_instance)) {
    $html = \Livewire\Livewire::mount('header-notifications', [])->html();
} elseif ($_instance->childHasBeenRendered('leN1PqS')) {
    $componentId = $_instance->getRenderedChildComponentId('leN1PqS');
    $componentTag = $_instance->getRenderedChildComponentTagName('leN1PqS');
    $html = \Livewire\Livewire::dummyMount($componentId, $componentTag);
    $_instance->preserveRenderedChild('leN1PqS');
} else {
    $response = \Livewire\Livewire::mount('header-notifications', []);
    $html = $response->html();
    $_instance->logRenderedChild('leN1PqS', $response->id(), \Livewire\Livewire::getRootElementTagName($html));
}
echo $html;
?>
                        </div>
                    <?php endif; ?>
                </app-header>
Arguments
  1. "Call to a member function getName() on null"
    
Exception message: Call to a member function getName() on null
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php
 
    /**
     * Get the returned value of a file.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function getRequire($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
            return (static function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
 
                return require $__path;
            })();
        }
 
        throw new FileNotFoundException("File does not exist at path {$path}.");
    }
 
    /**
     * Require the given file once.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function requireOnce($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php
    /**
     * Get the returned value of a file.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function getRequire($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
            return (static function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
 
                return require $__path;
            })();
        }
 
        throw new FileNotFoundException("File does not exist at path {$path}.");
    }
 
    /**
     * Require the given file once.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function requireOnce($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
    }
 
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    protected function evaluatePath($path, $data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            $this->files->getRequire($path, $data);
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
/home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php
 
            // Here, we'll reset them back, for the next view to be compiled.
            LivewireManager::$currentCompilingViewPath = null;
            LivewireManager::$currentCompilingChildCounter = null;
        }
 
        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    protected function evaluatePath($__path, $__data)
    {
        if (! $this->isRenderingLivewireComponent()) {
            return parent::evaluatePath($__path, $__data);
        }
 
        $obLevel = ob_get_level();
 
        ob_start();
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            $component = end($this->livewireComponents);
            \Closure::bind(function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
                include $__path;
            }, $component, $component)();
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }
 
        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        $e = new ViewException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
/home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php
    protected $livewireComponents = [];
 
    public function startLivewireRendering($component)
    {
        $this->livewireComponents[] = $component;
    }
 
    public function endLivewireRendering()
    {
        array_pop($this->livewireComponents);
    }
 
    public function isRenderingLivewireComponent()
    {
        return ! empty($this->livewireComponents);
    }
   
    public function get($path, array $data = [])
    {
        if (! $this->isRenderingLivewireComponent()) return parent::get($path, $data); 
 
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            // @note: this is the only modification of this overladed Laravel method:
            // We are globally setting the current view path being compiled for
            // reference from the @livewire Blade directive.
            LivewireManager::$currentCompilingViewPath = $path;
            LivewireManager::$currentCompilingChildCounter = 0;
            
            $this->compiler->compile($path);
 
            // Here, we'll reset them back, for the next view to be compiled.
            LivewireManager::$currentCompilingViewPath = null;
            LivewireManager::$currentCompilingChildCounter = null;
        }
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    public function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? $callback($this, $contents) : null;
 
            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
/home/forge/pteducation.se/storage/framework/views/eef7028f52afafcf993c52e2003bb79c79717fc4.php
            <h4 class="medium">Vänligen försök</h4>
            <ul>
                <li>
                    <a href="/">Framsidan.</a>
                </li>
                <li>
                    <a href="<?php echo e(route('studys')); ?>">Utbildningen</a>
                </li>
            </ul>
        </div>
 
        <p><a href="https://www.afpt.no/kontakt-oss" data-remote="false" data-toggle="modal" data-target="#help-email-modal">Eller kontakta oss om du behöver hjälp.</a></p>
 
        <small>404</small>
    
        
    </div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/forge/pteducation.se/releases/20230711215519/resources/views/errors/404.blade.php ENDPATH**/ ?>
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php
 
    /**
     * Get the returned value of a file.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function getRequire($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
            return (static function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
 
                return require $__path;
            })();
        }
 
        throw new FileNotFoundException("File does not exist at path {$path}.");
    }
 
    /**
     * Require the given file once.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function requireOnce($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
Arguments
  1. "/home/forge/pteducation.se/storage/framework/views/eef7028f52afafcf993c52e2003bb79c79717fc4.php"
    
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php
    /**
     * Get the returned value of a file.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function getRequire($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
            return (static function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
 
                return require $__path;
            })();
        }
 
        throw new FileNotFoundException("File does not exist at path {$path}.");
    }
 
    /**
     * Require the given file once.
     *
     * @param  string  $path
     * @param  array  $data
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
     */
    public function requireOnce($path, array $data = [])
    {
        if ($this->isFile($path)) {
            $__path = $path;
            $__data = $data;
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php
    }
 
    /**
     * Get the evaluated contents of the view at the given path.
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    protected function evaluatePath($path, $data)
    {
        $obLevel = ob_get_level();
 
        ob_start();
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            $this->files->getRequire($path, $data);
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
 
        return ltrim(ob_get_clean());
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        while (ob_get_level() > $obLevel) {
            ob_end_clean();
/home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php
 
            // Here, we'll reset them back, for the next view to be compiled.
            LivewireManager::$currentCompilingViewPath = null;
            LivewireManager::$currentCompilingChildCounter = null;
        }
 
        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    protected function evaluatePath($__path, $__data)
    {
        if (! $this->isRenderingLivewireComponent()) {
            return parent::evaluatePath($__path, $__data);
        }
 
        $obLevel = ob_get_level();
 
        ob_start();
 
        // We'll evaluate the contents of the view inside a try/catch block so we can
        // flush out any stray output that might get out before an error occurs or
        // an exception is thrown. This prevents any partial views from leaking.
        try {
            $component = end($this->livewireComponents);
            \Closure::bind(function () use ($__path, $__data) {
                extract($__data, EXTR_SKIP);
                include $__path;
            }, $component, $component)();
        } catch (Exception $e) {
            $this->handleViewException($e, $obLevel);
        } catch (Throwable $e) {
            $this->handleViewException($e, $obLevel);
        }
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php
     *
     * @param  string  $path
     * @param  array  $data
     * @return string
     */
    public function get($path, array $data = [])
    {
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            $this->compiler->compile($path);
        }
 
        // Once we have the path to the compiled file, we will evaluate the paths with
        // typical PHP just like any other templates. We also keep a stack of views
        // which have been rendered for right exception messages to be generated.
        $results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
 
        array_pop($this->lastCompiled);
 
        return $results;
    }
 
    /**
     * Handle a view exception.
     *
     * @param  \Throwable  $e
     * @param  int  $obLevel
     * @return void
     *
     * @throws \Throwable
     */
    protected function handleViewException(Throwable $e, $obLevel)
    {
        $e = new ViewException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
 
        parent::handleViewException($e, $obLevel);
/home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/ComponentConcerns/RendersLivewireComponents.php
    protected $livewireComponents = [];
 
    public function startLivewireRendering($component)
    {
        $this->livewireComponents[] = $component;
    }
 
    public function endLivewireRendering()
    {
        array_pop($this->livewireComponents);
    }
 
    public function isRenderingLivewireComponent()
    {
        return ! empty($this->livewireComponents);
    }
   
    public function get($path, array $data = [])
    {
        if (! $this->isRenderingLivewireComponent()) return parent::get($path, $data); 
 
        $this->lastCompiled[] = $path;
 
        // If this given view has expired, which means it has simply been edited since
        // it was last compiled, we will re-compile the views so we can evaluate a
        // fresh copy of the view. We'll pass the compiler the path of the view.
        if ($this->compiler->isExpired($path)) {
            // @note: this is the only modification of this overladed Laravel method:
            // We are globally setting the current view path being compiled for
            // reference from the @livewire Blade directive.
            LivewireManager::$currentCompilingViewPath = $path;
            LivewireManager::$currentCompilingChildCounter = 0;
            
            $this->compiler->compile($path);
 
            // Here, we'll reset them back, for the next view to be compiled.
            LivewireManager::$currentCompilingViewPath = null;
            LivewireManager::$currentCompilingChildCounter = null;
        }
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
     * Get the data bound to the view instance.
     *
     * @return array
     */
    public function gatherData()
    {
        $data = array_merge($this->factory->getShared(), $this->data);
 
        foreach ($data as $key => $value) {
            if ($value instanceof Renderable) {
                $data[$key] = $value->render();
            }
        }
 
        return $data;
    }
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
     */
    protected function renderContents()
    {
        // We will keep track of the amount of views being rendered so we can flush
        // the section after the complete rendering operation is done. This will
        // clear out the sections for any separate views that may be rendered.
        $this->factory->incrementRender();
 
        $this->factory->callComposer($this);
 
        $contents = $this->getContents();
 
        // Once we've finished rendering the view, we'll decrement the render count
        // so that each sections get flushed out next time a view is created and
        // no old sections are staying around in the memory of an environment.
        $this->factory->decrementRender();
 
        return $contents;
    }
 
    /**
     * Get the evaluated contents of the view.
     *
     * @return string
     */
    protected function getContents()
    {
        return $this->engine->get($this->path, $this->gatherData());
    }
 
    /**
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/View/View.php
        $this->view = $view;
        $this->path = $path;
        $this->engine = $engine;
        $this->factory = $factory;
 
        $this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
    }
 
    /**
     * Get the string contents of the view.
     *
     * @param  callable|null  $callback
     * @return string
     *
     * @throws \Throwable
     */
    public function render(callable $callback = null)
    {
        try {
            $contents = $this->renderContents();
 
            $response = isset($callback) ? $callback($this, $contents) : null;
 
            // Once we have the contents of the view, we will flush the sections if we are
            // done rendering all views so that there is nothing left hanging over when
            // another view gets rendered in the future by the application developer.
            $this->factory->flushStateIfDoneRendering();
 
            return ! is_null($response) ? $response : $contents;
        } catch (Throwable $e) {
            $this->factory->flushState();
 
            throw $e;
        }
    }
 
    /**
     * Get the contents of the view instance.
     *
     * @return string
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Http/Response.php
        $this->original = $content;
 
        // If the content is "JSONable" we will set the appropriate header and convert
        // the content to JSON. This is useful when returning something like models
        // from routes that will be automatically transformed to their JSON form.
        if ($this->shouldBeJson($content)) {
            $this->header('Content-Type', 'application/json');
 
            $content = $this->morphToJson($content);
 
            if ($content === false) {
                throw new InvalidArgumentException(json_last_error_msg());
            }
        }
 
        // If this content implements the "Renderable" interface then we will call the
        // render method on the object so we will avoid any "__toString" exceptions
        // that might be thrown and have their errors obscured by PHP's handling.
        elseif ($content instanceof Renderable) {
            $content = $content->render();
        }
 
        parent::setContent($content);
 
        return $this;
    }
 
    /**
     * Determine if the given content should be turned into JSON.
     *
     * @param  mixed  $content
     * @return bool
     */
    protected function shouldBeJson($content)
    {
        return $content instanceof Arrayable ||
               $content instanceof Jsonable ||
               $content instanceof ArrayObject ||
               $content instanceof JsonSerializable ||
               is_array($content);
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Http/Response.php
{
    use ResponseTrait, Macroable {
        Macroable::__call as macroCall;
    }
 
    /**
     * Create a new HTTP response.
     *
     * @param  mixed  $content
     * @param  int  $status
     * @param  array  $headers
     * @return void
     *
     * @throws \InvalidArgumentException
     */
    public function __construct($content = '', $status = 200, array $headers = [])
    {
        $this->headers = new ResponseHeaderBag($headers);
 
        $this->setContent($content);
        $this->setStatusCode($status);
        $this->setProtocolVersion('1.0');
    }
 
    /**
     * Set the content on the response.
     *
     * @param  mixed  $content
     * @return $this
     *
     * @throws \InvalidArgumentException
     */
    public function setContent($content)
    {
        $this->original = $content;
 
        // If the content is "JSONable" we will set the appropriate header and convert
        // the content to JSON. This is useful when returning something like models
        // from routes that will be automatically transformed to their JSON form.
        if ($this->shouldBeJson($content)) {
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php
     * @param  \Illuminate\Routing\Redirector  $redirector
     * @return void
     */
    public function __construct(ViewFactory $view, Redirector $redirector)
    {
        $this->view = $view;
        $this->redirector = $redirector;
    }
 
    /**
     * Create a new response instance.
     *
     * @param  mixed  $content
     * @param  int  $status
     * @param  array  $headers
     * @return \Illuminate\Http\Response
     */
    public function make($content = '', $status = 200, array $headers = [])
    {
        return new Response($content, $status, $headers);
    }
 
    /**
     * Create a new "no content" response.
     *
     * @param  int  $status
     * @param  array  $headers
     * @return \Illuminate\Http\Response
     */
    public function noContent($status = 204, array $headers = [])
    {
        return $this->make('', $status, $headers);
    }
 
    /**
     * Create a new response for a given view.
     *
     * @param  string|array  $view
     * @param  array  $data
     * @param  int  $status
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php
    {
        return $this->make('', $status, $headers);
    }
 
    /**
     * Create a new response for a given view.
     *
     * @param  string|array  $view
     * @param  array  $data
     * @param  int  $status
     * @param  array  $headers
     * @return \Illuminate\Http\Response
     */
    public function view($view, $data = [], $status = 200, array $headers = [])
    {
        if (is_array($view)) {
            return $this->make($this->view->first($view, $data), $status, $headers);
        }
 
        return $this->make($this->view->make($view, $data), $status, $headers);
    }
 
    /**
     * Create a new JSON response instance.
     *
     * @param  mixed  $data
     * @param  int  $status
     * @param  array  $headers
     * @param  int  $options
     * @return \Illuminate\Http\JsonResponse
     */
    public function json($data = [], $status = 200, array $headers = [], $options = 0)
    {
        return new JsonResponse($data, $status, $headers, $options);
    }
 
    /**
     * Create a new JSONP response instance.
     *
     * @param  string  $callback
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
        $renderer = new HtmlErrorRenderer($debug);
 
        return $renderer->render($e)->getAsString();
    }
 
    /**
     * Render the given HttpException.
     *
     * @param  \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface  $e
     * @return \Symfony\Component\HttpFoundation\Response
     */
    protected function renderHttpException(HttpExceptionInterface $e)
    {
        $this->registerErrorViewPaths();
 
        if (view()->exists($view = $this->getHttpExceptionView($e))) {
            return response()->view($view, [
                'errors' => new ViewErrorBag,
                'exception' => $e,
            ], $e->getStatusCode(), $e->getHeaders());
        }
 
        return $this->convertExceptionToResponse($e);
    }
 
    /**
     * Register the error template hint paths.
     *
     * @return void
     */
    protected function registerErrorViewPaths()
    {
        (new RegisterErrorViewPaths)();
    }
 
    /**
     * Get the view used to render HTTP exceptions.
     *
     * @param  \Symfony\Component\HttpKernel\Exception\HttpExceptionInterface  $e
     * @return string
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
 
    /**
     * Prepare a response for the given exception.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Throwable  $e
     * @return \Symfony\Component\HttpFoundation\Response
     */
    protected function prepareResponse($request, Throwable $e)
    {
        if (! $this->isHttpException($e) && config('app.debug')) {
            return $this->toIlluminateResponse($this->convertExceptionToResponse($e), $e);
        }
 
        if (! $this->isHttpException($e)) {
            $e = new HttpException(500, $e->getMessage());
        }
 
        return $this->toIlluminateResponse(
            $this->renderHttpException($e), $e
        );
    }
 
    /**
     * Create a Symfony response for the given exception.
     *
     * @param  \Throwable  $e
     * @return \Symfony\Component\HttpFoundation\Response
     */
    protected function convertExceptionToResponse(Throwable $e)
    {
        return new SymfonyResponse(
            $this->renderExceptionContent($e),
            $this->isHttpException($e) ? $e->getStatusCode() : 500,
            $this->isHttpException($e) ? $e->getHeaders() : []
        );
    }
 
    /**
     * Get the response content for the given exception.
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php
                    $response = $renderCallback($e, $request);
 
                    if (! is_null($response)) {
                        return $response;
                    }
                }
            }
        }
 
        if ($e instanceof HttpResponseException) {
            return $e->getResponse();
        } elseif ($e instanceof AuthenticationException) {
            return $this->unauthenticated($request, $e);
        } elseif ($e instanceof ValidationException) {
            return $this->convertValidationExceptionToResponse($e, $request);
        }
 
        return $this->shouldReturnJson($request, $e)
                    ? $this->prepareJsonResponse($request, $e)
                    : $this->prepareResponse($request, $e);
    }
 
    /**
     * Map the exception using a registered mapper if possible.
     *
     * @param  \Throwable  $e
     * @return \Throwable
     */
    protected function mapException(Throwable $e)
    {
        foreach ($this->exceptionMap as $class => $mapper) {
            if (is_a($e, $class)) {
                return $mapper($e);
            }
        }
 
        return $e;
    }
 
    /**
/home/forge/pteducation.se/releases/20230711215519/app/Exceptions/Handler.php
     * This is a great spot to send exceptions to Sentry, Bugsnag, etc.
     *
     * @param  \Throwable  $exception
     * @return void
     */
    public function report(Throwable $exception)
    {
        parent::report($exception);
    }
 
    /**
     * Render an exception into an HTTP response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Throwable  $exception
     * @return \Illuminate\Http\Response
     */
    public function render($request, Throwable $exception)
    {
        return parent::render($request, $exception);
    }
 
    /**
     * Convert an authentication exception into an unauthenticated response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Illuminate\Auth\AuthenticationException  $exception
     * @return \Illuminate\Http\Response
     */
    protected function unauthenticated($request, AuthenticationException $exception)
    {
        if ($request->expectsJson()) {
            return response()->json(['error' => 'Unauthenticated.'], 401);
        }
 
        return redirect()->guest('login');
    }
}
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php
     * Handle the given exception.
     *
     * @param  mixed  $passable
     * @param  \Throwable  $e
     * @return mixed
     *
     * @throws \Throwable
     */
    protected function handleException($passable, Throwable $e)
    {
        if (! $this->container->bound(ExceptionHandler::class) ||
            ! $passable instanceof Request) {
            throw $e;
        }
 
        $handler = $this->container->make(ExceptionHandler::class);
 
        $handler->report($e);
 
        $response = $handler->render($passable, $e);
 
        if (is_object($response) && method_exists($response, 'withException')) {
            $response->withException($e);
        }
 
        return $response;
    }
}
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
    protected function prepareDestination(Closure $destination)
    {
        return function ($passable) use ($destination) {
            try {
                return $destination($passable);
            } catch (Throwable $e) {
                return $this->handleException($passable, $e);
            }
        };
    }
 
    /**
     * Get a Closure that represents a slice of the application onion.
     *
     * @return \Closure
     */
    protected function carry()
    {
        return function ($stack, $pipe) {
            return function ($passable) use ($stack, $pipe) {
                try {
                    if (is_callable($pipe)) {
                        // If the pipe is a callable, then we will call it directly, but otherwise we
                        // will resolve the pipes out of the dependency container and call it with
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
/home/forge/pteducation.se/releases/20230711215519/vendor/livewire/livewire/src/DisableBrowserCache.php
<?php
 
namespace Livewire;
 
use Closure;
use Symfony\Component\HttpFoundation\Response;
 
class DisableBrowserCache
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $response = $next($request);
 
        if ($response instanceof Response && Livewire::shouldDisableBackButtonCache()){
            $response->headers->add([
                "Pragma" => "no-cache",
                "Expires" => "Fri, 01 Jan 1990 00:00:00 GMT",
                "Cache-Control" => "no-cache, must-revalidate, no-store, max-age=0, private",
            ]);
        }
 
        return $response;
    }
}
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/home/forge/pteducation.se/releases/20230711215519/vendor/spatie/laravel-cookie-consent/src/CookieConsentMiddleware.php
<?php
 
namespace Spatie\CookieConsent;
 
use Closure;
use Illuminate\Http\Response;
 
class CookieConsentMiddleware
{
    public function handle($request, Closure $next)
    {
        $response = $next($request);
 
        if (! config('cookie-consent.enabled')) {
            return $response;
        }
 
        if (! $response instanceof Response) {
            return $response;
        }
 
        if (! $this->containsBodyTag($response)) {
            return $response;
        }
 
        return $this->addCookieConsentScriptToResponse($response);
    }
 
    protected function containsBodyTag(Response $response): bool
    {
        return $this->getLastClosingBodyTagPosition($response->getContent()) !== false;
    }
 
    /**
     * @param \Illuminate\Http\Response $response
     *
     * @return $this
     */
    protected function addCookieConsentScriptToResponse(Response $response)
    {
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
 
namespace Illuminate\Foundation\Http\Middleware;
 
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
 
class TransformsRequest
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $this->clean($request);
 
        return $next($request);
    }
 
    /**
     * Clean the request's data.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function clean($request)
    {
        $this->cleanParameterBag($request->query);
 
        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } elseif ($request->request !== $request->query) {
            $this->cleanParameterBag($request->request);
        }
    }
 
    /**
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php
     * @var array
     */
    protected static $skipCallbacks = [];
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        foreach (static::$skipCallbacks as $callback) {
            if ($callback($request)) {
                return $next($request);
            }
        }
 
        return parent::handle($request, $next);
    }
 
    /**
     * Transform the given value.
     *
     * @param  string  $key
     * @param  mixed  $value
     * @return mixed
     */
    protected function transform($key, $value)
    {
        return is_string($value) && $value === '' ? null : $value;
    }
 
    /**
     * Register a callback that instructs the middleware to be skipped.
     *
     * @param  \Closure  $callback
     * @return void
     */
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php
 
namespace Illuminate\Foundation\Http\Middleware;
 
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
 
class TransformsRequest
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        $this->clean($request);
 
        return $next($request);
    }
 
    /**
     * Clean the request's data.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function clean($request)
    {
        $this->cleanParameterBag($request->query);
 
        if ($request->isJson()) {
            $this->cleanParameterBag($request->json());
        } elseif ($request->request !== $request->query) {
            $this->cleanParameterBag($request->request);
        }
    }
 
    /**
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php
    protected $except = [
        //
    ];
 
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        foreach (static::$skipCallbacks as $callback) {
            if ($callback($request)) {
                return $next($request);
            }
        }
 
        return parent::handle($request, $next);
    }
 
    /**
     * Transform the given value.
     *
     * @param  string  $key
     * @param  mixed  $value
     * @return mixed
     */
    protected function transform($key, $value)
    {
        if (in_array($key, $this->except, true)) {
            return $value;
        }
 
        return is_string($value) ? trim($value) : $value;
    }
 
    /**
     * Register a callback that instructs the middleware to be skipped.
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php
class ValidatePostSize
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     *
     * @throws \Illuminate\Http\Exceptions\PostTooLargeException
     */
    public function handle($request, Closure $next)
    {
        $max = $this->getPostMaxSize();
 
        if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
            throw new PostTooLargeException;
        }
 
        return $next($request);
    }
 
    /**
     * Determine the server 'post_max_size' as bytes.
     *
     * @return int
     */
    protected function getPostMaxSize()
    {
        if (is_numeric($postMaxSize = ini_get('post_max_size'))) {
            return (int) $postMaxSize;
        }
 
        $metric = strtoupper(substr($postMaxSize, -1));
        $postMaxSize = (int) $postMaxSize;
 
        switch ($metric) {
            case 'K':
                return $postMaxSize * 1024;
            case 'M':
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php
                }
            }
 
            if (isset($data['template'])) {
                return response(
                    $data['template'],
                    $data['status'] ?? 503,
                    $this->getHeaders($data)
                );
            }
 
            throw new HttpException(
                $data['status'] ?? 503,
                'Service Unavailable',
                null,
                $this->getHeaders($data)
            );
        }
 
        return $next($request);
    }
 
    /**
     * Determine if the incoming request has a maintenance mode bypass cookie.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  array  $data
     * @return bool
     */
    protected function hasValidBypassCookie($request, array $data)
    {
        return isset($data['secret']) &&
                $request->cookie('laravel_maintenance') &&
                MaintenanceModeBypassCookie::isValid(
                    $request->cookie('laravel_maintenance'),
                    $data['secret']
                );
    }
 
    /**
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
                        // the appropriate method and arguments, returning the results back out.
                        return $pipe($passable, $stack);
                    } elseif (! is_object($pipe)) {
                        [$name, $parameters] = $this->parsePipeString($pipe);
 
                        // If the pipe is a string we will parse the string and resolve the class out
                        // of the dependency injection container. We can then build a callable and
                        // execute the pipe function giving in the parameters that are required.
                        $pipe = $this->getContainer()->make($name);
 
                        $parameters = array_merge([$passable, $stack], $parameters);
                    } else {
                        // If the pipe is already an object we'll just make a callable and pass it to
                        // the pipe as-is. There is no need to do any extra parsing and formatting
                        // since the object we're given was already a fully instantiated object.
                        $parameters = [$passable, $stack];
                    }
 
                    $carry = method_exists($pipe, $this->method)
                                    ? $pipe->{$this->method}(...$parameters)
                                    : $pipe(...$parameters);
 
                    return $this->handleCarry($carry);
                } catch (Throwable $e) {
                    return $this->handleException($passable, $e);
                }
            };
        };
    }
 
    /**
     * Parse full pipe string to get name and parameters.
     *
     * @param  string  $pipe
     * @return array
     */
    protected function parsePipeString($pipe)
    {
        [$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
 
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php
    public function via($method)
    {
        $this->method = $method;
 
        return $this;
    }
 
    /**
     * Run the pipeline with a final destination callback.
     *
     * @param  \Closure  $destination
     * @return mixed
     */
    public function then(Closure $destination)
    {
        $pipeline = array_reduce(
            array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
        );
 
        return $pipeline($this->passable);
    }
 
    /**
     * Run the pipeline and return the result.
     *
     * @return mixed
     */
    public function thenReturn()
    {
        return $this->then(function ($passable) {
            return $passable;
        });
    }
 
    /**
     * Get the final piece of the Closure onion.
     *
     * @param  \Closure  $destination
     * @return \Closure
     */
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
    {
        $this->app->instance('request', $request);
 
        Facade::clearResolvedInstance('request');
 
        $this->bootstrap();
 
        return (new Pipeline($this->app))
                    ->send($request)
                    ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
                    ->then($this->dispatchToRouter());
    }
 
    /**
     * Bootstrap the application for HTTP requests.
     *
     * @return void
     */
    public function bootstrap()
    {
        if (! $this->app->hasBeenBootstrapped()) {
            $this->app->bootstrapWith($this->bootstrappers());
        }
    }
 
    /**
     * Get the route dispatcher callback.
     *
     * @return \Closure
     */
    protected function dispatchToRouter()
/home/forge/pteducation.se/releases/20230711215519/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php
    public function __construct(Application $app, Router $router)
    {
        $this->app = $app;
        $this->router = $router;
 
        $this->syncMiddlewareToRouter();
    }
 
    /**
     * Handle an incoming HTTP request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function handle($request)
    {
        try {
            $request->enableHttpMethodParameterOverride();
 
            $response = $this->sendRequestThroughRouter($request);
        } catch (Throwable $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendRequestThroughRouter($request)
/home/forge/pteducation.se/releases/20230711215519/public/index.php
*/
 
$app = require_once __DIR__.'/../bootstrap/app.php';
 
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/
 
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
 
$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);
 
$response->send();
 
$kernel->terminate($request, $response);
 

Environment & details:

empty
empty
empty
empty
empty
Key Value
USER
"forge"
HOME
"/home/forge"
HTTP_CF_CONNECTING_IP
"18.206.160.129"
HTTP_USER_AGENT
"claudebot"
HTTP_ACCEPT
"*/*"
HTTP_CF_VISITOR
"{"scheme":"https"}"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_CF_RAY
"86b9e11ebe7739a3-AMS"
HTTP_X_FORWARDED_FOR
"18.206.160.129"
HTTP_ACCEPT_ENCODING
"gzip, br"
HTTP_CF_IPCOUNTRY
"US"
HTTP_CDN_LOOP
"cloudflare"
HTTP_HOST
"www.pteducation.se"
REDIRECT_STATUS
"200"
HTTPS
"on"
SERVER_NAME
"pteducation.se"
SERVER_PORT
"443"
SERVER_ADDR
"142.93.224.166"
REMOTE_PORT
"39768"
REMOTE_ADDR
"141.101.76.121"
SERVER_SOFTWARE
"nginx/1.18.0"
GATEWAY_INTERFACE
"CGI/1.1"
SERVER_PROTOCOL
"HTTP/2.0"
DOCUMENT_ROOT
"/home/forge/pteducation.se/current/public"
DOCUMENT_URI
"/index.php"
REQUEST_URI
"/navpartners/bokadirekt"
SCRIPT_NAME
"/index.php"
SCRIPT_FILENAME
"/home/forge/pteducation.se/current/public/index.php"
CONTENT_LENGTH
""
CONTENT_TYPE
""
REQUEST_METHOD
"GET"
QUERY_STRING
""
FCGI_ROLE
"RESPONDER"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1711652597.6397
REQUEST_TIME
1711652597
empty
0. Whoops\Handler\PrettyPageHandler