ErrorException (E_WARNING)
session_start(): Cannot start session when headers already sent ErrorException thrown with message "session_start(): Cannot start session when headers already sent" Stacktrace: #66 ErrorException in /home/westdar1/public_html/vendor/pragmarx/support/src/PhpSession.php:23 #65 session_start in /home/westdar1/public_html/vendor/pragmarx/support/src/PhpSession.php:23 #64 PragmaRX\Support\PhpSession:startSession in /home/westdar1/public_html/vendor/pragmarx/support/src/PhpSession.php:14 #63 PragmaRX\Support\PhpSession:__construct in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/ServiceProvider.php:277 #62 PragmaRX\Tracker\Vendor\Laravel\ServiceProvider:PragmaRX\Tracker\Vendor\Laravel\{closure} in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:749 #61 Illuminate\Container\Container:build in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:631 #60 Illuminate\Container\Container:resolve in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:586 #59 Illuminate\Container\Container:make in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:732 #58 Illuminate\Foundation\Application:make in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:1195 #57 Illuminate\Container\Container:offsetGet in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/ServiceProvider.php:150 #56 PragmaRX\Tracker\Vendor\Laravel\ServiceProvider:PragmaRX\Tracker\Vendor\Laravel\{closure} in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:749 #55 Illuminate\Container\Container:build in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:631 #54 Illuminate\Container\Container:resolve in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:586 #53 Illuminate\Container\Container:make in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:732 #52 Illuminate\Foundation\Application:make in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:1195 #51 Illuminate\Container\Container:offsetGet in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/ServiceProvider.php:635 #50 PragmaRX\Tracker\Vendor\Laravel\ServiceProvider:getTracker in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/ServiceProvider.php:493 #49 PragmaRX\Tracker\Vendor\Laravel\ServiceProvider:PragmaRX\Tracker\Vendor\Laravel\{closure} in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:347 #48 Illuminate\Events\Dispatcher:Illuminate\Events\{closure} in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:200 #47 Illuminate\Events\Dispatcher:dispatch in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:173 #46 Illuminate\Events\Dispatcher:fire in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/HasEvents.php:148 #45 Illuminate\Database\Eloquent\Model:fireModelEvent in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:165 #44 Illuminate\Database\Eloquent\Model:bootIfNotBooted in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php:148 #43 Illuminate\Database\Eloquent\Model:__construct in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/Models/Base.php:16 #42 PragmaRX\Tracker\Vendor\Laravel\Models\Base:__construct in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/Models/Session.php:24 #41 PragmaRX\Tracker\Vendor\Laravel\Models\Session:__construct in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/ServiceProvider.php:417 #40 PragmaRX\Tracker\Vendor\Laravel\ServiceProvider:instantiateModel in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/ServiceProvider.php:169 #39 PragmaRX\Tracker\Vendor\Laravel\ServiceProvider:PragmaRX\Tracker\Vendor\Laravel\{closure} in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:749 #38 Illuminate\Container\Container:build in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:631 #37 Illuminate\Container\Container:resolve in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:586 #36 Illuminate\Container\Container:make in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:732 #35 Illuminate\Foundation\Application:make in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:1195 #34 Illuminate\Container\Container:offsetGet in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/ServiceProvider.php:150 #33 PragmaRX\Tracker\Vendor\Laravel\ServiceProvider:PragmaRX\Tracker\Vendor\Laravel\{closure} in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:749 #32 Illuminate\Container\Container:build in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:631 #31 Illuminate\Container\Container:resolve in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:586 #30 Illuminate\Container\Container:make in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:732 #29 Illuminate\Foundation\Application:make in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:1195 #28 Illuminate\Container\Container:offsetGet in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/ServiceProvider.php:635 #27 PragmaRX\Tracker\Vendor\Laravel\ServiceProvider:getTracker in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/ServiceProvider.php:455 #26 PragmaRX\Tracker\Vendor\Laravel\ServiceProvider:logSqlQuery in /home/westdar1/public_html/vendor/pragmarx/tracker/src/Vendor/Laravel/ServiceProvider.php:441 #25 PragmaRX\Tracker\Vendor\Laravel\ServiceProvider:PragmaRX\Tracker\Vendor\Laravel\{closure} in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:350 #24 Illuminate\Events\Dispatcher:Illuminate\Events\{closure} in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php:200 #23 Illuminate\Events\Dispatcher:dispatch in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:825 #22 Illuminate\Database\Connection:event in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:682 #21 Illuminate\Database\Connection:logQuery in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:635 #20 Illuminate\Database\Connection:run in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Database/Connection.php:333 #19 Illuminate\Database\Connection:select in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Database/Schema/MySqlBuilder.php:18 #18 Illuminate\Database\Schema\MySqlBuilder:hasTable in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:221 #17 Illuminate\Support\Facades\Facade:__callStatic in /home/westdar1/public_html/vendor/tcg/voyager/src/VoyagerServiceProvider.php:273 #16 TCG\Voyager\VoyagerServiceProvider:registerGates in /home/westdar1/public_html/vendor/tcg/voyager/src/VoyagerServiceProvider.php:108 #15 TCG\Voyager\VoyagerServiceProvider:boot in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 #14 call_user_func_array in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29 #13 Illuminate\Container\BoundMethod:Illuminate\Container\{closure} in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:87 #12 Illuminate\Container\BoundMethod:callBoundMethod in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:31 #11 Illuminate\Container\BoundMethod:call in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Container/Container.php:549 #10 Illuminate\Container\Container:call in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:792 #9 Illuminate\Foundation\Application:bootProvider in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:775 #8 Illuminate\Foundation\Application:Illuminate\Foundation\{closure} in [internal]:0 #7 array_walk in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:776 #6 Illuminate\Foundation\Application:boot in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php:17 #5 Illuminate\Foundation\Bootstrap\BootProviders:bootstrap in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:213 #4 Illuminate\Foundation\Application:bootstrapWith in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:162 #3 Illuminate\Foundation\Http\Kernel:bootstrap in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:146 #2 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in /home/westdar1/public_html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 #1 Illuminate\Foundation\Http\Kernel:handle in /home/westdar1/public_html/public/index.php:55 #0 require_once in /home/westdar1/public_html/index.php:27
66
ErrorException
/
vendor
/
pragmarx
/
support
/
src
/
PhpSession.php
23
65
session_start
/
vendor
/
pragmarx
/
support
/
src
/
PhpSession.php
23
64
PragmaRX
\
Support
\
PhpSession
startSession
/
vendor
/
pragmarx
/
support
/
src
/
PhpSession.php
14
63
PragmaRX
\
Support
\
PhpSession
__construct
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
277
62
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
ServiceProvider
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
749
61
Illuminate
\
Container
\
Container
build
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
631
60
Illuminate
\
Container
\
Container
resolve
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
586
59
Illuminate
\
Container
\
Container
make
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
732
58
Illuminate
\
Foundation
\
Application
make
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
1195
57
Illuminate
\
Container
\
Container
offsetGet
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
150
56
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
ServiceProvider
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
749
55
Illuminate
\
Container
\
Container
build
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
631
54
Illuminate
\
Container
\
Container
resolve
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
586
53
Illuminate
\
Container
\
Container
make
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
732
52
Illuminate
\
Foundation
\
Application
make
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
1195
51
Illuminate
\
Container
\
Container
offsetGet
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
635
50
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
ServiceProvider
getTracker
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
493
49
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
ServiceProvider
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Events
/
Dispatcher.php
347
48
Illuminate
\
Events
\
Dispatcher
Illuminate
\
Events
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Events
/
Dispatcher.php
200
47
Illuminate
\
Events
\
Dispatcher
dispatch
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Events
/
Dispatcher.php
173
46
Illuminate
\
Events
\
Dispatcher
fire
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Concerns
/
HasEvents.php
148
45
Illuminate
\
Database
\
Eloquent
\
Model
fireModelEvent
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Model.php
165
44
Illuminate
\
Database
\
Eloquent
\
Model
bootIfNotBooted
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Model.php
148
43
Illuminate
\
Database
\
Eloquent
\
Model
__construct
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
Models
/
Base.php
16
42
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
Models
\
Base
__construct
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
Models
/
Session.php
24
41
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
Models
\
Session
__construct
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
417
40
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
ServiceProvider
instantiateModel
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
169
39
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
ServiceProvider
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
749
38
Illuminate
\
Container
\
Container
build
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
631
37
Illuminate
\
Container
\
Container
resolve
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
586
36
Illuminate
\
Container
\
Container
make
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
732
35
Illuminate
\
Foundation
\
Application
make
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
1195
34
Illuminate
\
Container
\
Container
offsetGet
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
150
33
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
ServiceProvider
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
749
32
Illuminate
\
Container
\
Container
build
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
631
31
Illuminate
\
Container
\
Container
resolve
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
586
30
Illuminate
\
Container
\
Container
make
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
732
29
Illuminate
\
Foundation
\
Application
make
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
1195
28
Illuminate
\
Container
\
Container
offsetGet
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
635
27
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
ServiceProvider
getTracker
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
455
26
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
ServiceProvider
logSqlQuery
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
441
25
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
ServiceProvider
PragmaRX
\
Tracker
\
Vendor
\
Laravel
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Events
/
Dispatcher.php
350
24
Illuminate
\
Events
\
Dispatcher
Illuminate
\
Events
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Events
/
Dispatcher.php
200
23
Illuminate
\
Events
\
Dispatcher
dispatch
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
825
22
Illuminate
\
Database
\
Connection
event
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
682
21
Illuminate
\
Database
\
Connection
logQuery
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
635
20
Illuminate
\
Database
\
Connection
run
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
333
19
Illuminate
\
Database
\
Connection
select
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Schema
/
MySqlBuilder.php
18
18
Illuminate
\
Database
\
Schema
\
MySqlBuilder
hasTable
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Support
/
Facades
/
Facade.php
221
17
Illuminate
\
Support
\
Facades
\
Facade
__callStatic
/
vendor
/
tcg
/
voyager
/
src
/
VoyagerServiceProvider.php
273
16
TCG
\
Voyager
\
VoyagerServiceProvider
registerGates
/
vendor
/
tcg
/
voyager
/
src
/
VoyagerServiceProvider.php
108
15
TCG
\
Voyager
\
VoyagerServiceProvider
boot
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
BoundMethod.php
29
14
call_user_func_array
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
BoundMethod.php
29
13
Illuminate
\
Container
\
BoundMethod
Illuminate
\
Container
\
{closure}
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
BoundMethod.php
87
12
Illuminate
\
Container
\
BoundMethod
callBoundMethod
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
BoundMethod.php
31
11
Illuminate
\
Container
\
BoundMethod
call
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
549
10
Illuminate
\
Container
\
Container
call
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
792
9
Illuminate
\
Foundation
\
Application
bootProvider
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
775
8
Illuminate
\
Foundation
\
Application
Illuminate
\
Foundation
\
{closure}
[internal]
0
7
array_walk
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
776
6
Illuminate
\
Foundation
\
Application
boot
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Bootstrap
/
BootProviders.php
17
5
Illuminate
\
Foundation
\
Bootstrap
\
BootProviders
bootstrap
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
213
4
Illuminate
\
Foundation
\
Application
bootstrapWith
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
162
3
Illuminate
\
Foundation
\
Http
\
Kernel
bootstrap
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
146
2
Illuminate
\
Foundation
\
Http
\
Kernel
sendRequestThroughRouter
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
116
1
Illuminate
\
Foundation
\
Http
\
Kernel
handle
/
public
/
index.php
55
0
require_once
/
index.php
27
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
support
/
src
/
PhpSession.php
class PhpSession
{

