Dashboard won't load - NotFoundHttpException

garethshaw - 2 months ago

/Applications /MAMP /htdocs /AvMan.host /vendor /laravel /framework /src /Illuminate /Routing /RouteCollection.php

        // First, we will see if we can find a matching route for this current request
        // method. If we can, great, we can just return it so that it can be called
        // by the consumer. Otherwise we will check for routes with another verb.
        $route = $this->check($routes, $request);

        if (! is_null($route)) {
            return $route->bind($request);
        }

        // If no route was found we will now check if a matching route is specified by
        // another HTTP verb. If it is we will need to throw a MethodNotAllowed and
        // inform the user agent of which HTTP verb it should use for this route.
        $others = $this->checkForAlternateVerbs($request);

        if (count($others) > 0) {
            return $this->getRouteForMethods($request, $others);
        }

        throw new NotFoundHttpException;
    }

    /**
     * Determine if any routes match on another HTTP verb.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    protected function checkForAlternateVerbs($request)
    {
        $methods = array_diff(Router::$verbs, [$request->getMethod()]);

        // Here we will spin through all verbs except for the current request verb and
        // check to see if any routes respond to them. If they do, we will return a
        // proper error response with the correct headers on the response string.
        $others = [];

        foreach ($methods as $method) {
            if (! is_null($this->check($this->get($method), $request, false))) {
                $others[] = $method;

Arguments

""

Environment & details: GET Data empty POST Data empty Files empty Cookies XSRF-TOKEN

"eyJpdiI6IkpDckNybWlZMkxQQTcya2l5a29OaHc9PSIsInZhbHVlIjoibkRvNlhIZ0ZSNzJWSHBTVVEyK3JlZTA3K0NpMHIrV0x5T1VEZnlsUDhcL0UyYkpSdEtxWmdvakk1Ym9xeWZCSVNsSitoNU5zVkZzZWgxTTlTaHFsbmJRPT0iLCJtYWMiOiIxYWMxNmY3MTEyZDEwZTc3OTNkYTM3YjM5ZjA5NjY2OTJlMDA4OTI1NGEzYzg1N2Y4NTdkZTY5NThiNzRkYWYyIn0="

laravel_session

"eyJpdiI6Iko0OFdVUm40V0ord3RMd3ZRVDFWcnc9PSIsInZhbHVlIjoicEY4bVR3MVRNTGtLRzV1XC9FYmtQc0gwRUNSSHZMYVc1VlhrNnRpWlpsVlZETEVCTXp5TG10SitxRUJTMGdQSXdhcE1CTkxoSHFPVlVnVEw5SnkzZFVBPT0iLCJtYWMiOiIwMDJlOWQ1MDdlNzNjYmI5MGFhMzMzZTAxMjIxOWYzZTRmZGE3MzVmZTQwMTJhNGZjOTY5MjlhMjA3MjE4MGIyIn0="

Session empty Server/Request Data REDIRECT_HTTP_AUTHORIZATION

""

REDIRECT_STATUS

"200"

HTTP_AUTHORIZATION

""

HTTP_HOST

"www.avman.host"

HTTP_USER_AGENT

"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:53.0) Gecko/20100101 Firefox/53.0"

HTTP_ACCEPT

"text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8"

HTTP_ACCEPT_LANGUAGE

"en-US,en;q=0.5"

HTTP_ACCEPT_ENCODING

"gzip, deflate"

HTTP_COOKIE

"XSRF-TOKEN=eyJpdiI6IkpDckNybWlZMkxQQTcya2l5a29OaHc9PSIsInZhbHVlIjoibkRvNlhIZ0ZSNzJWSHBTVVEyK3JlZTA3K0NpMHIrV0x5T1VEZnlsUDhcL0UyYkpSdEtxWmdvakk1Ym9xeWZCSVNsSitoNU5zVkZzZWgxTTlTaHFsbmJRPT0iLCJtYWMiOiIxYWMxNmY3MTEyZDEwZTc3OTNkYTM3YjM5ZjA5NjY2OTJlMDA4OTI1NGEzYzg1N2Y4NTdkZTY5NThiNzRkYWYyIn0%3D; laravel_session=eyJpdiI6Iko0OFdVUm40V0ord3RMd3ZRVDFWcnc9PSIsInZhbHVlIjoicEY4bVR3MVRNTGtLRzV1XC9FYmtQc0gwRUNSSHZMYVc1VlhrNnRpWlpsVlZETEVCTXp5TG10SitxRUJTMGdQSXdhcE1CTkxoSHFPVlVnVEw5SnkzZFVBPT0iLCJtYWMiOiIwMDJlOWQ1MDdlNzNjYmI5MGFhMzMzZTAxMjIxOWYzZTRmZGE3MzVmZTQwMTJhNGZjOTY5MjlhMjA3MjE4MGIyIn0%3D"

HTTP_DNT

"1"

HTTP_CONNECTION

"keep-alive"

HTTP_UPGRADE_INSECURE_REQUESTS

"1"

PATH

"/usr/bin:/bin:/usr/sbin:/sbin"

SERVER_SIGNATURE

""

SERVER_SOFTWARE

"Apache"

SERVER_NAME

"www.avman.host"

SERVER_ADDR

"::1"

SERVER_PORT

"80"

REMOTE_ADDR

"::1"

DOCUMENT_ROOT

"/Applications/MAMP/htdocs/AvMan.host/public"

SERVER_ADMIN

"[email protected]"

SCRIPT_FILENAME

"/Applications/MAMP/htdocs/AvMan.host/public/index.php"

REMOTE_PORT

"49614"

REDIRECT_URL

"/admin/dashboard"

GATEWAY_INTERFACE

"CGI/1.1"

SERVER_PROTOCOL

"HTTP/1.1"

REQUEST_METHOD

"GET"

QUERY_STRING

""

REQUEST_URI

"/admin/dashboard"

SCRIPT_NAME

"/index.php"

PHP_SELF

"/index.php"

REQUEST_TIME_FLOAT

1495038298.95

REQUEST_TIME

1495038298

argv

[]

argc

0

ORIGINAL_REQUEST_URI

"/admin/dashboard"

APP_ENV

"local"

INSTALLED

"true"

APP_KEY

"XiuTOvPKfjr9pLDOVUYcnKkb84GGWqDX"

DB_CONNECTION

"mysql"

DB_HOST

"localhost"

DB_DATABASE

DB_USERNAME

DB_PASSWORD

APPLICATION_NAME

"AvMan"

APPLICATION_DOMAIN

"avman.host"

APPLICATION_REFERENCE

"avman"

APP_URL

"http://avman.host"

Environment Variables PATH

"/usr/bin:/bin:/usr/sbin:/sbin"

PWD

"/"

XPC_FLAGS

"0x0"

XPC_SERVICE_NAME

"0"

SHLVL

"1"

_

"/Applications/MAMP/Library/bin/httpd"

APP_ENV

"local"

INSTALLED

"true"

APP_KEY

DB_CONNECTION

"mysql"

DB_HOST

"localhost"

DB_DATABASE

"avman"

DB_USERNAME

DB_PASSWORD

APPLICATION_NAME

"AvMan"

APPLICATION_DOMAIN

"avman.host"

APPLICATION_REFERENCE

"avman"

APP_URL

"http://avman.host"

Registered Handlers 0. Whoops\Handler\PrettyPageHandler

Answer

- 2 months ago

Ignore, somehow it wasn't installed. I thought it came pre-installed and I'm sure I had used it previously?!

garethshaw - 2 months ago

Ignore, somehow it wasn't installed. I thought it came pre-installed and I'm sure I had used it previously?!

ryanthompson - 2 months ago

Ya should be installed out of the box. Was this a fresh install that went cleanly?

Either way - glad you got it sorted!