you still have $_SERVER
and $_COOKIE
available. although you now have wrappers for those. for instance for $_SERVER['HTTP_USER_AGENT']
you'd use Request::server('HTTP_USER_AGENT')
. whereas cookies have their own wrapper Cookie::get()
.
the View::share()
is simply to have variables available within all withs, that may be included within the main view. laravel does this for instance with $errors
, that is available everytime you use View::make()
, but might be empty.