mardi 14 février 2017

Laravel where is the request bound into the container?

I know Laravel binds the request into the container since the helper method resolves it from the container like so:

function request($key = null, $default = null)
{
    if (is_null($key)) {
        return app('request');
    }

    if (is_array($key)) {
        return app('request')->only($key);
    }

    return app('request')->input($key, $default);
}

At what exact point is the request being bound into the container though? I can't seem to find it.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kOAi3l
via IFTTT

Aucun commentaire:

Enregistrer un commentaire