ErrorException
…/­app/­controllers/­PhotosController.php14
Illuminate\Exception\Handler handleError
…/­app/­controllers/­PhotosController.php14
PhotosController index
<#unknown>0
call_user_func_array
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php138
Illuminate\Routing\Controllers\Controller callMethod
…/­vendor/­laravel/­framework/­src/­Illuminate/­Routing/­Controllers/­Controller.php115
Illuminate\Routing\Controllers\Controller callAction
…/­bootstrap/­compiled.php4751
Illuminate\Routing\Router Illuminate\Routing\{closure}
<#unknown>0
call_user_func_array
…/­bootstrap/­compiled.php7820
Illuminate\Routing\Route callCallable
…/­bootstrap/­compiled.php7807
Illuminate\Routing\Route run
…/­bootstrap/­compiled.php4762
Illuminate\Routing\Router dispatch
…/­bootstrap/­compiled.php481
Illuminate\Foundation\Application dispatch
…/­bootstrap/­compiled.php470
Illuminate\Foundation\Application run
…/­public/­index.php50

ErrorException

Trying to get property of non-object

	 *
	 * @return Response
	 */
	public function index($slug, $image)
	{
		$page = Page::where('slug', '=', $slug)->first();
		$photo = Photo::where('id', '=', $image)->first();
		$next = Photo::where('id', '>', $photo->id)
			->where('page_id', '=', $page->id)
			->min('id');
	 *
	 * @return Response
	 */
	public function index($slug, $image)
	{
		$page = Page::where('slug', '=', $slug)->first();
		$photo = Photo::where('id', '=', $image)->first();
		$next = Photo::where('id', '>', $photo->id)
			->where('page_id', '=', $page->id)
			->min('id');
<#unknown>
	 *
	 * @param  string  $method
	 * @param  array   $parameters
	 * @return mixed
	 */
	protected function callMethod($method, $parameters)
	{
		return call_user_func_array(array($this, $method), $parameters);
	}
		// after filters on the controller to wrap up any last minute processing.
		$response = $this->callBeforeFilters($router, $method);

		$this->setupLayout();

		if (is_null($response))
		{
			$response = $this->callMethod($method, $parameters);
		}
        $ioc = $this->container;
        $me = $this;
        return function () use($me, $ioc, $attribute) {
            list($controller, $method) = explode('@', $attribute);
            $route = $me->getCurrentRoute();
            $args = array_values($route->getParametersWithoutDefaults());
            $instance = $ioc->make($controller);
            return $instance->callAction($ioc, $me, $method, $args);
        };
    }
<#unknown>
            $this->callAfterFilters($request, $response);
        }
        return $response;
    }
    protected function callCallable()
    {
        $variables = array_values($this->getParametersWithoutDefaults());
        return call_user_func_array($this->getOption('_call'), $variables);
    }
    protected function callBeforeFilters(Request $request)
    protected $parameters;
    protected $parsedParameters;
    public function run(Request $request)
    {
        $this->parsedParameters = null;
        $response = $this->callBeforeFilters($request);
        if (!isset($response)) {
            $response = $this->callCallable();
        } else {
            $fromFilter = true;
    {
        $this->currentRequest = $request;
        $response = $this->callGlobalFilter($request, 'before');
        if (!is_null($response)) {
            $response = $this->prepare($response, $request);
        } else {
            $this->currentRoute = $route = $this->findRoute($request);
            $response = $route->run($request);
        }
        $this->callAfterFilter($request, $response);
    }
    public function dispatch(Request $request)
    {
        if ($this->isDownForMaintenance()) {
            $response = $this['events']->until('illuminate.app.down');
            return $this->prepareResponse($response, $request);
        } else {
            return $this['router']->dispatch($this->prepareRequest($request));
        }
    }
            $this->fireAppCallbacks($this->shutdownCallbacks);
        } else {
            $this->shutdownCallbacks[] = $callback;
        }
    }
    public function run()
    {
        $response = $this->dispatch($this['request']);
        $this['router']->callCloseFilter($this['request'], $response);
        $response->send();
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful applications we have created for them.
|
*/

$app->run();

/*
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CONTENT_LENGTH 0
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /452/fashion-II
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /452/fashion-II
REMOTE_PORT 50976
SCRIPT_FILENAME /home/heather7/heatherculp.com/public/index.php
SERVER_ADMIN webmaster@heatherculp.com
CONTEXT_DOCUMENT_ROOT /home/heather7/heatherculp.com/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/heather7/heatherculp.com/public
REMOTE_ADDR 3.94.150.98
SERVER_PORT 80
SERVER_ADDR 69.163.217.136
SERVER_NAME www.heatherculp.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_HOST www.heatherculp.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
DH_USER heather7
ds_id_613368
dsid 613368
SCRIPT_URI http://www.heatherculp.com/452/fashion-II
SCRIPT_URL /452/fashion-II
QS_ConnectionId 171167438119048934470671
QS_AllConn 1
QS_SrvConn 1
UNIQUE_ID ZgYUDsGIztPCZynh5s4HZwAAAIk
REDIRECT_STATUS 200
REDIRECT_DH_USER heather7
REDIRECT_ds_id_613368
REDIRECT_dsid 613368
REDIRECT_SCRIPT_URI http://www.heatherculp.com/452/fashion-II
REDIRECT_SCRIPT_URL /452/fashion-II
REDIRECT_QS_ConnectionId 171167438119048934470671
REDIRECT_QS_AllConn 1
REDIRECT_QS_SrvConn 1
REDIRECT_UNIQUE_ID ZgYUDsGIztPCZynh5s4HZwAAAIk
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711674382.6687
REQUEST_TIME 1711674382
empty
empty
empty
empty
Key Value
_sf2_attributes Array ( [_token] => 1uNwnRQcbWglvQMkLiKrSSF0Znn15DYN2uhYylkk )
_sf2_flashes Array ( )
_sf2_meta Array ( [u] => 1711674382 [c] => 1711674382 [l] => 7200 )
Key Value
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CONTENT_LENGTH 0
HTTP_CONNECTION close
SCRIPT_NAME /index.php
REQUEST_URI /452/fashion-II
QUERY_STRING
REQUEST_METHOD GET
SERVER_PROTOCOL HTTP/1.1
GATEWAY_INTERFACE CGI/1.1
REDIRECT_URL /452/fashion-II
REMOTE_PORT 50976
SCRIPT_FILENAME /home/heather7/heatherculp.com/public/index.php
SERVER_ADMIN webmaster@heatherculp.com
CONTEXT_DOCUMENT_ROOT /home/heather7/heatherculp.com/public
CONTEXT_PREFIX
REQUEST_SCHEME http
DOCUMENT_ROOT /home/heather7/heatherculp.com/public
REMOTE_ADDR 3.94.150.98
SERVER_PORT 80
SERVER_ADDR 69.163.217.136
SERVER_NAME www.heatherculp.com
SERVER_SOFTWARE Apache
SERVER_SIGNATURE
HTTP_HOST www.heatherculp.com
HTTP_USER_AGENT claudebot
HTTP_ACCEPT */*
DH_USER heather7
ds_id_613368
dsid 613368
SCRIPT_URI http://www.heatherculp.com/452/fashion-II
SCRIPT_URL /452/fashion-II
QS_ConnectionId 171167438119048934470671
QS_AllConn 1
QS_SrvConn 1
UNIQUE_ID ZgYUDsGIztPCZynh5s4HZwAAAIk
REDIRECT_STATUS 200
REDIRECT_DH_USER heather7
REDIRECT_ds_id_613368
REDIRECT_dsid 613368
REDIRECT_SCRIPT_URI http://www.heatherculp.com/452/fashion-II
REDIRECT_SCRIPT_URL /452/fashion-II
REDIRECT_QS_ConnectionId 171167438119048934470671
REDIRECT_QS_AllConn 1
REDIRECT_QS_SrvConn 1
REDIRECT_UNIQUE_ID ZgYUDsGIztPCZynh5s4HZwAAAIk
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711674382.6687
REQUEST_TIME 1711674382
0. Whoops\Handler\PrettyPageHandler