    const DEFAULT_NAMESPACE = 'pragmarx/phpsession';

    private $namespace;

    public function __construct($namespace = null)
    {
        $this->startSession();

        $this->setNamespace($namespace);
    }

    private function startSession()
    {
        if ( ! $this->isStarted())
        {
            session_start();
        }
    }

    private function isStarted()
    {
        return session_status() === PHP_SESSION_ACTIVE;
    }

    public function get($key, $namespace = null)
    {
        $session = $this->getNamespaceData($namespace);

        return isset($session[$key])
                ? $session[$key]
                : null;
    }

    public function has($key, $namespace = null)
    {
        $session = $this->getNamespaceData($namespace);
Arguments
  1. "session_start(): Cannot start session when headers already sent"
    
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
support
/
src
/
PhpSession.php
class PhpSession
{

    const DEFAULT_NAMESPACE = 'pragmarx/phpsession';

    private $namespace;

    public function __construct($namespace = null)
    {
        $this->startSession();

        $this->setNamespace($namespace);
    }

    private function startSession()
    {
        if ( ! $this->isStarted())
        {
            session_start();
        }
    }

    private function isStarted()
    {
        return session_status() === PHP_SESSION_ACTIVE;
    }

    public function get($key, $namespace = null)
    {
        $session = $this->getNamespaceData($namespace);

        return isset($session[$key])
                ? $session[$key]
                : null;
    }

    public function has($key, $namespace = null)
    {
        $session = $this->getNamespaceData($namespace);
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
support
/
src
/
PhpSession.php
<?php

namespace PragmaRX\Support;

class PhpSession
{

    const DEFAULT_NAMESPACE = 'pragmarx/phpsession';

    private $namespace;

    public function __construct($namespace = null)
    {
        $this->startSession();

        $this->setNamespace($namespace);
    }

    private function startSession()
    {
        if ( ! $this->isStarted())
        {
            session_start();
        }
    }

    private function isStarted()
    {
        return session_status() === PHP_SESSION_ACTIVE;
    }

    public function get($key, $namespace = null)
    {
        $session = $this->getNamespaceData($namespace);

        return isset($session[$key])
                ? $session[$key]
                : null;
    }

/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
                $app['request']->headers->all(),
                $app['request']->server('HTTP_USER_AGENT')
            );

            return new RepositoryManager(
                new GeoIp($this->getConfig('geoip_database_path')),

                new MobileDetect(),

                $uaParser,

                $app['tracker.authentication'],

                $app['session.store'],

                $app['tracker.config'],

                new Session($sessionModel,
                            $app['tracker.config'],
                            new PhpSession()),

                $logRepository,

                new Path($pathModel),

                new Query($queryModel),

                new QueryArgument($queryArgumentModel),

                new Agent($agentModel),

                new Device($deviceModel),

                new Cookie($cookieModel,
                            $app['tracker.config'],
                            $app['request'],
                            $app['cookie']),

                new Domain($domainModel),

/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
    protected function isBuildable($concrete, $abstract)
    {
        return $concrete === $abstract || $concrete instanceof Closure;
    }
 
    /**
     * Instantiate a concrete instance of the given type.
     *
     * @param  string  $concrete
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    public function build($concrete)
    {
        // If the concrete type is actually a Closure, we will just execute it and
        // hand back the results of the functions, which allows functions to be
        // used as resolvers for more fine-tuned resolution of these objects.
        if ($concrete instanceof Closure) {
            return $concrete($this, $this->getLastParameterOverride());
        }
 
        $reflector = new ReflectionClass($concrete);
 
        // If the type is not instantiable, the developer is attempting to resolve
        // an abstract type such as an Interface of Abstract Class and there is
        // no binding registered for the abstractions so we need to bail out.
        if (! $reflector->isInstantiable()) {
            return $this->notInstantiable($concrete);
        }
 
        $this->buildStack[] = $concrete;
 
        $constructor = $reflector->getConstructor();
 
        // If there are no constructors, that means there are no dependencies then
        // we can just resolve the instances of the objects right away, without
        // resolving any other types or dependencies out of these containers.
        if (is_null($constructor)) {
            array_pop($this->buildStack);
Arguments
  1. Application {#2}
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
        $needsContextualBuild = ! empty($parameters) || ! is_null(
            $this->getContextualConcrete($abstract)
        );
 
        // If an instance of the type is currently being managed as a singleton we'll
        // just return an existing instance instead of instantiating new instances
        // so the developer can keep using the same objects instance every time.
        if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
            return $this->instances[$abstract];
        }
 
        $this->with[] = $parameters;
 
        $concrete = $this->getConcrete($abstract);
 
        // We're ready to instantiate an instance of the concrete type registered for
        // the binding. This will instantiate the types, as well as resolve any of
        // its "nested" dependencies recursively until all have gotten resolved.
        if ($this->isBuildable($concrete, $abstract)) {
            $object = $this->build($concrete);
        } else {
            $object = $this->make($concrete);
        }
 
        // If we defined any extenders for this type, we'll need to spin through them
        // and apply them to the object being built. This allows for the extension
        // of services, such as changing configuration or decorating the object.
        foreach ($this->getExtenders($abstract) as $extender) {
            $object = $extender($object, $this);
        }
 
        // If the requested type is registered as a singleton we'll want to cache off
        // the instances in "memory" so we can return it later without creating an
        // entirely new instance of an object on each subsequent request for it.
        if ($this->isShared($abstract) && ! $needsContextualBuild) {
            $this->instances[$abstract] = $object;
        }
 
        $this->fireResolvingCallbacks($abstract, $object);
 
Arguments
  1. Closure {#2167
      class: "PragmaRX\Tracker\Vendor\Laravel\ServiceProvider"
      this: ServiceProvider {#2181 …}
      parameters: {
        $app: {}
      }
    }
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function makeWith($abstract, array $parameters = [])
    {
        return $this->make($abstract, $parameters);
    }
 
    /**
     * Resolve the given type from the container.
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        return $this->resolve($abstract, $parameters);
    }
 
    /**
     *  {@inheritdoc}
     */
    public function get($id)
    {
        if ($this->has($id)) {
            return $this->resolve($id);
        }
 
        throw new EntryNotFoundException;
    }
 
    /**
     * Resolve the given type from the container.
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
Arguments
  1. "tracker.repositories"
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
    }
 
    /**
     * Resolve the given type from the container.
     *
     * (Overriding Container::make)
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        $abstract = $this->getAlias($abstract);
 
        if (isset($this->deferredServices[$abstract]) && ! isset($this->instances[$abstract])) {
            $this->loadDeferredProvider($abstract);
        }
 
        return parent::make($abstract, $parameters);
    }
 
    /**
     * Determine if the given abstract type has been bound.
     *
     * (Overriding Container::bound)
     *
     * @param  string  $abstract
     * @return bool
     */
    public function bound($abstract)
    {
        return isset($this->deferredServices[$abstract]) || parent::bound($abstract);
    }
 
    /**
     * Determine if the application has booted.
     *
     * @return bool
     */
Arguments
  1. "tracker.repositories"
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
    /**
     * Determine if a given offset exists.
     *
     * @param  string  $key
     * @return bool
     */
    public function offsetExists($key)
    {
        return $this->bound($key);
    }
 
    /**
     * Get the value at a given offset.
     *
     * @param  string  $key
     * @return mixed
     */
    public function offsetGet($key)
    {
        return $this->make($key);
    }
 
    /**
     * Set the value at a given offset.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @return void
     */
    public function offsetSet($key, $value)
    {
        $this->bind($key, $value instanceof Closure ? $value : function () use ($value) {
            return $value;
        });
    }
 
    /**
     * Unset the value at a given offset.
     *
     * @param  string  $key
Arguments
  1. "tracker.repositories"
    
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
     */
    public function provides()
    {
        return ['tracker'];
    }

    /**
     * Takes all the components of Tracker and glues them
     * together to create Tracker.
     *
     * @return void
     */
    protected function registerTracker()
    {
        $this->app->singleton('tracker', function ($app) {
            $app['tracker.loaded'] = true;

            return new Tracker(
                                    $app['tracker.config'],
                                    $app['tracker.repositories'],
                                    $app['request'],
                                    $app['router'],
                                    $app['log'],
                                    $app,
                                    $app['tracker.messages']
                                );
        });
    }

    public function registerRepositories()
    {
        $this->app->singleton('tracker.repositories', function ($app) {
            try {
                $uaParser = new UserAgentParser($app->make('path.base'));
            } catch (\Exception $exception) {
                $uaParser = null;
            }

            $sessionModel = $this->instantiateModel('session_model');

Arguments
  1. "tracker.repositories"
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
    protected function isBuildable($concrete, $abstract)
    {
        return $concrete === $abstract || $concrete instanceof Closure;
    }
 
    /**
     * Instantiate a concrete instance of the given type.
     *
     * @param  string  $concrete
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    public function build($concrete)
    {
        // If the concrete type is actually a Closure, we will just execute it and
        // hand back the results of the functions, which allows functions to be
        // used as resolvers for more fine-tuned resolution of these objects.
        if ($concrete instanceof Closure) {
            return $concrete($this, $this->getLastParameterOverride());
        }
 
        $reflector = new ReflectionClass($concrete);
 
        // If the type is not instantiable, the developer is attempting to resolve
        // an abstract type such as an Interface of Abstract Class and there is
        // no binding registered for the abstractions so we need to bail out.
        if (! $reflector->isInstantiable()) {
            return $this->notInstantiable($concrete);
        }
 
        $this->buildStack[] = $concrete;
 
        $constructor = $reflector->getConstructor();
 
        // If there are no constructors, that means there are no dependencies then
        // we can just resolve the instances of the objects right away, without
        // resolving any other types or dependencies out of these containers.
        if (is_null($constructor)) {
            array_pop($this->buildStack);
Arguments
  1. Application {#2}
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
        $needsContextualBuild = ! empty($parameters) || ! is_null(
            $this->getContextualConcrete($abstract)
        );
 
        // If an instance of the type is currently being managed as a singleton we'll
        // just return an existing instance instead of instantiating new instances
        // so the developer can keep using the same objects instance every time.
        if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
            return $this->instances[$abstract];
        }
 
        $this->with[] = $parameters;
 
        $concrete = $this->getConcrete($abstract);
 
        // We're ready to instantiate an instance of the concrete type registered for
        // the binding. This will instantiate the types, as well as resolve any of
        // its "nested" dependencies recursively until all have gotten resolved.
        if ($this->isBuildable($concrete, $abstract)) {
            $object = $this->build($concrete);
        } else {
            $object = $this->make($concrete);
        }
 
        // If we defined any extenders for this type, we'll need to spin through them
        // and apply them to the object being built. This allows for the extension
        // of services, such as changing configuration or decorating the object.
        foreach ($this->getExtenders($abstract) as $extender) {
            $object = $extender($object, $this);
        }
 
        // If the requested type is registered as a singleton we'll want to cache off
        // the instances in "memory" so we can return it later without creating an
        // entirely new instance of an object on each subsequent request for it.
        if ($this->isShared($abstract) && ! $needsContextualBuild) {
            $this->instances[$abstract] = $object;
        }
 
        $this->fireResolvingCallbacks($abstract, $object);
 
Arguments
  1. Closure {#2175
      class: "PragmaRX\Tracker\Vendor\Laravel\ServiceProvider"
      this: ServiceProvider {#2181 …}
      parameters: {
        $app: {}
      }
    }
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function makeWith($abstract, array $parameters = [])
    {
        return $this->make($abstract, $parameters);
    }
 
    /**
     * Resolve the given type from the container.
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        return $this->resolve($abstract, $parameters);
    }
 
    /**
     *  {@inheritdoc}
     */
    public function get($id)
    {
        if ($this->has($id)) {
            return $this->resolve($id);
        }
 
        throw new EntryNotFoundException;
    }
 
    /**
     * Resolve the given type from the container.
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
Arguments
  1. "tracker"
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
    }
 
    /**
     * Resolve the given type from the container.
     *
     * (Overriding Container::make)
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        $abstract = $this->getAlias($abstract);
 
        if (isset($this->deferredServices[$abstract]) && ! isset($this->instances[$abstract])) {
            $this->loadDeferredProvider($abstract);
        }
 
        return parent::make($abstract, $parameters);
    }
 
    /**
     * Determine if the given abstract type has been bound.
     *
     * (Overriding Container::bound)
     *
     * @param  string  $abstract
     * @return bool
     */
    public function bound($abstract)
    {
        return isset($this->deferredServices[$abstract]) || parent::bound($abstract);
    }
 
    /**
     * Determine if the application has booted.
     *
     * @return bool
     */
Arguments
  1. "tracker"
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
    /**
     * Determine if a given offset exists.
     *
     * @param  string  $key
     * @return bool
     */
    public function offsetExists($key)
    {
        return $this->bound($key);
    }
 
    /**
     * Get the value at a given offset.
     *
     * @param  string  $key
     * @return mixed
     */
    public function offsetGet($key)
    {
        return $this->make($key);
    }
 
    /**
     * Set the value at a given offset.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @return void
     */
    public function offsetSet($key, $value)
    {
        $this->bind($key, $value instanceof Closure ? $value : function () use ($value) {
            return $value;
        });
    }
 
    /**
     * Unset the value at a given offset.
     *
     * @param  string  $key
Arguments
  1. "tracker"
    
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
            $all_bindings_resolved =
                (!in_array(false, $checked_bindings, true)) ?: false;

            if ($me->tracker &&
                !$me->userChecked &&
                $me->getConfig('log_users') &&
                $all_bindings_resolved
            ) {
                $me->userChecked = $me->getTracker()->checkCurrentUser();
            }
        });
    }

    /**
     * @return Tracker
     */
    public function getTracker()
    {
        if (!$this->tracker) {
            $this->tracker = $this->app['tracker'];
        }

        return $this->tracker;
    }

    public function getRootDirectory()
    {
        return __DIR__.'/../..';
    }

    protected function getAppUrl()
    {
        return $this->app['request']->url();
    }

    public function loadTranslations()
    {
        $this->loadTranslationsFrom(__DIR__.'/../../lang', 'tracker');
    }

Arguments
  1. "tracker"
    
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
        $this->app['events']->listen('*', function ($object = null) use ($me) {
            if ($me->app['tracker.events']->isOff()) {
                return;
            }

            // To avoid infinite recursion, event tracking while logging events
            // must be turned off
            $me->app['tracker.events']->turnOff();

            // Log events even before application is ready
            // $me->app['tracker.events']->logEvent(
            //    $me->app['events']->firing(),
            //    $object
            // );
            // TODO: we have to investigate a way of doing this

            // Can only send events to database after application is ready
            if (isset($me->app['tracker.loaded'])) {
                $me->getTracker()->logEvents();
            }

            // Turn the event tracking to on again
            $me->app['tracker.events']->turnOn();
        });
    }

    protected function loadRoutes()
    {
        if (!$this->getConfig('stats_panel_enabled')) {
            return false;
        }

        $prefix = $this->getConfig('stats_base_uri');

        $namespace = $this->getConfig('stats_controllers_namespace');

        $filters = [];

        if ($before = $this->getConfig('stats_routes_before_filter')) {
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Events
/
Dispatcher.php
 
        return $listeners;
    }
 
    /**
     * Register an event listener with the dispatcher.
     *
     * @param  \Closure|string  $listener
     * @param  bool  $wildcard
     * @return \Closure
     */
    public function makeListener($listener, $wildcard = false)
    {
        if (is_string($listener)) {
            return $this->createClassListener($listener, $wildcard);
        }
 
        return function ($event, $payload) use ($listener, $wildcard) {
            if ($wildcard) {
                return $listener($event, $payload);
            }
 
            return $listener(...array_values($payload));
        };
    }
 
    /**
     * Create a class based listener using the IoC container.
     *
     * @param  string  $listener
     * @param  bool  $wildcard
     * @return \Closure
     */
    public function createClassListener($listener, $wildcard = false)
    {
        return function ($event, $payload) use ($listener, $wildcard) {
            if ($wildcard) {
                return call_user_func($this->createClassCallable($listener), $event, $payload);
            }
 
Arguments
  1. "eloquent.booting: PragmaRX\Tracker\Vendor\Laravel\Models\Session"
    
  2. array:1 [
      0 => Session {#1837}
    ]
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Events
/
Dispatcher.php
     * @param  bool  $halt
     * @return array|null
     */
    public function dispatch($event, $payload = [], $halt = false)
    {
        // When the given "event" is actually an object we will assume it is an event
        // object and use the class as the event name and this event itself as the
        // payload to the handler, which makes object based events quite simple.
        list($event, $payload) = $this->parseEventAndPayload(
            $event, $payload
        );
 
        if ($this->shouldBroadcast($payload)) {
            $this->broadcastEvent($payload[0]);
        }
 
        $responses = [];
 
        foreach ($this->getListeners($event) as $listener) {
            $response = $listener($event, $payload);
 
            // If a response is returned from the listener and event halting is enabled
            // we will just return this response, and not call the rest of the event
            // listeners. Otherwise we will add the response on the response list.
            if ($halt && ! is_null($response)) {
                return $response;
            }
 
            // If a boolean false is returned from a listener, we will stop propagating
            // the event to any further listeners down in the chain, else we keep on
            // looping through the listeners and firing every one in our sequence.
            if ($response === false) {
                break;
            }
 
            $responses[] = $response;
        }
 
        return $halt ? null : $responses;
    }
Arguments
  1. "eloquent.booting: PragmaRX\Tracker\Vendor\Laravel\Models\Session"
    
  2. array:1 [
      0 => Session {#1837}
    ]
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Events
/
Dispatcher.php
     * @param  string|object  $event
     * @param  mixed  $payload
     * @return array|null
     */
    public function until($event, $payload = [])
    {
        return $this->dispatch($event, $payload, true);
    }
 
    /**
     * Fire an event and call the listeners.
     *
     * @param  string|object  $event
     * @param  mixed  $payload
     * @param  bool  $halt
     * @return array|null
     */
    public function fire($event, $payload = [], $halt = false)
    {
        return $this->dispatch($event, $payload, $halt);
    }
 
    /**
     * Fire an event and call the listeners.
     *
     * @param  string|object  $event
     * @param  mixed  $payload
     * @param  bool  $halt
     * @return array|null
     */
    public function dispatch($event, $payload = [], $halt = false)
    {
        // When the given "event" is actually an object we will assume it is an event
        // object and use the class as the event name and this event itself as the
        // payload to the handler, which makes object based events quite simple.
        list($event, $payload) = $this->parseEventAndPayload(
            $event, $payload
        );
 
        if ($this->shouldBroadcast($payload)) {
Arguments
  1. "eloquent.booting: PragmaRX\Tracker\Vendor\Laravel\Models\Session"
    
  2. array:1 [
      0 => Session {#1837}
    ]
    
  3. false
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Concerns
/
HasEvents.php
    {
        if (! isset(static::$dispatcher)) {
            return true;
        }
 
        // First, we will get the proper method to call on the event dispatcher, and then we
        // will attempt to fire a custom, object based event for the given event. If that
        // returns a result we can return that result, or we'll call the string events.
        $method = $halt ? 'until' : 'fire';
 
        $result = $this->filterModelEventResults(
            $this->fireCustomModelEvent($event, $method)
        );
 
        if ($result === false) {
            return false;
        }
 
        return ! empty($result) ? $result : static::$dispatcher->{$method}(
            "eloquent.{$event}: ".static::class, $this
        );
    }
 
    /**
     * Fire a custom model event for the given event.
     *
     * @param  string  $event
     * @param  string  $method
     * @return mixed|null
     */
    protected function fireCustomModelEvent($event, $method)
    {
        if (! isset($this->dispatchesEvents[$event])) {
            return;
        }
 
        $result = static::$dispatcher->$method(new $this->dispatchesEvents[$event]($this));
 
        if (! is_null($result)) {
            return $result;
Arguments
  1. "eloquent.booting: PragmaRX\Tracker\Vendor\Laravel\Models\Session"
    
  2. Session {#1837}
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Model.php
    public function __construct(array $attributes = [])
    {
        $this->bootIfNotBooted();
 
        $this->syncOriginal();
 
        $this->fill($attributes);
    }
 
    /**
     * Check if the model needs to be booted and if so, do it.
     *
     * @return void
     */
    protected function bootIfNotBooted()
    {
        if (! isset(static::$booted[static::class])) {
            static::$booted[static::class] = true;
 
            $this->fireModelEvent('booting', false);
 
            static::boot();
 
            $this->fireModelEvent('booted', false);
        }
    }
 
    /**
     * The "booting" method of the model.
     *
     * @return void
     */
    protected static function boot()
    {
        static::bootTraits();
    }
 
    /**
     * Boot all of the bootable traits on the model.
     *
Arguments
  1. "booting"
    
  2. false
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Eloquent
/
Model.php
     * @var string
     */
    const CREATED_AT = 'created_at';
 
    /**
     * The name of the "updated at" column.
     *
     * @var string
     */
    const UPDATED_AT = 'updated_at';
 
    /**
     * Create a new Eloquent model instance.
     *
     * @param  array  $attributes
     * @return void
     */
    public function __construct(array $attributes = [])
    {
        $this->bootIfNotBooted();
 
        $this->syncOriginal();
 
        $this->fill($attributes);
    }
 
    /**
     * Check if the model needs to be booted and if so, do it.
     *
     * @return void
     */
    protected function bootIfNotBooted()
    {
        if (! isset(static::$booted[static::class])) {
            static::$booted[static::class] = true;
 
            $this->fireModelEvent('booting', false);
 
            static::boot();
 
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
Models
/
Base.php
<?php

namespace PragmaRX\Tracker\Vendor\Laravel\Models;

use Illuminate\Database\Eloquent\Model as Eloquent;
use Symfony\Component\Console\Application;

class Base extends Eloquent
{
    protected $hidden = ['config'];

    private $config;

    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);

        $this->setConnection($this->getConfig()->get('connection'));
    }

    public function getConfig()
    {
        if ($this->config) {
            return $this->config;
        } elseif (isset($GLOBALS['app']) && $GLOBALS['app'] instanceof Application) {
            return $GLOBALS['app']['tracker.config'];
        }

        return app()->make('tracker.config');
    }

    public function save(array $options = [])
    {
        parent::save($options);

        app('tracker.cache')->makeKeyAndPut($this, $this->getKeyName());
    }

    public function setConfig($config)
    {
Arguments
  1. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
Models
/
Session.php
class Session extends Base
{
    protected $table = 'tracker_sessions';

    protected $fillable = [
        'uuid',
        'user_id',
        'device_id',
        'language_id',
        'agent_id',
        'client_ip',
        'cookie_id',
        'referer_id',
        'geoip_id',
        'is_robot',
    ];

    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
    }

    public function user()
    {
        return $this->belongsTo($this->getConfig()->get('user_model'));
    }

    public function device()
    {
        return $this->belongsTo($this->getConfig()->get('device_model'));
    }

    public function language()
    {
        return $this->belongsTo($this->getConfig()->get('language_model'));
    }

    public function agent()
    {
        return $this->belongsTo($this->getConfig()->get('agent_model'));
Arguments
  1. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
            }
        }
    }

    /**
     * @param string $modelName
     */
    protected function instantiateModel($modelName)
    {
        $model = $this->getConfig($modelName);

        if (!$model) {
            $message = "Tracker: Model not found for '$modelName'.";

            $this->app['log']->error($message);

            throw new \Exception($message);
        }

        $model = new $model();

        $model->setConfig($this->app['tracker.config']);

        if ($connection = $this->getConfig('connection')) {
            $model->setConnection($connection);
        }

        return $model;
    }

    protected function registerSqlQueryLogWatcher()
    {
        $me = $this;

        if (!class_exists('Illuminate\Database\Events\QueryExecuted')) {
            $this->app['events']->listen('illuminate.query', function ($query,
                                                                        $bindings,
                                                                        $time,
                                                                        $name) use ($me) {
                $me->logSqlQuery($query, $bindings, $time, $name);
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
                                    $app['tracker.repositories'],
                                    $app['request'],
                                    $app['router'],
                                    $app['log'],
                                    $app,
                                    $app['tracker.messages']
                                );
        });
    }

    public function registerRepositories()
    {
        $this->app->singleton('tracker.repositories', function ($app) {
            try {
                $uaParser = new UserAgentParser($app->make('path.base'));
            } catch (\Exception $exception) {
                $uaParser = null;
            }

            $sessionModel = $this->instantiateModel('session_model');

            $logModel = $this->instantiateModel('log_model');

            $agentModel = $this->instantiateModel('agent_model');

            $deviceModel = $this->instantiateModel('device_model');

            $cookieModel = $this->instantiateModel('cookie_model');

            $pathModel = $this->instantiateModel('path_model');

            $queryModel = $this->instantiateModel('query_model');

            $queryArgumentModel = $this->instantiateModel('query_argument_model');

            $domainModel = $this->instantiateModel('domain_model');

            $refererModel = $this->instantiateModel('referer_model');

            $refererSearchTermModel = $this->instantiateModel('referer_search_term_model');
Arguments
  1. "session_model"
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
    protected function isBuildable($concrete, $abstract)
    {
        return $concrete === $abstract || $concrete instanceof Closure;
    }
 
    /**
     * Instantiate a concrete instance of the given type.
     *
     * @param  string  $concrete
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    public function build($concrete)
    {
        // If the concrete type is actually a Closure, we will just execute it and
        // hand back the results of the functions, which allows functions to be
        // used as resolvers for more fine-tuned resolution of these objects.
        if ($concrete instanceof Closure) {
            return $concrete($this, $this->getLastParameterOverride());
        }
 
        $reflector = new ReflectionClass($concrete);
 
        // If the type is not instantiable, the developer is attempting to resolve
        // an abstract type such as an Interface of Abstract Class and there is
        // no binding registered for the abstractions so we need to bail out.
        if (! $reflector->isInstantiable()) {
            return $this->notInstantiable($concrete);
        }
 
        $this->buildStack[] = $concrete;
 
        $constructor = $reflector->getConstructor();
 
        // If there are no constructors, that means there are no dependencies then
        // we can just resolve the instances of the objects right away, without
        // resolving any other types or dependencies out of these containers.
        if (is_null($constructor)) {
            array_pop($this->buildStack);
Arguments
  1. Application {#2}
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
        $needsContextualBuild = ! empty($parameters) || ! is_null(
            $this->getContextualConcrete($abstract)
        );
 
        // If an instance of the type is currently being managed as a singleton we'll
        // just return an existing instance instead of instantiating new instances
        // so the developer can keep using the same objects instance every time.
        if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
            return $this->instances[$abstract];
        }
 
        $this->with[] = $parameters;
 
        $concrete = $this->getConcrete($abstract);
 
        // We're ready to instantiate an instance of the concrete type registered for
        // the binding. This will instantiate the types, as well as resolve any of
        // its "nested" dependencies recursively until all have gotten resolved.
        if ($this->isBuildable($concrete, $abstract)) {
            $object = $this->build($concrete);
        } else {
            $object = $this->make($concrete);
        }
 
        // If we defined any extenders for this type, we'll need to spin through them
        // and apply them to the object being built. This allows for the extension
        // of services, such as changing configuration or decorating the object.
        foreach ($this->getExtenders($abstract) as $extender) {
            $object = $extender($object, $this);
        }
 
        // If the requested type is registered as a singleton we'll want to cache off
        // the instances in "memory" so we can return it later without creating an
        // entirely new instance of an object on each subsequent request for it.
        if ($this->isShared($abstract) && ! $needsContextualBuild) {
            $this->instances[$abstract] = $object;
        }
 
        $this->fireResolvingCallbacks($abstract, $object);
 
Arguments
  1. Closure {#2167
      class: "PragmaRX\Tracker\Vendor\Laravel\ServiceProvider"
      this: ServiceProvider {#2181 …}
      parameters: {
        $app: {}
      }
    }
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function makeWith($abstract, array $parameters = [])
    {
        return $this->make($abstract, $parameters);
    }
 
    /**
     * Resolve the given type from the container.
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        return $this->resolve($abstract, $parameters);
    }
 
    /**
     *  {@inheritdoc}
     */
    public function get($id)
    {
        if ($this->has($id)) {
            return $this->resolve($id);
        }
 
        throw new EntryNotFoundException;
    }
 
    /**
     * Resolve the given type from the container.
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
Arguments
  1. "tracker.repositories"
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
    }
 
    /**
     * Resolve the given type from the container.
     *
     * (Overriding Container::make)
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        $abstract = $this->getAlias($abstract);
 
        if (isset($this->deferredServices[$abstract]) && ! isset($this->instances[$abstract])) {
            $this->loadDeferredProvider($abstract);
        }
 
        return parent::make($abstract, $parameters);
    }
 
    /**
     * Determine if the given abstract type has been bound.
     *
     * (Overriding Container::bound)
     *
     * @param  string  $abstract
     * @return bool
     */
    public function bound($abstract)
    {
        return isset($this->deferredServices[$abstract]) || parent::bound($abstract);
    }
 
    /**
     * Determine if the application has booted.
     *
     * @return bool
     */
Arguments
  1. "tracker.repositories"
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
    /**
     * Determine if a given offset exists.
     *
     * @param  string  $key
     * @return bool
     */
    public function offsetExists($key)
    {
        return $this->bound($key);
    }
 
    /**
     * Get the value at a given offset.
     *
     * @param  string  $key
     * @return mixed
     */
    public function offsetGet($key)
    {
        return $this->make($key);
    }
 
    /**
     * Set the value at a given offset.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @return void
     */
    public function offsetSet($key, $value)
    {
        $this->bind($key, $value instanceof Closure ? $value : function () use ($value) {
            return $value;
        });
    }
 
    /**
     * Unset the value at a given offset.
     *
     * @param  string  $key
Arguments
  1. "tracker.repositories"
    
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
     */
    public function provides()
    {
        return ['tracker'];
    }

    /**
     * Takes all the components of Tracker and glues them
     * together to create Tracker.
     *
     * @return void
     */
    protected function registerTracker()
    {
        $this->app->singleton('tracker', function ($app) {
            $app['tracker.loaded'] = true;

            return new Tracker(
                                    $app['tracker.config'],
                                    $app['tracker.repositories'],
                                    $app['request'],
                                    $app['router'],
                                    $app['log'],
                                    $app,
                                    $app['tracker.messages']
                                );
        });
    }

    public function registerRepositories()
    {
        $this->app->singleton('tracker.repositories', function ($app) {
            try {
                $uaParser = new UserAgentParser($app->make('path.base'));
            } catch (\Exception $exception) {
                $uaParser = null;
            }

            $sessionModel = $this->instantiateModel('session_model');

Arguments
  1. "tracker.repositories"
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
    protected function isBuildable($concrete, $abstract)
    {
        return $concrete === $abstract || $concrete instanceof Closure;
    }
 
    /**
     * Instantiate a concrete instance of the given type.
     *
     * @param  string  $concrete
     * @return mixed
     *
     * @throws \Illuminate\Contracts\Container\BindingResolutionException
     */
    public function build($concrete)
    {
        // If the concrete type is actually a Closure, we will just execute it and
        // hand back the results of the functions, which allows functions to be
        // used as resolvers for more fine-tuned resolution of these objects.
        if ($concrete instanceof Closure) {
            return $concrete($this, $this->getLastParameterOverride());
        }
 
        $reflector = new ReflectionClass($concrete);
 
        // If the type is not instantiable, the developer is attempting to resolve
        // an abstract type such as an Interface of Abstract Class and there is
        // no binding registered for the abstractions so we need to bail out.
        if (! $reflector->isInstantiable()) {
            return $this->notInstantiable($concrete);
        }
 
        $this->buildStack[] = $concrete;
 
        $constructor = $reflector->getConstructor();
 
        // If there are no constructors, that means there are no dependencies then
        // we can just resolve the instances of the objects right away, without
        // resolving any other types or dependencies out of these containers.
        if (is_null($constructor)) {
            array_pop($this->buildStack);
Arguments
  1. Application {#2}
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
        $needsContextualBuild = ! empty($parameters) || ! is_null(
            $this->getContextualConcrete($abstract)
        );
 
        // If an instance of the type is currently being managed as a singleton we'll
        // just return an existing instance instead of instantiating new instances
        // so the developer can keep using the same objects instance every time.
        if (isset($this->instances[$abstract]) && ! $needsContextualBuild) {
            return $this->instances[$abstract];
        }
 
        $this->with[] = $parameters;
 
        $concrete = $this->getConcrete($abstract);
 
        // We're ready to instantiate an instance of the concrete type registered for
        // the binding. This will instantiate the types, as well as resolve any of
        // its "nested" dependencies recursively until all have gotten resolved.
        if ($this->isBuildable($concrete, $abstract)) {
            $object = $this->build($concrete);
        } else {
            $object = $this->make($concrete);
        }
 
        // If we defined any extenders for this type, we'll need to spin through them
        // and apply them to the object being built. This allows for the extension
        // of services, such as changing configuration or decorating the object.
        foreach ($this->getExtenders($abstract) as $extender) {
            $object = $extender($object, $this);
        }
 
        // If the requested type is registered as a singleton we'll want to cache off
        // the instances in "memory" so we can return it later without creating an
        // entirely new instance of an object on each subsequent request for it.
        if ($this->isShared($abstract) && ! $needsContextualBuild) {
            $this->instances[$abstract] = $object;
        }
 
        $this->fireResolvingCallbacks($abstract, $object);
 
Arguments
  1. Closure {#2175
      class: "PragmaRX\Tracker\Vendor\Laravel\ServiceProvider"
      this: ServiceProvider {#2181 …}
      parameters: {
        $app: {}
      }
    }
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function makeWith($abstract, array $parameters = [])
    {
        return $this->make($abstract, $parameters);
    }
 
    /**
     * Resolve the given type from the container.
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        return $this->resolve($abstract, $parameters);
    }
 
    /**
     *  {@inheritdoc}
     */
    public function get($id)
    {
        if ($this->has($id)) {
            return $this->resolve($id);
        }
 
        throw new EntryNotFoundException;
    }
 
    /**
     * Resolve the given type from the container.
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
Arguments
  1. "tracker"
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
    }
 
    /**
     * Resolve the given type from the container.
     *
     * (Overriding Container::make)
     *
     * @param  string  $abstract
     * @param  array  $parameters
     * @return mixed
     */
    public function make($abstract, array $parameters = [])
    {
        $abstract = $this->getAlias($abstract);
 
        if (isset($this->deferredServices[$abstract]) && ! isset($this->instances[$abstract])) {
            $this->loadDeferredProvider($abstract);
        }
 
        return parent::make($abstract, $parameters);
    }
 
    /**
     * Determine if the given abstract type has been bound.
     *
     * (Overriding Container::bound)
     *
     * @param  string  $abstract
     * @return bool
     */
    public function bound($abstract)
    {
        return isset($this->deferredServices[$abstract]) || parent::bound($abstract);
    }
 
    /**
     * Determine if the application has booted.
     *
     * @return bool
     */
Arguments
  1. "tracker"
    
  2. []
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
    /**
     * Determine if a given offset exists.
     *
     * @param  string  $key
     * @return bool
     */
    public function offsetExists($key)
    {
        return $this->bound($key);
    }
 
    /**
     * Get the value at a given offset.
     *
     * @param  string  $key
     * @return mixed
     */
    public function offsetGet($key)
    {
        return $this->make($key);
    }
 
    /**
     * Set the value at a given offset.
     *
     * @param  string  $key
     * @param  mixed   $value
     * @return void
     */
    public function offsetSet($key, $value)
    {
        $this->bind($key, $value instanceof Closure ? $value : function () use ($value) {
            return $value;
        });
    }
 
    /**
     * Unset the value at a given offset.
     *
     * @param  string  $key
Arguments
  1. "tracker"
    
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
            $all_bindings_resolved =
                (!in_array(false, $checked_bindings, true)) ?: false;

            if ($me->tracker &&
                !$me->userChecked &&
                $me->getConfig('log_users') &&
                $all_bindings_resolved
            ) {
                $me->userChecked = $me->getTracker()->checkCurrentUser();
            }
        });
    }

    /**
     * @return Tracker
     */
    public function getTracker()
    {
        if (!$this->tracker) {
            $this->tracker = $this->app['tracker'];
        }

        return $this->tracker;
    }

    public function getRootDirectory()
    {
        return __DIR__.'/../..';
    }

    protected function getAppUrl()
    {
        return $this->app['request']->url();
    }

    public function loadTranslations()
    {
        $this->loadTranslationsFrom(__DIR__.'/../../lang', 'tracker');
    }

Arguments
  1. "tracker"
    
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
                                                                        $name) use ($me) {
                $me->logSqlQuery($query, $bindings, $time, $name);
            });
        } else {
            $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function ($query) use ($me) {
                $me->logSqlQuery($query);
            });
        }
    }

    /**
     * @param $query
     * @param $bindings
     * @param $time
     * @param $name
     * @param $me
     */
    public function logSqlQuery($query, $bindings = null, $time = null, $connectionName = null)
    {
        if ($this->getTracker()->isEnabled()) {
            if ($query instanceof \Illuminate\Database\Events\QueryExecuted) {
                $bindings = $query->bindings;
                $time = $query->time;
                $connectionName = $query->connectionName;
                $query = $query->sql;
            }

            $this->getTracker()->logSqlQuery($query, $bindings, $time, $connectionName);
        }
    }

    protected function registerGlobalEventLogger()
    {
        $me = $this;

        $this->app->singleton('tracker.events', function ($app) {
            return new EventStorage();
        });

        $this->app['events']->listen('*', function ($object = null) use ($me) {
/
home
/
westdar1
/
public_html
/
vendor
/
pragmarx
/
tracker
/
src
/
Vendor
/
Laravel
/
ServiceProvider.php
            $model->setConnection($connection);
        }

        return $model;
    }

    protected function registerSqlQueryLogWatcher()
    {
        $me = $this;

        if (!class_exists('Illuminate\Database\Events\QueryExecuted')) {
            $this->app['events']->listen('illuminate.query', function ($query,
                                                                        $bindings,
                                                                        $time,
                                                                        $name) use ($me) {
                $me->logSqlQuery($query, $bindings, $time, $name);
            });
        } else {
            $this->app['events']->listen('Illuminate\Database\Events\QueryExecuted', function ($query) use ($me) {
                $me->logSqlQuery($query);
            });
        }
    }

    /**
     * @param $query
     * @param $bindings
     * @param $time
     * @param $name
     * @param $me
     */
    public function logSqlQuery($query, $bindings = null, $time = null, $connectionName = null)
    {
        if ($this->getTracker()->isEnabled()) {
            if ($query instanceof \Illuminate\Database\Events\QueryExecuted) {
                $bindings = $query->bindings;
                $time = $query->time;
                $connectionName = $query->connectionName;
                $query = $query->sql;
            }
Arguments
  1. QueryExecuted {#1842}
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Events
/
Dispatcher.php
 
    /**
     * Register an event listener with the dispatcher.
     *
     * @param  \Closure|string  $listener
     * @param  bool  $wildcard
     * @return \Closure
     */
    public function makeListener($listener, $wildcard = false)
    {
        if (is_string($listener)) {
            return $this->createClassListener($listener, $wildcard);
        }
 
        return function ($event, $payload) use ($listener, $wildcard) {
            if ($wildcard) {
                return $listener($event, $payload);
            }
 
            return $listener(...array_values($payload));
        };
    }
 
    /**
     * Create a class based listener using the IoC container.
     *
     * @param  string  $listener
     * @param  bool  $wildcard
     * @return \Closure
     */
    public function createClassListener($listener, $wildcard = false)
    {
        return function ($event, $payload) use ($listener, $wildcard) {
            if ($wildcard) {
                return call_user_func($this->createClassCallable($listener), $event, $payload);
            }
 
            return call_user_func_array(
                $this->createClassCallable($listener), $payload
            );
Arguments
  1. QueryExecuted {#1842}
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Events
/
Dispatcher.php
     * @param  bool  $halt
     * @return array|null
     */
    public function dispatch($event, $payload = [], $halt = false)
    {
        // When the given "event" is actually an object we will assume it is an event
        // object and use the class as the event name and this event itself as the
        // payload to the handler, which makes object based events quite simple.
        list($event, $payload) = $this->parseEventAndPayload(
            $event, $payload
        );
 
        if ($this->shouldBroadcast($payload)) {
            $this->broadcastEvent($payload[0]);
        }
 
        $responses = [];
 
        foreach ($this->getListeners($event) as $listener) {
            $response = $listener($event, $payload);
 
            // If a response is returned from the listener and event halting is enabled
            // we will just return this response, and not call the rest of the event
            // listeners. Otherwise we will add the response on the response list.
            if ($halt && ! is_null($response)) {
                return $response;
            }
 
            // If a boolean false is returned from a listener, we will stop propagating
            // the event to any further listeners down in the chain, else we keep on
            // looping through the listeners and firing every one in our sequence.
            if ($response === false) {
                break;
            }
 
            $responses[] = $response;
        }
 
        return $halt ? null : $responses;
    }
Arguments
  1. "Illuminate\Database\Events\QueryExecuted"
    
  2. array:1 [
      0 => QueryExecuted {#1842}
    ]
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
        switch ($event) {
            case 'beganTransaction':
                return $this->events->dispatch(new Events\TransactionBeginning($this));
            case 'committed':
                return $this->events->dispatch(new Events\TransactionCommitted($this));
            case 'rollingBack':
                return $this->events->dispatch(new Events\TransactionRolledBack($this));
        }
    }
 
    /**
     * Fire the given event if possible.
     *
     * @param  mixed  $event
     * @return void
     */
    protected function event($event)
    {
        if (isset($this->events)) {
            $this->events->dispatch($event);
        }
    }
 
    /**
     * Get a new raw query expression.
     *
     * @param  mixed  $value
     * @return \Illuminate\Database\Query\Expression
     */
    public function raw($value)
    {
        return new Expression($value);
    }
 
    /**
     * Indicate if any records have been modified.
     *
     * @param  bool  $value
     * @return void
     */
Arguments
  1. "Illuminate\Database\Events\QueryExecuted"
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
        catch (Exception $e) {
            throw new QueryException(
                $query, $this->prepareBindings($bindings), $e
            );
        }
 
        return $result;
    }
 
    /**
     * Log a query in the connection's query log.
     *
     * @param  string  $query
     * @param  array   $bindings
     * @param  float|null  $time
     * @return void
     */
    public function logQuery($query, $bindings, $time = null)
    {
        $this->event(new QueryExecuted($query, $bindings, $time, $this));
 
        if ($this->loggingQueries) {
            $this->queryLog[] = compact('query', 'bindings', 'time');
        }
    }
 
    /**
     * Get the elapsed time since a given starting point.
     *
     * @param  int    $start
     * @return float
     */
    protected function getElapsedTime($start)
    {
        return round((microtime(true) - $start) * 1000, 2);
    }
 
    /**
     * Handle a query exception.
     *
Arguments
  1. QueryExecuted {#1842}
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
        $this->reconnectIfMissingConnection();
 
        $start = microtime(true);
 
        // Here we will run this query. If an exception occurs we'll determine if it was
        // caused by a connection that has been lost. If that is the cause, we'll try
        // to re-establish connection and re-run the query with a fresh connection.
        try {
            $result = $this->runQueryCallback($query, $bindings, $callback);
        } catch (QueryException $e) {
            $result = $this->handleQueryException(
                $e, $query, $bindings, $callback
            );
        }
 
        // Once we have run the query we will calculate the time that it took to run and
        // then log the query, bindings, and execution time so we will report them on
        // the event that the developer needs them. We'll log time in milliseconds.
        $this->logQuery(
            $query, $bindings, $this->getElapsedTime($start)
        );
 
        return $result;
    }
 
    /**
     * Run a SQL statement.
     *
     * @param  string    $query
     * @param  array     $bindings
     * @param  \Closure  $callback
     * @return mixed
     *
     * @throws \Illuminate\Database\QueryException
     */
    protected function runQueryCallback($query, $bindings, Closure $callback)
    {
        // To execute the statement, we'll simply call the callback, which will actually
        // run the SQL against the PDO connection. Then we can calculate the time it
        // took to execute and log the query SQL, bindings and time in our memory.
Arguments
  1. "select * from information_schema.tables where table_schema = ? and table_name = ?"
    
  2. array:2 [
      0 => "westdar1_dar"
      1 => "data_types"
    ]
    
  3. 0.31
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Connection.php
     */
    public function select($query, $bindings = [], $useReadPdo = true)
    {
        return $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // For select statements, we'll simply execute the query and return an array
            // of the database result set. Each element in the array will be a single
            // row from the database table, and will either be an array or objects.
            $statement = $this->prepared($this->getPdoForSelect($useReadPdo)
                              ->prepare($query));
 
            $this->bindValues($statement, $this->prepareBindings($bindings));
 
            $statement->execute();
 
            return $statement->fetchAll();
        });
    }
 
    /**
     * Run a select statement against the database and returns a generator.
     *
     * @param  string  $query
     * @param  array  $bindings
     * @param  bool  $useReadPdo
     * @return \Generator
     */
    public function cursor($query, $bindings = [], $useReadPdo = true)
    {
        $statement = $this->run($query, $bindings, function ($query, $bindings) use ($useReadPdo) {
            if ($this->pretending()) {
                return [];
            }
 
            // First we will create a statement for the query. Then, we will set the fetch
            // mode and prepare the bindings for the query. Once that's done we will be
            // ready to execute the query against the database and return the cursor.
Arguments
  1. "select * from information_schema.tables where table_schema = ? and table_name = ?"
    
  2. array:2 [
      0 => "westdar1_dar"
      1 => "data_types"
    ]
    
  3. Closure {#1843
      class: "Illuminate\Database\Connection"
      this: MySqlConnection {#1881 …}
      parameters: {
        $query: {}
        $bindings: {}
      }
      use: {
        $useReadPdo: true
      }
    }
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Database
/
Schema
/
MySqlBuilder.php
<?php
 
namespace Illuminate\Database\Schema;
 
class MySqlBuilder extends Builder
{
    /**
     * Determine if the given table exists.
     *
     * @param  string  $table
     * @return bool
     */
    public function hasTable($table)
    {
        $table = $this->connection->getTablePrefix().$table;
 
        return count($this->connection->select(
            $this->grammar->compileTableExists(), [$this->connection->getDatabaseName(), $table]
        )) > 0;
    }
 
    /**
     * Get the column listing for a given table.
     *
     * @param  string  $table
     * @return array
     */
    public function getColumnListing($table)
    {
        $table = $this->connection->getTablePrefix().$table;
 
        $results = $this->connection->select(
            $this->grammar->compileColumnListing(), [$this->connection->getDatabaseName(), $table]
        );
 
        return $this->connection->getPostProcessor()->processColumnListing($results);
    }
 
    /**
     * Drop all tables from the database.
Arguments
  1. "select * from information_schema.tables where table_schema = ? and table_name = ?"
    
  2. array:2 [
      0 => "westdar1_dar"
      1 => "data_types"
    ]
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Support
/
Facades
/
Facade.php
    }
 
    /**
     * Handle dynamic, static calls to the object.
     *
     * @param  string  $method
     * @param  array   $args
     * @return mixed
     *
     * @throws \RuntimeException
     */
    public static function __callStatic($method, $args)
    {
        $instance = static::getFacadeRoot();
 
        if (! $instance) {
            throw new RuntimeException('A facade root has not been set.');
        }
 
        return $instance->$method(...$args);
    }
}
 
Arguments
  1. "data_types"
    
/
home
/
westdar1
/
public_html
/
vendor
/
tcg
/
voyager
/
src
/
VoyagerServiceProvider.php
 
        foreach ($publishable as $group => $paths) {
            $this->publishes($paths, $group);
        }
    }
 
    public function registerConfigs()
    {
        $this->mergeConfigFrom(
            dirname(__DIR__).'/publishable/config/voyager.php', 'voyager'
        );
    }
 
    public function registerGates()
    {
        // This try catch is necessary for the Package Auto-discovery
        // otherwise it will throw an error because no database
        // connection has been made yet.
        try {
            if (Schema::hasTable('data_types')) {
                $dataType = VoyagerFacade::model('DataType');
                $dataTypes = $dataType->select('policy_name', 'model_name')->get();
 
                foreach ($dataTypes as $dataType) {
                    $policyClass = BasePolicy::class;
                    if (isset($dataType->policy_name) && $dataType->policy_name !== ''
                        && class_exists($dataType->policy_name)) {
                        $policyClass = $dataType->policy_name;
                    }
 
                    $this->policies[$dataType->model_name] = $policyClass;
                }
 
                $this->registerPolicies();
            }
        } catch (\PDOException $e) {
            Log::error('No Database connection yet in VoyagerServiceProvider registerGates()');
        }
    }
 
Arguments
  1. "hasTable"
    
  2. array:1 [
      0 => "data_types"
    ]
    
/
home
/
westdar1
/
public_html
/
vendor
/
tcg
/
voyager
/
src
/
VoyagerServiceProvider.php
                    VoyagerFacade::model('User')->findOrFail($user->id)
                        ->setRole(config('voyager.user.default_role'))
                        ->save();
                }
            });
        }
 
        $this->loadViewsFrom(__DIR__.'/../resources/views', 'voyager');
 
        if (app()->version() >= 5.4) {
            $router->aliasMiddleware('admin.user', VoyagerAdminMiddleware::class);
 
            if (config('app.env') == 'testing') {
                $this->loadMigrationsFrom(realpath(__DIR__.'/migrations'));
            }
        } else {
            $router->middleware('admin.user', VoyagerAdminMiddleware::class);
        }
 
        $this->registerGates();
 
        $this->registerViewComposers();
 
        $event->listen('voyager.alerts.collecting', function () {
            $this->addStorageSymlinkAlert();
        });
 
        $this->bootTranslatorCollectionMacros();
    }
 
    /**
     * Load helpers.
     */
    protected function loadHelpers()
    {
        foreach (glob(__DIR__.'/Helpers/*.php') as $filename) {
            require_once $filename;
        }
    }
 
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
BoundMethod.php
class BoundMethod
{
    /**
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return call_user_func_array(
                $callback, static::getMethodDependencies($container, $callback, $parameters)
            );
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
Arguments
  1. Router {#25}
    
  2. Dispatcher {#26}
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
BoundMethod.php
class BoundMethod
{
    /**
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return call_user_func_array(
                $callback, static::getMethodDependencies($container, $callback, $parameters)
            );
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
Arguments
  1. array:2 [
      0 => VoyagerServiceProvider {#208}
      1 => "boot"
    ]
    
  2. array:2 [
      0 => Router {#25}
      1 => Dispatcher {#26}
    ]
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
BoundMethod.php
     * @param  callable  $callback
     * @param  mixed  $default
     * @return mixed
     */
    protected static function callBoundMethod($container, $callback, $default)
    {
        if (! is_array($callback)) {
            return $default instanceof Closure ? $default() : $default;
        }
 
        // Here we need to turn the array callable into a Class@method string we can use to
        // examine the container and see if there are any method bindings for this given
        // method. If there are, we can call this method binding callback immediately.
        $method = static::normalizeMethod($callback);
 
        if ($container->hasMethodBinding($method)) {
            return $container->callMethodBinding($method, $callback[0]);
        }
 
        return $default instanceof Closure ? $default() : $default;
    }
 
    /**
     * Normalize the given callback into a Class@method string.
     *
     * @param  callable  $callback
     * @return string
     */
    protected static function normalizeMethod($callback)
    {
        $class = is_string($callback[0]) ? $callback[0] : get_class($callback[0]);
 
        return "{$class}@{$callback[1]}";
    }
 
    /**
     * Get all dependencies for a given method.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
BoundMethod.php
    /**
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public static function call($container, $callback, array $parameters = [], $defaultMethod = null)
    {
        if (static::isCallableWithAtSign($callback) || $defaultMethod) {
            return static::callClass($container, $callback, $parameters, $defaultMethod);
        }
 
        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {
            return call_user_func_array(
                $callback, static::getMethodDependencies($container, $callback, $parameters)
            );
        });
    }
 
    /**
     * Call a string reference to a class using Class@method syntax.
     *
     * @param  \Illuminate\Container\Container  $container
     * @param  string  $target
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     *
     * @throws \InvalidArgumentException
     */
    protected static function callClass($container, $target, array $parameters = [], $defaultMethod = null)
    {
        $segments = explode('@', $target);
 
        // We will assume an @ sign is used to delimit the class name from the method
        // name. We will split on this @ sign and then build a callable array that
        // we can pass right back into the "call" method for dependency binding.
Arguments
  1. Application {#2}
    
  2. array:2 [
      0 => VoyagerServiceProvider {#208}
      1 => "boot"
    ]
    
  3. Closure {#21
      class: "Illuminate\Container\BoundMethod"
      use: {
        $container: Application {#2 …}
        $callback: array:2 [
          0 => VoyagerServiceProvider {#208}
          1 => "boot"
        ]
        $parameters: []
      }
    }
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Container
/
Container.php
     * @return \Closure
     */
    public function wrap(Closure $callback, array $parameters = [])
    {
        return function () use ($callback, $parameters) {
            return $this->call($callback, $parameters);
        };
    }
 
    /**
     * Call the given Closure / class@method and inject its dependencies.
     *
     * @param  callable|string  $callback
     * @param  array  $parameters
     * @param  string|null  $defaultMethod
     * @return mixed
     */
    public function call($callback, array $parameters = [], $defaultMethod = null)
    {
        return BoundMethod::call($this, $callback, $parameters, $defaultMethod);
    }
 
    /**
     * Get a closure to resolve the given type from the container.
     *
     * @param  string  $abstract
     * @return \Closure
     */
    public function factory($abstract)
    {
        return function () use ($abstract) {
            return $this->make($abstract);
        };
    }
 
    /**
     * An alias function name for make().
     *
     * @param  string  $abstract
     * @param  array  $parameters
Arguments
  1. Application {#2}
    
  2. array:2 [
      0 => VoyagerServiceProvider {#208}
      1 => "boot"
    ]
    
  3. []
    
  4. null
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
    /**
     * Register a new boot listener.
     *
     * @param  mixed  $callback
     * @return void
     */
    public function booting($callback)
    {
        $this->bootingCallbacks[] = $callback;
    }
 
    /**
     * Register a new "booted" listener.
     *
     * @param  mixed  $callback
     * @return void
     */
Arguments
  1. array:2 [
      0 => VoyagerServiceProvider {#208}
      1 => "boot"
    ]
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
    }
 
    /**
     * Boot the application's service providers.
     *
     * @return void
     */
    public function boot()
    {
        if ($this->booted) {
            return;
        }
 
        // Once the application has booted we will also fire some "booted" callbacks
        // for any listeners that need to do work after this initial booting gets
        // finished. This is useful when ordering the boot-up processes we run.
        $this->fireAppCallbacks($this->bootingCallbacks);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
Arguments
  1. VoyagerServiceProvider {#208}
    
[internal]
Arguments
  1. VoyagerServiceProvider {#208}
    
  2. 51
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
 
    /**
     * Boot the application's service providers.
     *
     * @return void
     */
    public function boot()
    {
        if ($this->booted) {
            return;
        }
 
        // Once the application has booted we will also fire some "booted" callbacks
        // for any listeners that need to do work after this initial booting gets
        // finished. This is useful when ordering the boot-up processes we run.
        $this->fireAppCallbacks($this->bootingCallbacks);
 
        array_walk($this->serviceProviders, function ($p) {
            $this->bootProvider($p);
        });
 
        $this->booted = true;
 
        $this->fireAppCallbacks($this->bootedCallbacks);
    }
 
    /**
     * Boot the given service provider.
     *
     * @param  \Illuminate\Support\ServiceProvider  $provider
     * @return mixed
     */
    protected function bootProvider(ServiceProvider $provider)
    {
        if (method_exists($provider, 'boot')) {
            return $this->call([$provider, 'boot']);
        }
    }
 
    /**
Arguments
  1. array:88 [
      0 => EventServiceProvider {#6}
      1 => LogServiceProvider {#8}
      2 => RoutingServiceProvider {#10}
      3 => AuthServiceProvider {#41}
      4 => CookieServiceProvider {#53}
      5 => DatabaseServiceProvider {#52}
      6 => EncryptionServiceProvider {#58}
      7 => FilesystemServiceProvider {#60}
      8 => FormRequestServiceProvider {#66}
      9 => FoundationServiceProvider {#65}
      10 => NotificationServiceProvider {#68}
      11 => PaginationServiceProvider {#70}
      12 => SessionServiceProvider {#74}
      13 => ViewServiceProvider {#78}
      14 => TrustedProxyServiceProvider {#82}
      15 => ServiceProvider {#83}
      16 => BootstrapPresetServiceProvider {#85}
      17 => BladeExtensionServiceProvider {#86}
      18 => DateServiceProvider {#87}
      19 => ImageServiceProvider {#88}
      20 => LaraFlashServiceProvider {#91}
      21 => EasyNavServiceProvider {#93}
      22 => AlertsServiceProvider {#97}
      23 => GravatarServiceProvider {#99}
      24 => GeneratorsServiceProvider {#101}
      25 => BaseServiceProvider {#95}
      26 => HtmlServiceProvider {#106}
      27 => ElfinderServiceProvider {#110}
      28 => CrudServiceProvider {#104}
      29 => ScoutServiceProvider {#113}
      30 => MenuServiceProvider {#115}
      31 => ServiceProvider {#117}
      32 => LaratrustServiceProvider {#121}
      33 => ServiceProvider {#133}
      34 => PageManagerServiceProvider {#135}
      35 => ServiceProvider {#137}
      36 => MediableServiceProvider {#147}
      37 => HtmlServiceProvider {#161}
      38 => MediaLibraryServiceProvider {#163}
      39 => ImageOptimizerServiceProvider {#170}
      40 => BladeJavaScriptServiceProvider {#171}
      41 => TranslatableServiceProvider {#172}
      42 => TagsServiceProvider {#173}
      43 => DataTablesServiceProvider {#174}
      44 => ServiceProvider {#178}
      45 => LaravelServiceProvider {#180}
      46 => HooksServiceProvider {#182}
      47 => VoyagerHooksServiceProvider {#181}
      48 => ServiceProvider {#202}
      49 => VoyagerEventServiceProvider {#209}
      50 => DoctrineSupportServiceProvider {#210}
      51 => VoyagerServiceProvider {#208}
      52 => ExcelServiceProvider {#2290}
      53 => HtmlServiceProvider {#2281}
      54 => ButtonsServiceProvider {#2279}
      55 => EditorServiceProvider {#2278}
      56 => ShoppingcartServiceProvider {#2276}
      57 => LangFileManagerServiceProvider {#2272}
      58 => PermissionServiceProvider {#2269}
      59 => PermissionManagerServiceProvider {#2257}
      60 => SettingsServiceProvider {#2258}
      61 => MenuCRUDServiceProvider {#2239}
      62 => NewsCRUDServiceProvider {#2247}
      63 => LogManagerServiceProvider {#2246}
      64 => Provider {#2194}
      65 => AgentServiceProvider {#2183}
      66 => DatatablesServiceProvider {#2160}
      67 => ServiceProvider {#2181}
      68 => AnalyticsServiceProvider {#2155}
      69 => PageViewCounterServiceProvider {#2152}
      70 => ActivitylogServiceProvider {#2151}
      71 => QRCodeServiceProvider {#2148}
      72 => SentinelServiceProvider {#2146}
      73 => BladeFunctionServiceProvider {#2131}
      74 => LanguageSwitcherProvider {#2130}
      75 => AppServiceProvider {#2128}
      76 => AuthServiceProvider {#2121}
      77 => EventServiceProvider {#2126}
      78 => RouteServiceProvider {#2125}
      79 => ServiceProvider {#2124}
      80 => AnalyticsServiceProvider {#2123}
      81 => ReviewRateableServiceProvider {#2113}
      82 => TranslationServiceProvider {#2114}
      83 => ArtisanServiceProvider {#1984}
      84 => MigrationServiceProvider {#1919}
      85 => ComposerServiceProvider {#1914}
      86 => ConsoleSupportServiceProvider {#1985}
      87 => HashServiceProvider {#1780}
    ]
    
  2. Closure {#33
      class: "Illuminate\Foundation\Application"
      this: Application {#2 …}
      parameters: {
        $p: {}
      }
    }
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Bootstrap
/
BootProviders.php
<?php
 
namespace Illuminate\Foundation\Bootstrap;
 
use Illuminate\Contracts\Foundation\Application;
 
class BootProviders
{
    /**
     * Bootstrap the given application.
     *
     * @param  \Illuminate\Contracts\Foundation\Application  $app
     * @return void
     */
    public function bootstrap(Application $app)
    {
        $app->boot();
    }
}
 
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Application.php
 
        $this->register(new LogServiceProvider($this));
 
        $this->register(new RoutingServiceProvider($this));
    }
 
    /**
     * Run the given array of bootstrap classes.
     *
     * @param  array  $bootstrappers
     * @return void
     */
    public function bootstrapWith(array $bootstrappers)
    {
        $this->hasBeenBootstrapped = true;
 
        foreach ($bootstrappers as $bootstrapper) {
            $this['events']->fire('bootstrapping: '.$bootstrapper, [$this]);
 
            $this->make($bootstrapper)->bootstrap($this);
 
            $this['events']->fire('bootstrapped: '.$bootstrapper, [$this]);
        }
    }
 
    /**
     * Register a callback to run after loading the environment.
     *
     * @param  \Closure  $callback
     * @return void
     */
    public function afterLoadingEnvironment(Closure $callback)
    {
        return $this->afterBootstrapping(
            LoadEnvironmentVariables::class, $callback
        );
    }
 
    /**
     * Register a callback to run before a bootstrapper.
Arguments
  1. Application {#2}
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
 
        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()
    {
        return function ($request) {
            $this->app->instance('request', $request);
 
            return $this->router->dispatch($request);
        };
    }
 
    /**
     * Call the terminate method on any terminable middleware.
     *
Arguments
  1. array:6 [
      0 => "Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables"
      1 => "Illuminate\Foundation\Bootstrap\LoadConfiguration"
      2 => "Illuminate\Foundation\Bootstrap\HandleExceptions"
      3 => "Illuminate\Foundation\Bootstrap\RegisterFacades"
      4 => "Illuminate\Foundation\Bootstrap\RegisterProviders"
      5 => "Illuminate\Foundation\Bootstrap\BootProviders"
    ]
    
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
        $this->app['events']->dispatch(
            new Events\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)
    {
        $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());
        }
    }
 
    /**
/
home
/
westdar1
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Foundation
/
Http
/
Kernel.php
            $router->middlewareGroup($key, $middleware);
        }
 
        foreach ($this->routeMiddleware as $key => $middleware) {
            $router->aliasMiddleware($key, $middleware);
        }
    }
 
    /**
     * 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 (Exception $e) {
            $this->reportException($e);
 
            $response = $this->renderException($request, $e);
        } catch (Throwable $e) {
            $this->reportException($e = new FatalThrowableError($e));
 
            $response = $this->renderException($request, $e);
        }
 
        $this->app['events']->dispatch(
            new Events\RequestHandled($request, $response)
        );
 
        return $response;
    }
 
    /**
     * Send the given request through the middleware / router.
     *
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:4 [
        0 => "text/html"
        1 => "application/xhtml+xml"
        2 => "application/xml"
        3 => "*/*"
      ]
      #pathInfo: null
      #requestUri: "/"
      #baseUrl: ""
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      pathInfo: "/"
      basePath: ""
      method: "GET"
      format: "html"
    }
    
/
home
/
westdar1
/
public_html
/
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);
 
Arguments
  1. Request {#42
      #json: null
      #convertedFiles: null
      #userResolver: null
      #routeResolver: null
      +attributes: ParameterBag {#44}
      +request: ParameterBag {#50}
      +query: ParameterBag {#50}
      +server: ServerBag {#46}
      +files: FileBag {#47}
      +cookies: ParameterBag {#45}
      +headers: HeaderBag {#48}
      #content: null
      #languages: null
      #charsets: null
      #encodings: null
      #acceptableContentTypes: array:4 [
        0 => "text/html"
        1 => "application/xhtml+xml"
        2 => "application/xml"
        3 => "*/*"
      ]
      #pathInfo: null
      #requestUri: "/"
      #baseUrl: ""
      #basePath: null
      #method: null
      #format: null
      #session: null
      #locale: null
      #defaultLocale: "en"
      -isHostValid: true
      -isForwardedValid: true
      pathInfo: "/"
      basePath: ""
      method: "GET"
      format: "html"
    }
    
/
home
/
westdar1
/
public_html
/
index.php
/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <taylor@laravel.com>
 */

$uri = urldecode(
    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);

// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
    return false;
}

require_once __DIR__.'/public/index.php';
 
Arguments
  1. "/home/westdar1/public_html/public/index.php"
    

Environment & details:

empty
empty
empty
empty
empty
Key Value
PATH
"/usr/local/bin:/usr/bin:/bin"
TEMP
"/tmp"
TMP
"/tmp"
TMPDIR
"/tmp"
PWD
"/"
HTTP_ACCEPT
"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
HTTP_ACCEPT_ENCODING
"br,gzip"
HTTP_ACCEPT_LANGUAGE
"en-US,en;q=0.5"
HTTP_CONNECTION
"Keep-Alive"
CONTENT_LENGTH
"0"
HTTP_HOST
"westdarfur.gov.sd"
HTTP_USER_AGENT
"CCBot/2.0 (https://commoncrawl.org/faq/)"
UNIQUE_ID
"YJxx7dpI6YEzu831RypS7gAABIo"
SCRIPT_URL
"/"
SCRIPT_URI
"http://westdarfur.gov.sd/"
SERVER_SIGNATURE
""
SERVER_SOFTWARE
"Apache"
SERVER_NAME
"westdarfur.gov.sd"
SERVER_ADDR
"135.181.9.38"
SERVER_PORT
"80"
REMOTE_ADDR
"3.210.184.142"
DOCUMENT_ROOT
"/home/westdar1/public_html"
REQUEST_SCHEME
"http"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/westdar1/public_html"
SERVER_ADMIN
"webmaster@westdarfur.gov.sd"
SCRIPT_FILENAME
"/home/westdar1/public_html/index.php"
REMOTE_PORT
"48710"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
""
REQUEST_URI
"/"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1620865517.0911
REQUEST_TIME
1620865517
argv
[]
argc
0
APP_NAME
"Gov"
APP_ENV
"local"
APP_KEY
"base64:ThCLVzRsmuKtgb0gGVQVs/+vTcmTuiecOZh/BTv71xo="
APP_DEBUG
"true"
APP_URL
"http://localhost"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"westdar1_dar"
DB_USERNAME
"westdar1_dar"
DB_PASSWORD
"Fe%a3an9A!Dz"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.gmail.com"
MAIL_PORT
"587"
MAIL_USERNAME
"ltntyr@gmail.com"
MAIL_PASSWORD
"golden@12345"
MAIL_ENCRYPTION
"tls"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
ANALYTICS_VIEW_ID
"172628574"
SESSION_SECURE_COOKIE
"true"
Key Value
APP_NAME
"Gov"
APP_ENV
"local"
APP_KEY
"base64:ThCLVzRsmuKtgb0gGVQVs/+vTcmTuiecOZh/BTv71xo="
APP_DEBUG
"true"
APP_URL
"http://localhost"
DB_CONNECTION
"mysql"
DB_HOST
"127.0.0.1"
DB_PORT
"3306"
DB_DATABASE
"westdar1_dar"
DB_USERNAME
"westdar1_dar"
DB_PASSWORD
"Fe%a3an9A!Dz"
BROADCAST_DRIVER
"log"
CACHE_DRIVER
"file"
SESSION_DRIVER
"file"
QUEUE_DRIVER
"sync"
REDIS_HOST
"127.0.0.1"
REDIS_PASSWORD
"null"
REDIS_PORT
"6379"
MAIL_DRIVER
"smtp"
MAIL_HOST
"smtp.gmail.com"
MAIL_PORT
"587"
MAIL_USERNAME
"ltntyr@gmail.com"
MAIL_PASSWORD
"golden@12345"
MAIL_ENCRYPTION
"tls"
PUSHER_APP_ID
""
PUSHER_APP_KEY
""
PUSHER_APP_SECRET
""
ANALYTICS_VIEW_ID
"172628574"
SESSION_SECURE_COOKIE
"true"
0. Whoops\Handler\PrettyPageHandler