I want to return a view from my controller function with https
or http
depending on a variable. I don't want to redirect
it to https
or http
and I only want to use View::make()
or Response::view()
function. Is it possible?
Example:
public function getSiteContent($https = false)
{
if($https===true){
//return to secure https url
return View::make('sites.content');
}
else{
//return to http url
return View::make('sites.content');
}
}